Closed Bug 2068934 Opened 2 months ago Closed 1 month ago

Sanitizer API: javascript URL handling should be part of the config

Categories

(Core :: DOM: Security, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: noam.j.rosenthal, Assigned: mtan)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed)

Attachments

(1 external file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36

Steps to reproduce:

See https://github.com/whatwg/html/pull/12898

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Security' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Security
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → tschuster

When javascriptURLs is set to false, unsafe methods will remove javascript URLs from the input.

In Safe methods javascript URLs always be removed regardless of config.

Implements https://github.com/whatwg/html/pull/12898

WPT: https://github.com/web-platform-tests/wpt/pull/62421

Assignee: tschuster → nobody
Depends on: 2069388
Assignee: nobody → mtan
Status: NEW → ASSIGNED
Depends on: 2071032
Pushed by tschuster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b590a088bc73 https://hg.mozilla.org/integration/autoland/rev/fa0eea47cef9 Support javascriptURLs in the configuration of sanitizer. r=tschuster,webidl,smaug,keithamus
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/19edd9c685cb https://hg.mozilla.org/integration/autoland/rev/f46ff0e93d7f Revert "Bug 2068934 - Support javascriptURLs in the configuration of sanitizer. r=tschuster,webidl,smaug,keithamus" for causing wpt failures @Sanitizer.cpp.

Backed out for causing wpt failures @Sanitizer.cpp.

Flags: needinfo?(mtan)
Blocks: 2069273
Pushed by tschuster@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/55c2874c6973 https://hg.mozilla.org/integration/autoland/rev/4ea3045980a2 Support javascriptURLs in the configuration of sanitizer. r=tschuster,webidl,smaug,keithamus
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d1c4c600e21f https://hg.mozilla.org/integration/autoland/rev/503330b78094 delete sanitizer-javascript-url.html.ini manifest because test are passing r=mtan
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch

clear needinfo.

Flags: needinfo?(mtan)
QA Whiteboard: [qa-triage-done-c159/b158]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: