Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/no-filesystem.js

Issue 1667213002: Don't expose nonstandard FileSystem API to Service Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@work-bind
Patch Set: virtual/stable rebaselines Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/no-filesystem.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/no-filesystem.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/no-filesystem.js
new file mode 100644
index 0000000000000000000000000000000000000000..464977222b8e7fdce649977f48e39f3cc4803b96
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/no-filesystem.js
@@ -0,0 +1,11 @@
+function expect_exception(func) {
+ try {
+ func();
+ } catch (ex) {
+ return;
+ }
+ throw Error("No exception seen");
+}
+
+expect_exception(_ => webkitRequestFileSystem(TEMPORARY, 1024));
+expect_exception(_ => webkitRequestFileSystemSync(TEMPORARY, 1024));

Powered by Google App Engine
This is Rietveld 408576698