Commit 161573c
authored
Use encodeURIComponent in browser_reporting. NFC (#23075)
While working on a separate change I ran into issues where chrome was
refusing to fetch a report_result and this fixed the issue.
It seems that the angle brackets in the backtrace after my PR were the
issue:
Before:
```
exception:fetch is not a function / TypeError: fetch is not a function
at readAsync (https://b2607f8….proxy.googlers.com/a.out.js:284:12)
at getBinaryPromise (https://b2607f8….proxy.googlers.com/a.out.js:774:12)
at instantiateArrayBuffer (https://b2607f8….proxy.googlers.com/a.out.js:786:10)
at instantiateAsync (https://b2607f8….proxy.googlers.com/a.out.js:832:10)
at createWasm (https://b2607f8….proxy.googlers.com/a.out.js:909:3)
at https://b2607f8….proxy.googlers.com/a.out.js:5310:19
```
After:
```
exception:fetch is not a function / TypeError: fetch is not a function
at readAsync (https://b2607f8….proxy.googlers.com/a.out.js:294:12)
at getBinaryPromise (https://b2607f8….proxy.googlers.com/a.out.js:818:12)
at https://b2607f8….proxy.googlers.com/a.out.js:831:5
at new Promise (<anonymous>)
at instantiateArrayBuffer (https://b2607f8….proxy.googlers.com/a.out.js:830:10)
at instantiateAsync (https://b2607f8….proxy.googlers.com/a.out.js:881:10)
at createWasm (https://b2607f8….proxy.googlers.com/a.out.js:958:3)
at https://b2607f8….proxy.googlers.com/a.out.js:5368:19
```1 parent cd4c6a4 commit 161573c
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments