Closed
Bug 1467112
Opened 6 years ago
Closed 6 years ago
Fix about:checkerboard
Categories
(Core :: Panning and Zooming, defect)
Core
Panning and Zooming
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
At some point firefox made changes to CSP and now about:checkerboard doesn't actually show the checkerboard instance details. Bug 1453989 might be related.
Comment 1•6 years ago
|
||
Yeah: link.href = "javascript:showReport(" + i + ")"; that won't work anymore. Those should have been updated to be buttons with script-added event listeners from aboutCheckerboard.js . Sorry for not noticing this in review. :-(
Assignee | ||
Comment 2•6 years ago
|
||
No worries. I have the patch written locally, just waiting on my build to test it.
Comment hidden (mozreview-request) |
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8983777 [details] Bug 1467112 - Use listener instead of javascript: URL to conform to CSP. https://reviewboard.mozilla.org/r/249618/#review255810 Code analysis found 1 defect in this patch: - 1 defect found by mozlint You can run this analysis locally with: - `./mach lint path/to/file` (JS/Python) If you see a problem in this automated review, please report it here: http://bit.ly/2y9N9Vx ::: toolkit/components/aboutcheckerboard/content/aboutCheckerboard.js:21 (Diff revision 1) > for (var i = 0; i < reports.length; i++) { > let text = "Severity " + reports[i].severity + " at " + new Date(reports[i].timestamp).toString(); > let link = document.createElement("a"); > - link.href = "javascript:showReport(" + i + ")"; > + link.href = "#"; > + let index = i; // for capturing in the lambda > + link.addEventListener('click', function() { showReport(index); return false; }); Error: Strings must use doublequote. [eslint: quotes]
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Attachment #8983777 -
Attachment is obsolete: true
Attachment #8983777 -
Flags: review?(gijskruitbosch+bugs)
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8983782 [details] Bug 1467112 - Use listener instead of javascript: URL to conform to CSP. https://reviewboard.mozilla.org/r/249626/#review255834 ::: toolkit/components/aboutcheckerboard/content/aboutCheckerboard.js:20 (Diff revision 1) > + let index = i; // for capturing in the lambda > + link.addEventListener("click", function() { showReport(index); return false; }); Could we not just define the iteration variable as `let` or does that not work?
Attachment #8983782 -
Flags: review?(gijskruitbosch+bugs) → review+
Assignee | ||
Comment 7•6 years ago
|
||
Ah, that does work. Will update the patch.
Comment hidden (mozreview-request) |
Pushed by kgupta@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/997adbec4c49 Use listener instead of javascript: URL to conform to CSP. r=Gijs
Comment 10•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/997adbec4c49
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in
before you can comment on or make changes to this bug.
Description
•