Changeset 202719 in webkit


Ignore:
Timestamp:
Jun 30, 2016 5:03:58 PM (8 years ago)
Author:
jiewen_tan@apple.com
Message:

Create a generic "linked-on-or-after" check for new CSP Rules
https://bugs.webkit.org/show_bug.cgi?id=159322
<rdar://problem/27117220>

Reviewed by Brent Fulgham.

Source/WebCore:

Create a generic "linked-on-or-after" check for new CSP Rules and cleanup
quirks for Ecobee, Quora and XtraMat.

  • platform/RuntimeApplicationChecks.h:
  • platform/RuntimeApplicationChecks.mm:

(WebCore::IOSApplication::isEcobee): Deleted.
(WebCore::IOSApplication::isQuora): Deleted.
(WebCore::IOSApplication::isXtraMath): Deleted.

Source/WebKit/mac:

  • WebView/WebView.mm:

(shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202716 r202719  
     12016-06-30  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        Create a generic "linked-on-or-after" check for new CSP Rules
     4        https://bugs.webkit.org/show_bug.cgi?id=159322
     5        <rdar://problem/27117220>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Create a generic "linked-on-or-after" check for new CSP Rules and cleanup
     10        quirks for Ecobee, Quora and XtraMat.
     11
     12        * platform/RuntimeApplicationChecks.h:
     13        * platform/RuntimeApplicationChecks.mm:
     14        (WebCore::IOSApplication::isEcobee): Deleted.
     15        (WebCore::IOSApplication::isQuora): Deleted.
     16        (WebCore::IOSApplication::isXtraMath): Deleted.
     17
    1182016-06-30  Antti Koivisto  <antti@apple.com>
    219
  • trunk/Source/WebCore/platform/RuntimeApplicationChecks.h

    r202380 r202719  
    7373WEBCORE_EXPORT bool isWebProcess();
    7474bool isIBooks();
    75 WEBCORE_EXPORT bool isEcobee();
    76 WEBCORE_EXPORT bool isQuora();
    77 WEBCORE_EXPORT bool isXtraMath();
    7875WEBCORE_EXPORT bool isTheSecretSocietyHiddenMystery();
    7976
  • trunk/Source/WebCore/platform/RuntimeApplicationChecks.mm

    r202380 r202719  
    236236}
    237237
    238 bool IOSApplication::isEcobee()
    239 {
    240     static bool isEcobee = applicationBundleIsEqualTo("com.ecobee.athenamobile");
    241     return isEcobee;
    242 }
    243 
    244 bool IOSApplication::isQuora()
    245 {
    246     static bool isQuora = applicationBundleIsEqualTo("com.quora.app.mobile");
    247     return isQuora;
    248 }
    249 
    250 bool IOSApplication::isXtraMath()
    251 {
    252     static bool isXtraMath = applicationBundleIsEqualTo("org.xtramath.mathfacts");
    253     return isXtraMath;
    254 }
    255 
    256238bool IOSApplication::isTheSecretSocietyHiddenMystery()
    257239{
  • trunk/Source/WebKit/mac/ChangeLog

    r202685 r202719  
     12016-06-30  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        Create a generic "linked-on-or-after" check for new CSP Rules
     4        https://bugs.webkit.org/show_bug.cgi?id=159322
     5        <rdar://problem/27117220>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        * WebView/WebView.mm:
     10        (shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol):
     11
    1122016-06-30  Anders Carlsson  <andersca@apple.com>
    213
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r202685 r202719  
    870870{
    871871#if PLATFORM(IOS)
    872     static bool shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol = (IOSApplication::isEcobee() || IOSApplication::isQuora() || IOSApplication::isXtraMath()) && !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_CONTENT_SECURITY_POLICY_SOURCE_STAR_PROTOCOL_RESTRICTION);
     872    static bool shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_CONTENT_SECURITY_POLICY_SOURCE_STAR_PROTOCOL_RESTRICTION);
    873873    return shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol;
    874874#else
Note: See TracChangeset for help on using the changeset viewer.