Closed
Bug 1392407
Opened 7 years ago
Closed 7 years ago
about:telemetry Sometimes "Raw JSON" errors out
Categories
(Toolkit :: Telemetry, enhancement, P1)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: chutten, Assigned: flyingrub)
References
Details
Attachments
(1 file)
* If the Raw JSON contains an "interesting" character, it can cause a InvalidCharacterError when using btoa to format the data uri I'm not sure what bwinton had in his payload that failed btoa, but it's possible. In that case it would be acceptable to catch the exception and display the raw json inline instead of popping a new window to use the JSON viewer.
Comment hidden (mozreview-request) |
Use a solution from MDN : https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa#Unicode_strings
Reporter | ||
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8900674 [details] Bug 1392407 - Fix about:telemetry issue with btoa https://reviewboard.mozilla.org/r/172104/#review177472 Can we wrap this in a try { } catch () { show-the-raw-json-like-if-theres-a-render-error(); } ?
Attachment #8900674 -
Flags: review?(chutten) → review+
Comment hidden (mozreview-request) |
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/cadbabe9cb86 Fix about:telemetry issue with btoa r=chutten
Keywords: checkin-needed
Comment 6•7 years ago
|
||
Backed out for eslint failure at toolkit/content/aboutTelemetry.js:2065: Multiple spaces found before '{': https://hg.mozilla.org/integration/autoland/rev/68109e7e1c93cb4ee792dd5666706789386d4fec Push with failure: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=cadbabe9cb8654db30d0b524b7fed9d5d22ef9b6&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=125954910&repo=autoland > TEST-UNEXPECTED-ERROR | /home/worker/checkouts/gecko/toolkit/content/aboutTelemetry.js:2065:16 | Multiple spaces found before '{'. (no-multi-spaces)
Flags: needinfo?(flyinggrub)
Comment hidden (mozreview-request) |
Flags: needinfo?(flyinggrub)
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/a4ff4582ad4d Fix about:telemetry issue with btoa r=chutten
Keywords: checkin-needed
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a4ff4582ad4d
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•