Closed Bug 1911592 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 47458 - 32432 fixing panic when attempting loading scrdoc iframe

Categories

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

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

newmoneybigbucks <newmoneybigbucks@protonmail.com> wrote:

32432 fixing panic when attempting loading scrdoc iframe

<!-- Please describe your changes on the following line: -->
Changed get_referrer() function in globalscope.rs (in component/script/dom) so that substep 3.1.3 returns Referrer::NoReferrer if no browsing context, context parent, or parent document is found. This replaces calls to expect() and stops the program from panicking if none of those values are found.

Reviewed in servo/servo#32782

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eb42039f256e [wpt PR 47458] - script: Properly handle removed iframes in `GlobalScope::get_referrer`, a=testonly
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.