[wpt-sync] Sync PR 62191 - sttf: Bind the trusted initiator to the initiator creating the fragment
Categories
(Core :: DOM: Navigation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox156 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62191 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62191
Details from upstream follow.
Vladimir Levin <vmpstr@chromium.org> wrote:
sttf: Bind the trusted initiator to the initiator creating the fragment
When we create a scroll to text fragment, we might delay processing it
until related page sets are finalized. Meanwhile, we may do a same
doc navigation. Ensure that when we check security restrictions, we
check whether the initiator is trusted using the initiator that created
the fragment, not the latest initiator which may be the wrong thing to
use.Bug: 549911100
Change-Id: Iabf8796c38576c4bc17549e6c8a1509d5751b731
Reviewed-on: https://chromium-review.googlesource.com/8286565
WPT-Export-Revision: 2b7172311daa41aa2c518caaa1636f8f10aef8b4
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=957b449fe45b9f719d5fc3586eff50a4263da20b
| Assignee | ||
Comment 2•3 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI
Total 27 tests and 1 subtests
Status Summary
Firefox
OK : 1[GitHub] 25[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 26[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
PASS: 6[GitHub] 191[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 192[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 193[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1[GitHub] 3[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 6[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
Chrome
OK : 1
PASS: 5
FAIL: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /scroll-to-text-fragment/non-html-documents-json.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],SKIP[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /scroll-to-text-fragment/find-range-from-text-directive.html [wpt.fyi]
startelement contains hidden text which is not a block boundary.:FAIL
- /scroll-to-text-fragment/iframe-scroll.sub.html [wpt.fyi]
- SAME-ORIGIN: Text directive in iframe bubbles to outer frame.:
FAIL
- SAME-ORIGIN: Text directive in iframe bubbles to outer frame.:
- /scroll-to-text-fragment/non-html-documents.html [wpt.fyi]
- Text directive allowed in text/plain:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]
- Text directive allowed in text/plain:
- /scroll-to-text-fragment/scroll-to-text-fragment-security-replacestate.sub.html [wpt.fyi]
- Sanity check: noopener with replaceState in head scrolls to text fragment:
FAIL(Chrome:PASS)
- Sanity check: noopener with replaceState in head scrolls to text fragment:
- /scroll-to-text-fragment/scroll-to-text-fragment.html [wpt.fyi]
- Test navigation with fragment: Text directive should horizontally scroll into view.:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - Test navigation with fragment: Text directive should horizontally scroll into view within a wide line.:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]
- Test navigation with fragment: Text directive should horizontally scroll into view.:
Tests Disabled in Gecko Infrastructure
- /scroll-to-text-fragment/non-html-documents-json.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],SKIP[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]
Comment 4•3 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/58cda7529f40
https://hg.mozilla.org/mozilla-central/rev/43c9d5545150
Description
•