Closed Bug 2066595 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 62191 - sttf: Bind the trusted initiator to the initiator creating the fragment

Categories

(Core :: DOM: Navigation, task, P4)

task

Tracking

()

RESOLVED FIXED
156 Branch
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.

R=bokan@chromium.org

Bug: 549911100
Change-Id: Iabf8796c38576c4bc17549e6c8a1509d5751b731
Reviewed-on: https://chromium-review.googlesource.com/8286565
WPT-Export-Revision: 2b7172311daa41aa2c518caaa1636f8f10aef8b4

Component: web-platform-tests → DOM: Navigation
Product: Testing → Core

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]
    • start element 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
  • /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]
  • /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)
  • /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]

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]
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 156 Branch
You need to log in before you can comment on or make changes to this bug.