Title: [265463] branches/safari-610.1.25.10-branch/Source
Revision
265463
Author
[email protected]
Date
2020-08-10 16:47:38 -0700 (Mon, 10 Aug 2020)

Log Message

Cherry-pick r265215. rdar://problem/66643571

    Finalize the list of MobileGestalt queries needed to populate the in-memory cache in the WebContent process
    https://bugs.webkit.org/show_bug.cgi?id=215095
    <rdar://problem/66034080>

    Reviewed by Geoffrey Garen.

    Source/WebCore/PAL:

    Declare constants for MobileGestalt questions.

    * pal/spi/ios/MobileGestaltSPI.h:

    Source/WebKit:

    When the MobileGestalt cache is invalid, we issue a temporary extension to the MobileGestalt daemon for the WebContent process,
    which will populate the in-memory cache by doing a set of MobileGestalt queries before revoking the extension. This patch
    finalizes the list of MobileGestalt queries needed to populate the in-memory cache in the WebContent process on iOS before
    revoking the temporary extension to com.apple.mobilegestalt.xpc. This list was compiled by querying every possible MobileGestalt
    key after the temporary extension was revoked, and make a note of all queries that were contacting the MobileGestalt daemon to
    get the answer. The added queries in this patch should make the list complete, and ensures that all cachable values are in the
    in-memory cache before revoking the extension, since every possible MobileGestalt query was tested. This again means that users
    that have an invalid MobileGestalt cache, will have access to the exact same MobileGestalt values, as those users who have a
    valid MobileGestalt cache.

    * WebProcess/cocoa/WebProcessCocoa.mm:
    (WebKit::WebProcess::platformInitializeWebProcess):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265215 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-610.1.25.10-branch/Source/WebCore/PAL/ChangeLog (265462 => 265463)


--- branches/safari-610.1.25.10-branch/Source/WebCore/PAL/ChangeLog	2020-08-10 23:47:35 UTC (rev 265462)
+++ branches/safari-610.1.25.10-branch/Source/WebCore/PAL/ChangeLog	2020-08-10 23:47:38 UTC (rev 265463)
@@ -1,3 +1,49 @@
+2020-08-10  Alan Coon  <[email protected]>
+
+        Cherry-pick r265215. rdar://problem/66643571
+
+    Finalize the list of MobileGestalt queries needed to populate the in-memory cache in the WebContent process
+    https://bugs.webkit.org/show_bug.cgi?id=215095
+    <rdar://problem/66034080>
+    
+    Reviewed by Geoffrey Garen.
+    
+    Source/WebCore/PAL:
+    
+    Declare constants for MobileGestalt questions.
+    
+    * pal/spi/ios/MobileGestaltSPI.h:
+    
+    Source/WebKit:
+    
+    When the MobileGestalt cache is invalid, we issue a temporary extension to the MobileGestalt daemon for the WebContent process,
+    which will populate the in-memory cache by doing a set of MobileGestalt queries before revoking the extension. This patch
+    finalizes the list of MobileGestalt queries needed to populate the in-memory cache in the WebContent process on iOS before
+    revoking the temporary extension to com.apple.mobilegestalt.xpc. This list was compiled by querying every possible MobileGestalt
+    key after the temporary extension was revoked, and make a note of all queries that were contacting the MobileGestalt daemon to
+    get the answer. The added queries in this patch should make the list complete, and ensures that all cachable values are in the
+    in-memory cache before revoking the extension, since every possible MobileGestalt query was tested. This again means that users
+    that have an invalid MobileGestalt cache, will have access to the exact same MobileGestalt values, as those users who have a
+    valid MobileGestalt cache.
+    
+    * WebProcess/cocoa/WebProcessCocoa.mm:
+    (WebKit::WebProcess::platformInitializeWebProcess):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2020-08-03  Per Arne Vollan  <[email protected]>
+
+            Finalize the list of MobileGestalt queries needed to populate the in-memory cache in the WebContent process
+            https://bugs.webkit.org/show_bug.cgi?id=215095
+            <rdar://problem/66034080>
+
+            Reviewed by Geoffrey Garen.
+
+            Declare constants for MobileGestalt questions.
+
+            * pal/spi/ios/MobileGestaltSPI.h:
+
 2020-08-05  Russell Epstein  <[email protected]>
 
         Revert r265115. rdar://problem/66552761

Modified: branches/safari-610.1.25.10-branch/Source/WebCore/PAL/pal/spi/ios/MobileGestaltSPI.h (265462 => 265463)


--- branches/safari-610.1.25.10-branch/Source/WebCore/PAL/pal/spi/ios/MobileGestaltSPI.h	2020-08-10 23:47:35 UTC (rev 265462)
+++ branches/safari-610.1.25.10-branch/Source/WebCore/PAL/pal/spi/ios/MobileGestaltSPI.h	2020-08-10 23:47:38 UTC (rev 265463)
@@ -46,6 +46,14 @@
 static const CFStringRef kMGQDeviceClassNumber = CFSTR("DeviceClassNumber");
 static const CFStringRef kMGQHasExtendedColorDisplay = CFSTR("HasExtendedColorDisplay");
 static const CFStringRef kMGQDeviceCornerRadius = CFSTR("DeviceCornerRadius");
+static const CFStringRef kMGQMainScreenStaticInfo CFSTR("MainScreenStaticInfo");
+static const CFStringRef kMGQSupportsForceTouch CFSTR("eQd5mlz0BN0amTp/2ccMoA");
+static const CFStringRef kMGQBluetoothCapability CFSTR("bluetooth");
+static const CFStringRef kMGQDeviceProximityCapability CFSTR("DeviceProximityCapability");
+static const CFStringRef kMGQDeviceSupportsARKit CFSTR("arkit");
+static const CFStringRef kMGQTimeSyncCapability CFSTR("LJ8aZhTg8lXUeVxHzT+hMw");
+static const CFStringRef kMGQWAPICapability CFSTR("wapi");
+static const CFStringRef kMGQMainDisplayRotation CFSTR("MainDisplayRotation");
 
 typedef enum {
     MGDeviceClassInvalid = -1,

Modified: branches/safari-610.1.25.10-branch/Source/WebKit/ChangeLog (265462 => 265463)


--- branches/safari-610.1.25.10-branch/Source/WebKit/ChangeLog	2020-08-10 23:47:35 UTC (rev 265462)
+++ branches/safari-610.1.25.10-branch/Source/WebKit/ChangeLog	2020-08-10 23:47:38 UTC (rev 265463)
@@ -1,3 +1,58 @@
+2020-08-10  Alan Coon  <[email protected]>
+
+        Cherry-pick r265215. rdar://problem/66643571
+
+    Finalize the list of MobileGestalt queries needed to populate the in-memory cache in the WebContent process
+    https://bugs.webkit.org/show_bug.cgi?id=215095
+    <rdar://problem/66034080>
+    
+    Reviewed by Geoffrey Garen.
+    
+    Source/WebCore/PAL:
+    
+    Declare constants for MobileGestalt questions.
+    
+    * pal/spi/ios/MobileGestaltSPI.h:
+    
+    Source/WebKit:
+    
+    When the MobileGestalt cache is invalid, we issue a temporary extension to the MobileGestalt daemon for the WebContent process,
+    which will populate the in-memory cache by doing a set of MobileGestalt queries before revoking the extension. This patch
+    finalizes the list of MobileGestalt queries needed to populate the in-memory cache in the WebContent process on iOS before
+    revoking the temporary extension to com.apple.mobilegestalt.xpc. This list was compiled by querying every possible MobileGestalt
+    key after the temporary extension was revoked, and make a note of all queries that were contacting the MobileGestalt daemon to
+    get the answer. The added queries in this patch should make the list complete, and ensures that all cachable values are in the
+    in-memory cache before revoking the extension, since every possible MobileGestalt query was tested. This again means that users
+    that have an invalid MobileGestalt cache, will have access to the exact same MobileGestalt values, as those users who have a
+    valid MobileGestalt cache.
+    
+    * WebProcess/cocoa/WebProcessCocoa.mm:
+    (WebKit::WebProcess::platformInitializeWebProcess):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2020-08-03  Per Arne Vollan  <[email protected]>
+
+            Finalize the list of MobileGestalt queries needed to populate the in-memory cache in the WebContent process
+            https://bugs.webkit.org/show_bug.cgi?id=215095
+            <rdar://problem/66034080>
+
+            Reviewed by Geoffrey Garen.
+
+            When the MobileGestalt cache is invalid, we issue a temporary extension to the MobileGestalt daemon for the WebContent process,
+            which will populate the in-memory cache by doing a set of MobileGestalt queries before revoking the extension. This patch
+            finalizes the list of MobileGestalt queries needed to populate the in-memory cache in the WebContent process on iOS before
+            revoking the temporary extension to com.apple.mobilegestalt.xpc. This list was compiled by querying every possible MobileGestalt
+            key after the temporary extension was revoked, and make a note of all queries that were contacting the MobileGestalt daemon to
+            get the answer. The added queries in this patch should make the list complete, and ensures that all cachable values are in the
+            in-memory cache before revoking the extension, since every possible MobileGestalt query was tested. This again means that users
+            that have an invalid MobileGestalt cache, will have access to the exact same MobileGestalt values, as those users who have a
+            valid MobileGestalt cache.
+
+            * WebProcess/cocoa/WebProcessCocoa.mm:
+            (WebKit::WebProcess::platformInitializeWebProcess):
+
 2020-08-05  Russell Epstein  <[email protected]>
 
         Revert r265115. rdar://problem/66552761

Modified: branches/safari-610.1.25.10-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (265462 => 265463)


--- branches/safari-610.1.25.10-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2020-08-10 23:47:35 UTC (rev 265462)
+++ branches/safari-610.1.25.10-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm	2020-08-10 23:47:38 UTC (rev 265463)
@@ -217,6 +217,14 @@
             MGGetSInt32Answer(kMGQDeviceClassNumber, MGDeviceClassInvalid);
             MGGetBoolAnswer(kMGQHasExtendedColorDisplay);
             MGGetFloat32Answer(kMGQDeviceCornerRadius, 0);
+            MGGetBoolAnswer(kMGQSupportsForceTouch);
+
+            auto answer = adoptCF(MGCopyAnswer(kMGQBluetoothCapability, nullptr));
+            answer = MGCopyAnswer(kMGQDeviceProximityCapability, nullptr);
+            answer = MGCopyAnswer(kMGQDeviceSupportsARKit, nullptr);
+            answer = MGCopyAnswer(kMGQTimeSyncCapability, nullptr);
+            answer = MGCopyAnswer(kMGQWAPICapability, nullptr);
+            answer = MGCopyAnswer(kMGQMainDisplayRotation, nullptr);
 #endif
             ok = extension->revoke();
             ASSERT_UNUSED(ok, ok);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to