Closed Bug 1681342 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 26802 - Add WPT test about sandbox_flags and window reuse.

Categories

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

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'arthursonzogni <arthursonzogni@chromium.org>' wrote:

Add WPT test about sandbox_flags and window reuse.

I found something interesting. The initial empty document's javascript
windows is reused for same-origin new document. We apply the sandbox
flags to the window, instead of documents, which is very weird. My
hypothesis: we are enforcing sandbox_flags twice into the same window.
The bug might be caused by the remanence of the initial sandbox flags?
This turned out to be the case. \o/

This patch adds a WPT test. It triggers a DCHECK in the browser process.

Bug: 1041376
Change-Id: Ic7543148b0c2571e95c0c4dfe6df50563254981b
Reviewed-on: https://chromium-review.googlesource.com/2578957
WPT-Export-Revision: 402a63a357650ad3ba44805702eae305d8e055a1

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

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/74ef9470bc5c
[wpt PR 26802] - Add WPT test about sandbox_flags and window reuse., a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.