mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00
Bug 1719906 [wpt PR 29625] - FSA: Add AccessHandleHost, a=testonly
Automatic update from web-platform-tests FSA: Add AccessHandleHost This CL adds the basic scaffolding for AccessHandleHost. AccessHandleHost allows the renderer to notify the browser when an access handle closes. Future CLs will use this functionality to create exclusive write locks that prevent the creation of other access handles or writables. AccessHandleHost will also eventually own the browser side of the file delegate when in incognito mode. For more context on this surface and the general objective of the merger between Storage Foundation and OPFS, check out: https://docs.google.com/document/d/1g7ZCqZ5NdiU7oqyCpsc2iZ7rRAY1ZXO-9VoG4LfP7fM Bug: 1218431 Change-Id: I0f804bb08da96bd978e5899b68f55cf7501935b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3015198 Reviewed-by: Richard Stotz <rstz@chromium.org> Reviewed-by: Austin Sullivan <asully@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Commit-Queue: Emanuel Krivoy <krivoy@google.com> Cr-Commit-Position: refs/heads/master@{#902978} -- wpt-commits: a8a36544812a1e9fa655820ae3361931c47559b7 wpt-pr: 29625
This commit is contained in:
parent
93360e0b3d
commit
ac2a6dc542
@ -108,8 +108,8 @@ function add_message_event_handlers(receiver, target, target_origin) {
|
||||
// success to the sender.
|
||||
let success = true;
|
||||
try {
|
||||
//TODO(fivedots): Close access handle once the method is available.
|
||||
await message_data.file_handle.createSyncAccessHandle();
|
||||
const access_handle = await message_data.file_handle.createSyncAccessHandle();
|
||||
await access_handle.close();
|
||||
} catch (error) {
|
||||
success = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user