Closed Bug 1620054 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 22091 - [IndexedDB] Fix crash when storing native file system handles using inline keys.

Categories

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

task

Tracking

(firefox75 fixed)

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Marijn Kruisselbrink <mek@chromium.org> wrote:

[IndexedDB] Fix crash when storing native file system handles using inline keys.

IndexedDB assumes it can non-destructively deserialize a SerializedScriptValue,
however our implementation for deserializing native file system handles actually
modified the SSV in a way that violated that assumption. This fixes this by
cloning the handles in the SSV rather than consuming them.

Bug: 1058419
Change-Id: I11ddfef757849941cc26e920eadb9022f7e138a4
Reviewed-on: https://chromium-review.googlesource.com/2088218
WPT-Export-Revision: 1f9863da94b740600e961f0c5868c275e19e5495

CI Results

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

Total 47 tests

Status Summary

Firefox

OK : 2
PASS : 45
FAIL : 10

Chrome

CRASH: 2

Safari

OK : 2
FAIL : 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/native-file-system/sandboxed_FileSystemBaseHandle-IndexedDB.tentative.https.any.html
Store handle in IndexedDB and read using a cursor.: FAIL (Safari: FAIL)
Store handle in IndexedDB using inline keys.: FAIL (Safari: FAIL)
Store handles and blobs in IndexedDB.: FAIL (Safari: FAIL)
Store handle in IndexedDB and read from new transaction.: FAIL (Safari: FAIL)
Store handle in IndexedDB and read from pending transaction.: FAIL (Safari: FAIL)
/native-file-system/sandboxed_FileSystemBaseHandle-IndexedDB.tentative.https.any.worker.html
Store handle in IndexedDB and read using a cursor.: FAIL (Safari: FAIL)
Store handle in IndexedDB using inline keys.: FAIL (Safari: FAIL)
Store handles and blobs in IndexedDB.: FAIL (Safari: FAIL)
Store handle in IndexedDB and read from new transaction.: FAIL (Safari: FAIL)
Store handle in IndexedDB and read from pending transaction.: FAIL (Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/edd1b7f027f4 [wpt PR 22091] - [IndexedDB] Fix crash when storing native file system handles using inline keys., a=testonly https://hg.mozilla.org/integration/autoland/rev/c4ccec7390e3 [wpt PR 22091] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.