[wpt-sync] Sync PR 20073 - Restrict [un]registerProtocolHandler to secure top-level contexts
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox72 | --- | fixed |
People
(Reporter: wpt-sync, 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
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b639351bbbe7
https://hg.mozilla.org/mozilla-central/rev/d684a6199d28
Description
•