Bug 1697795 [wpt PR 28026] - NativeIO: Disalllow use on opaque origins, a=testonly
commit0bdbfcc7867cfdbfb94d420c63d800de59bda523
authorRichard Stotz <rstz@chromium.org>
Wed, 17 Mar 2021 13:29:11 +0000 (17 13:29 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 19 Mar 2021 10:35:11 +0000 (19 10:35 +0000)
treed0c7d706e95bddbc2ce535e5dffa5af5e9b60295
parent842e97fe59c8c7892846dd4bff0444dc7c258d1d
Bug 1697795 [wpt PR 28026] - NativeIO: Disalllow use on opaque origins, a=testonly

Automatic update from web-platform-tests
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/c/chromium/src/+/2751110
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Richard Stotz <rstz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#862393}

--

wpt-commits: 758d63c44e7958d2bce3581efcfa766c31ba6f81
wpt-pr: 28026
testing/web-platform/tests/native-io/opaque_origin.https.window.js [new file with mode: 0644]
testing/web-platform/tests/native-io/resources/opaque-origin-sandbox.html [new file with mode: 0644]