Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c47f4cabd53d3a7ac9b68677900bc678c11eeb33
      
https://github.com/WebKit/WebKit/commit/c47f4cabd53d3a7ac9b68677900bc678c11eeb33
  Author: Youenn Fablet <you...@apple.com>
  Date:   2024-06-11 (Tue, 11 Jun 2024)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.html
    A 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.js
    A 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.serviceworker-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.serviceworker.html
    A 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.sharedworker-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.sharedworker.html
    A 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.worker-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.worker.html
    M Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.cpp
    M 
Source/WebKit/WebProcess/Storage/WebSharedWorkerContextManagerConnection.cpp

  Log Message:
  -----------
  `navigator.storage.getDirectory()` fails in service workers with an 
`NotSupportedError: The operation is not supported`
https://bugs.webkit.org/show_bug.cgi?id=273906
rdar://127775672

Reviewed by Ben Nham.

Add a storage provider to shared workers and service workers.
We reuse the one used for documents since shared workers and service workers 
use a WorkerStorageConnection which will use the document's one.

* 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.js:
 Added.
(promise_test.async t):
* 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.serviceworker-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.serviceworker.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.sharedworker-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.sharedworker.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.worker-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/file-system-access/getDirectory.https.any.worker.html:
 Added.
* Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.cpp:
(WebKit::WebSWContextManagerConnection::installServiceWorker):
* Source/WebKit/WebProcess/Storage/WebSharedWorkerContextManagerConnection.cpp:
(WebKit::WebSharedWorkerContextManagerConnection::launchSharedWorker):

Canonical link: https://commits.webkit.org/279908@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to