Changeset 258564 in webkit
- Timestamp:
- Mar 17, 2020, 11:31:22 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r258557 r258564 1 2020-03-17 Alex Christensen <achristensen@webkit.org> 2 3 REGRESSION(r254856) Add exception for window.openDatabase to not masquerade as undefined in currently shipping Jesus Calling Devotional app 4 https://bugs.webkit.org/show_bug.cgi?id=209160 5 <rdar://problem/60297073> 6 7 Reviewed by Geoff Garen. 8 9 * wtf/spi/darwin/dyldSPI.h: 10 1 11 2020-03-17 Per Arne Vollan <pvollan@apple.com> 2 12 -
trunk/Source/WTF/wtf/spi/darwin/dyldSPI.h
r256191 r258564 86 86 #define DYLD_IOS_VERSION_11_3 0x000B0300 87 87 #define DYLD_IOS_VERSION_12_0 0x000C0000 88 #define DYLD_IOS_VERSION_12_2 0x000C0200 88 89 #define DYLD_IOS_VERSION_13_0 0x000D0000 89 90 #define DYLD_IOS_VERSION_13_2 0x000D0200 -
trunk/Source/WebCore/ChangeLog
r258560 r258564 1 2020-03-17 Alex Christensen <achristensen@webkit.org> 2 3 REGRESSION(r254856) Add exception for window.openDatabase to not masquerade as undefined in currently shipping Jesus Calling Devotional app 4 https://bugs.webkit.org/show_bug.cgi?id=209160 5 <rdar://problem/60297073> 6 7 Reviewed by Geoff Garen. 8 9 Manually verified this fixes the app, which compares typeof openDatabase with 'undefined' 10 Going forward, we intend to completely remove WebSQL, so this is a temporary exception to our removal strategy. 11 12 * bindings/js/JSDOMWindowCustom.cpp: 13 (WebCore::JSDOMWindow::openDatabase const): 14 * platform/RuntimeApplicationChecks.h: 15 * platform/cocoa/RuntimeApplicationChecksCocoa.mm: 16 (WebCore::IOSApplication::isJesusCalling): 17 1 18 2020-03-17 Andres Gonzalez <andresg_22@apple.com> 2 19 -
trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
r257399 r258564 60 60 #endif 61 61 62 #if PLATFORM(IOS) 63 #include "RuntimeApplicationChecks.h" 64 #include <wtf/cocoa/RuntimeApplicationChecksCocoa.h> 65 #endif 62 66 63 67 namespace WebCore { … … 633 637 JSValue JSDOMWindow::openDatabase(JSC::JSGlobalObject& lexicalGlobalObject) const 634 638 { 639 #if PLATFORM(IOS) 640 static const bool openDatabaseShouldBeDefinedEvenWhenDisabled = IOSApplication::isJesusCalling() && applicationSDKVersion() <= DYLD_IOS_VERSION_12_2; 641 #else 642 constexpr bool openDatabaseShouldBeDefinedEvenWhenDisabled = false; 643 #endif 644 635 645 VM& vm = lexicalGlobalObject.vm(); 636 646 StringImpl* name = PropertyName(static_cast<JSVMClientData*>(vm.clientData)->builtinNames().openDatabasePublicName()).publicName(); 637 if (RuntimeEnabledFeatures::sharedFeatures().webSQLEnabled() )647 if (RuntimeEnabledFeatures::sharedFeatures().webSQLEnabled() || openDatabaseShouldBeDefinedEvenWhenDisabled) 638 648 return JSFunction::create(vm, &lexicalGlobalObject, 4, name, jsDOMWindowInstanceFunctionOpenDatabase, NoIntrinsic); 639 649 -
trunk/Source/WebCore/platform/RuntimeApplicationChecks.h
r258447 r258564 87 87 WEBCORE_EXPORT bool isMiniBrowser(); 88 88 bool isMobileStore(); 89 bool isJesusCalling(); 89 90 bool isSpringBoard(); 90 91 WEBCORE_EXPORT bool isWebProcess(); -
trunk/Source/WebCore/platform/cocoa/RuntimeApplicationChecksCocoa.mm
r258447 r258564 250 250 } 251 251 252 bool IOSApplication::isJesusCalling() 253 { 254 static bool isJesusCalling = applicationBundleIsEqualTo("com.thomasnelson.jesuscalling"_s); 255 return isJesusCalling; 256 } 257 252 258 bool IOSApplication::isMobileStore() 253 259 {
Note:
See TracChangeset
for help on using the changeset viewer.