Closed Bug 1697795 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 28026 - NativeIO: Disalllow use on opaque origins

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox88 fixed)

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Richard Stotz <rstz@chromium.org>' wrote:

NativeIO: Disalllow use on opaque origins

With this change, the global storageFoundation object is set to null on
opaque origins by the renderer.

While opaque origins were correctly disallowed by the browser process,
triggering the BadMessage lead to a crash of the entire browser. This
change also fixes this bug.

Bug: 1186722
Change-Id: I562bd9a8610b08e40e8ef318e8d50a6116699f27

Reviewed-on: https://chromium-review.googlesource.com/2751110
WPT-Export-Revision: 3c2831d7022ddcbacfae29cae78a3b6d776015ce

CI Results

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

Total 1 tests and 3 subtests

Status Summary

Firefox

PASS : 1
TIMEOUT: 2
NOTRUN : 1

Chrome

ERROR : 1

Safari

PASS : 1
TIMEOUT: 2
NOTRUN : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/native-io/opaque_origin.https.window.html: TIMEOUT (Chrome: ERROR, Safari: TIMEOUT)
storageFoundation must be null in a sandboxed iframe.: TIMEOUT (Safari: TIMEOUT)
storageFoundation must be null in a sandboxed opened window.: NOTRUN (Safari: NOTRUN)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fbd7466e4af6
[wpt PR 28026] - NativeIO: Disalllow use on opaque origins, a=testonly
https://hg.mozilla.org/integration/autoland/rev/1525241e4537
[wpt PR 28026] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.