Changeset 289236 in webkit
- Timestamp:
- Feb 7, 2022 11:57:43 AM (5 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/blob-url.worker-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/workers/WorkerGlobalScope.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r289234 r289236 1 2022-02-07 Chris Dumez <cdumez@apple.com> 2 3 WorkerGlobalScope.importScripts() should protect blob urls that were passed in until the imports are done 4 https://bugs.webkit.org/show_bug.cgi?id=236168 5 6 Reviewed by Darin Adler. 7 8 Rebaseline WPT test that is now passing. 9 10 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/blob-url.worker-expected.txt: 11 1 12 2022-02-07 Antoine Quint <graouts@webkit.org> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/blob-url.worker-expected.txt
r289116 r289236 2 2 PASS Blob URLs work on importScripts 3 3 PASS A revoked blob URL will fail 4 FAIL Revoking a blob URL in an earlier script will not fail Load failed 4 PASS Revoking a blob URL in an earlier script will not fail 5 5 -
trunk/Source/WebCore/ChangeLog
r289227 r289236 1 2022-02-07 Chris Dumez <cdumez@apple.com> 2 3 WorkerGlobalScope.importScripts() should protect blob urls that were passed in until the imports are done 4 https://bugs.webkit.org/show_bug.cgi?id=236168 5 6 Reviewed by Darin Adler. 7 8 No new tests, rebaselined existing test. 9 10 * workers/WorkerGlobalScope.cpp: 11 (WebCore::WorkerGlobalScope::importScripts): 12 1 13 2022-02-07 Antoine Quint <graouts@webkit.org> 2 14 -
trunk/Source/WebCore/workers/WorkerGlobalScope.cpp
r287303 r289236 29 29 #include "WorkerGlobalScope.h" 30 30 31 #include "BlobURL.h" 31 32 #include "CSSFontSelector.h" 32 33 #include "CSSValueList.h" … … 349 350 350 351 Vector<URL> completedURLs; 352 Vector<BlobURLHandle> protectedBlobURLs; 351 353 completedURLs.reserveInitialCapacity(urls.size()); 352 354 for (auto& entry : urls) { … … 354 356 if (!url.isValid()) 355 357 return Exception { SyntaxError }; 358 if (url.protocolIsBlob()) 359 protectedBlobURLs.append(BlobURLHandle { url }); 356 360 completedURLs.uncheckedAppend(WTFMove(url)); 357 361 }
Note: See TracChangeset
for help on using the changeset viewer.