Closed Bug 1593760 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 20073 - Restrict [un]registerProtocolHandler to secure top-level contexts

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 20073 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/20073
Details from upstream follow.

Eric Lawrence <ericlaw@microsoft.com> wrote:

Restrict [un]registerProtocolHandler to secure top-level contexts

The registerProtocolHandler() and unregisterProtocolHandler() functions
should only be permitted for secure top-level browsing contexts. When
called on subframes or non-secure contexts, a SecurityError should be
thrown.

Bug: 882284,977083
Change-Id: Iacf3d31f80f5118e9e9aacad2c99a0111d6e7cc5
Reviewed-on: https://chromium-review.googlesource.com/1892213
WPT-Export-Revision: bd441e9a9512cacb5e5cc96e62f0d2ed65c563ce

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
PR 20073 applied with additional changes from upstream: 404bb42ad10c971219248560fe8435b709f832a7
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b639351bbbe7
[wpt PR 20073] - Restrict [un]registerProtocolHandler to secure contexts, a=testonly
https://hg.mozilla.org/integration/autoland/rev/d684a6199d28
[wpt PR 20073] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.