- Revision
- 203700
- Author
- [email protected]
- Date
- 2016-07-25 14:38:42 -0700 (Mon, 25 Jul 2016)
Log Message
Modern IDB: Make sure IndexedDB works from file:// url documents by default
https://bugs.webkit.org/show_bug.cgi?id=153783
Reviewed by Alex Christensen.
Previously, to grant IndexedDB access to file:// urls for testing purposes,
we had to call the SPI [WKWebViewConfiguration _setAllowUniversalAccessFromFileURLs:].
As of https://trac.webkit.org/changeset/203695 this is no longer required.
Change the relevant API tests to make sure this continues to be no longer required.
* TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.mm:
* TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill.mm:
* TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm:
* TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm:
* TestWebKitAPI/Tests/WebKit2Cocoa/StoreBlobThenDelete.mm:
* TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (203699 => 203700)
--- trunk/Tools/ChangeLog 2016-07-25 21:03:35 UTC (rev 203699)
+++ trunk/Tools/ChangeLog 2016-07-25 21:38:42 UTC (rev 203700)
@@ -1,3 +1,24 @@
+2016-07-25 Brady Eidson <[email protected]>
+
+ Modern IDB: Make sure IndexedDB works from file:// url documents by default
+ https://bugs.webkit.org/show_bug.cgi?id=153783
+
+ Reviewed by Alex Christensen.
+
+ Previously, to grant IndexedDB access to file:// urls for testing purposes,
+ we had to call the SPI [WKWebViewConfiguration _setAllowUniversalAccessFromFileURLs:].
+
+ As of https://trac.webkit.org/changeset/203695 this is no longer required.
+
+ Change the relevant API tests to make sure this continues to be no longer required.
+
+ * TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.mm:
+ * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill.mm:
+ * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm:
+ * TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm:
+ * TestWebKitAPI/Tests/WebKit2Cocoa/StoreBlobThenDelete.mm:
+ * TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm:
+
2016-07-25 Wenson Hsieh <[email protected]>
Media controls should not be displayed for a video until it starts playing
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.mm (203699 => 203700)
--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.mm 2016-07-25 21:03:35 UTC (rev 203699)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IDBDeleteRecovery.mm 2016-07-25 21:38:42 UTC (rev 203700)
@@ -59,9 +59,6 @@
RetainPtr<WKWebViewConfiguration> configuration = adoptNS([[WKWebViewConfiguration alloc] init]);
[[configuration userContentController] addScriptMessageHandler:handler.get() name:@"testHandler"];
- // Allow file URLs to load non-file resources
- [configuration _setAllowUniversalAccessFromFileURLs:YES];
-
[configuration.get().processPool _terminateDatabaseProcess];
// Copy the inconsistent database files to the database directory
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill.mm (203699 => 203700)
--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill.mm 2016-07-25 21:03:35 UTC (rev 203699)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBDatabaseProcessKill.mm 2016-07-25 21:38:42 UTC (rev 203700)
@@ -92,9 +92,6 @@
RetainPtr<WKWebViewConfiguration> configuration = adoptNS([[WKWebViewConfiguration alloc] init]);
[[configuration userContentController] addScriptMessageHandler:handler.get() name:@"testHandler"];
- // Allow file URLs to load non-file resources
- [configuration _setAllowUniversalAccessFromFileURLs:YES];
-
RetainPtr<WKWebView> webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:configuration.get()]);
DatabaseProcessKillNavigationDelegate *delegate = [[DatabaseProcessKillNavigationDelegate alloc] init];
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm (203699 => 203700)
--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm 2016-07-25 21:03:35 UTC (rev 203699)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBMultiProcess.mm 2016-07-25 21:38:42 UTC (rev 203700)
@@ -59,9 +59,6 @@
RetainPtr<WKWebViewConfiguration> configuration = adoptNS([[WKWebViewConfiguration alloc] init]);
[[configuration userContentController] addScriptMessageHandler:handler.get() name:@"testHandler"];
- // Allow file URLs to load non-file resources
- [configuration _setAllowUniversalAccessFromFileURLs:YES];
-
[configuration.get().processPool _terminateDatabaseProcess];
RetainPtr<WKWebView> webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:configuration.get()]);
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm (203699 => 203700)
--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm 2016-07-25 21:03:35 UTC (rev 203699)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/IndexedDBPersistence.mm 2016-07-25 21:38:42 UTC (rev 203700)
@@ -73,9 +73,6 @@
RetainPtr<WKWebViewConfiguration> configuration = adoptNS([[WKWebViewConfiguration alloc] init]);
[[configuration userContentController] addScriptMessageHandler:handler.get() name:@"testHandler"];
- // Allow file URLs to load non-file resources
- [configuration _setAllowUniversalAccessFromFileURLs:YES];
-
RetainPtr<WKWebView> webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:configuration.get()]);
NSURLRequest *request = [NSURLRequest requestWithURL:[[NSBundle mainBundle] URLForResource:@"IndexedDBPersistence-1" withExtension:@"html" subdirectory:@"TestWebKitAPI.resources"]];
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/StoreBlobThenDelete.mm (203699 => 203700)
--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/StoreBlobThenDelete.mm 2016-07-25 21:03:35 UTC (rev 203699)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/StoreBlobThenDelete.mm 2016-07-25 21:38:42 UTC (rev 203700)
@@ -59,8 +59,6 @@
RetainPtr<WKWebViewConfiguration> configuration = adoptNS([[WKWebViewConfiguration alloc] init]);
[[configuration userContentController] addScriptMessageHandler:handler.get() name:@"testHandler"];
- [configuration _setAllowUniversalAccessFromFileURLs:YES];
-
RetainPtr<WKWebView> webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:configuration.get()]);
NSURLRequest *request = [NSURLRequest requestWithURL:[[NSBundle mainBundle] URLForResource:@"StoreBlobToBeDeleted" withExtension:@"html" subdirectory:@"TestWebKitAPI.resources"]];
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm (203699 => 203700)
--- trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm 2016-07-25 21:03:35 UTC (rev 203699)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/WebProcessKillIDBCleanup.mm 2016-07-25 21:38:42 UTC (rev 203700)
@@ -60,9 +60,6 @@
RetainPtr<WKWebViewConfiguration> configuration = adoptNS([[WKWebViewConfiguration alloc] init]);
[[configuration userContentController] addScriptMessageHandler:handler.get() name:@"testHandler"];
- // Allow file URLs to load non-file resources
- [configuration _setAllowUniversalAccessFromFileURLs:YES];
-
[configuration.get().processPool _terminateDatabaseProcess];
RetainPtr<WKWebView> webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:configuration.get()]);