WebKit Bugzilla
Attachment 359112 Details for
Bug 193354
: Make "Disable Web SQL" on by default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix tests
patch_fix_tests (text/plain), 1.83 KB, created by
Sihui Liu
on 2019-01-14 18:07:45 PST
(
hide
)
Description:
Fix tests
Filename:
MIME Type:
Creator:
Sihui Liu
Created:
2019-01-14 18:07:45 PST
Size:
1.83 KB
patch
obsolete
>diff --git a/Tools/TestWebKitAPI/Tests/WebKitCocoa/DuplicateCompletionHandlerCalls.mm b/Tools/TestWebKitAPI/Tests/WebKitCocoa/DuplicateCompletionHandlerCalls.mm >index ac7082fb892..91264f7adec 100644 >--- a/Tools/TestWebKitAPI/Tests/WebKitCocoa/DuplicateCompletionHandlerCalls.mm >+++ b/Tools/TestWebKitAPI/Tests/WebKitCocoa/DuplicateCompletionHandlerCalls.mm >@@ -126,6 +126,9 @@ @end > TEST(WebKit, DuplicateCompletionHandlerCalls) > { > auto webView = adoptNS([[WKWebView alloc] initWithFrame:CGRectMake(0, 0, 800, 600)]); >+ auto preferences = (__bridge WKPreferencesRef)[[webView configuration] preferences]; >+ WKPreferencesSetWebSQLDisabled(preferences, false); >+ > auto delegate = adoptNS([[DuplicateCompletionHandlerCallsDelegate alloc] init]); > [webView setNavigationDelegate:delegate.get()]; > [webView setUIDelegate:delegate.get()]; >diff --git a/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm b/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm >index 764edf47a30..020b4f25fc3 100644 >--- a/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm >+++ b/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm >@@ -128,6 +128,9 @@ static void runWebsiteDataStoreCustomPaths(ShouldEnableProcessPrewarming shouldE > > RetainPtr<WKWebView> webView = adoptNS([[WKWebView alloc] initWithFrame:NSMakeRect(0, 0, 800, 600) configuration:configuration.get()]); > [webView setNavigationDelegate:handler.get()]; >+ >+ auto preferences = (__bridge WKPreferencesRef)[[webView configuration] preferences]; >+ WKPreferencesSetWebSQLDisabled(preferences, false); > > NSURLRequest *request = [NSURLRequest requestWithURL:[[NSBundle mainBundle] URLForResource:@"WebsiteDataStoreCustomPaths" withExtension:@"html" subdirectory:@"TestWebKitAPI.resources"]]; > [webView loadRequest:request];
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 193354
:
358915
|
359112