Title: [211895] trunk/Source/WebCore
Revision
211895
Author
[email protected]
Date
2017-02-08 13:19:16 -0800 (Wed, 08 Feb 2017)

Log Message

Opt-out iBooks from synchronous willSendRequest on iOS.
<rdar://problem/30129966> and https://bugs.webkit.org/show_bug.cgi?id=168006

Reviewed by Brent Fulgham.

No new tests (Not a testable behavior change at this time).

* platform/network/mac/ResourceHandleMac.mm:
(WebCore::synchronousWillSendRequestEnabled): iBooks never gets synchronous willSendRequest:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (211894 => 211895)


--- trunk/Source/WebCore/ChangeLog	2017-02-08 21:11:32 UTC (rev 211894)
+++ trunk/Source/WebCore/ChangeLog	2017-02-08 21:19:16 UTC (rev 211895)
@@ -1,3 +1,15 @@
+2017-02-08  Brady Eidson  <[email protected]>
+
+        Opt-out iBooks from synchronous willSendRequest on iOS.
+        <rdar://problem/30129966> and https://bugs.webkit.org/show_bug.cgi?id=168006
+
+        Reviewed by Brent Fulgham.
+
+        No new tests (Not a testable behavior change at this time).
+
+        * platform/network/mac/ResourceHandleMac.mm:
+        (WebCore::synchronousWillSendRequestEnabled): iBooks never gets synchronous willSendRequest:
+
 2017-02-08  Sam Weinig  <[email protected]>
 
         Split JSDOMConstructor.h/cpp up by class

Modified: trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm (211894 => 211895)


--- trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm	2017-02-08 21:11:32 UTC (rev 211894)
+++ trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm	2017-02-08 21:19:16 UTC (rev 211895)
@@ -119,7 +119,12 @@
 #if PLATFORM(IOS)
 static bool synchronousWillSendRequestEnabled()
 {
+#if PLATFORM(IOS)
+    static bool disabled = [[NSUserDefaults standardUserDefaults] boolForKey:@"WebKitDisableSynchronousWillSendRequestPreferenceKey"] || IOSApplication::isIBooks();
+#else
     static bool disabled = [[NSUserDefaults standardUserDefaults] boolForKey:@"WebKitDisableSynchronousWillSendRequestPreferenceKey"];
+#endif
+
     return !disabled;
 }
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to