Closed
Bug 1936336
Opened 11 months ago
Closed 11 months ago
Disallow inline event handlers in browser.xhtml in debug builds (and test)
Categories
(Firefox :: General, task)
Firefox
General
Tracking
()
RESOLVED
FIXED
135 Branch
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: tschuster, Assigned: tschuster)
References
Details
Attachments
(1 file)
After we have removed all inline event handlers from browser.xhtml we should add something like this to its HTML:
#ifdef NIGHTLY_BUILD
<meta http-equiv="Content-Security-Policy" content="script-src-attr 'self'" />
#endif
Additionally we should have some kind of test that ensures that e.g. using setAttribute("onclick") on the browser is correctly blocked.
| Assignee | ||
Updated•11 months ago
|
| Assignee | ||
Updated•11 months ago
|
Assignee: nobody → tschuster
| Assignee | ||
Updated•11 months ago
|
Summary: Dissallow inline event handlers in browser.xhtml in Nightly (and test) → Disallow inline event handlers in browser.xhtml in Nightly (and test)
| Assignee | ||
Comment 1•11 months ago
|
||
| Assignee | ||
Comment 2•11 months ago
|
||
Updated•11 months ago
|
Attachment #9442886 -
Attachment description: WIP: Bug 1936336 - Disallow inline event handlers in browser.xhtml in Nightly (and test) → WIP: Bug 1936336 - Disallow inline event handlers in browser.xhtml in debug builds (and test)
| Assignee | ||
Updated•11 months ago
|
Summary: Disallow inline event handlers in browser.xhtml in Nightly (and test) → Disallow inline event handlers in browser.xhtml in debug builds (and test)
Updated•11 months ago
|
Attachment #9442886 -
Attachment description: WIP: Bug 1936336 - Disallow inline event handlers in browser.xhtml in debug builds (and test) → Bug 1936336 - Disallow inline event handlers in browser.xhtml in debug builds (and test). r?freddyb!,Gijs!
Pushed by tschuster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4f1ddec217ba
Disallow inline event handlers in browser.xhtml in debug builds (and test). r=freddyb,Gijs
Backed out for causing bc failures @ browser_policy_managedbookmarks.js
- Backout link
- Push with failures
- Failure Log
- Failure line:
TEST-UNEXPECTED-FAIL | browser/components/enterprisepolicies/tests/browser/managedbookmarks/browser_policy_managedbookmarks.js | Uncaught exception in test bound test_policy_managedbookmarks - at chrome://mochitests/content/browser/browser/components/enterprisepolicies/tests/browser/managedbookmarks/browser_policy_managedbookmarks.js:35 - TypeError: can't access property "label", managedBookmarksMenu.menupopup.children[0] is undefined
Flags: needinfo?(tschuster)
Pushed by tschuster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c84982de770a
Disallow inline event handlers in browser.xhtml in debug builds (and test). r=freddyb,Gijs
Comment 8•11 months ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 11 months ago
status-firefox135:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•