Closed Bug 1750958 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 32449 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=232387

Categories

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

task

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Alexey Shvayka <shvaikalesh@gmail.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=232387

This upstream reviewed change (by Geoff on 2021-10-27) is a follow-up fix for #31599, which aligns tests assertions for cross-realm errors with the spec, Chrome (except for XPathNSResolver doesn't seem to emit "error" event, only logs errors to console), and now WebKit.

The spec: ECMA's "throw a TypeError exception" uses "running execution context" (step 4) to create an object in, which is switched to the realm of value per https://webidl.spec.whatwg.org/#ref-for-prepare-to-run-script.

As for detached browsing context change, I haven't found a spec for it, yet browsers seem to be in agreement for this particular case. I'll submit a WebIDL PR a bit later.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.