Changeset 265431 in webkit
- Timestamp:
- Aug 10, 2020 9:31:38 AM (4 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r265423 r265431 1 2020-08-10 Alex Christensen <achristensen@webkit.org> 2 3 REGRESSION(r261159) PokerBros only shows black screen 4 https://bugs.webkit.org/show_bug.cgi?id=215293 5 <rdar://problem/66073740> 6 7 Reviewed by Keith Miller. 8 9 The PokerBros app has some logic that was broken by the change in behavior of r261159. 10 It caused the app do do nothing except show a black screen upon opening. 11 Revert to the old behavior for this app until they update to iOS14. 12 13 * runtime/JSObject.cpp: 14 (JSC::needsOldStringName): 15 (JSC::JSObject::toStringName): 16 1 17 2020-08-10 Yusuke Suzuki <ysuzuki@apple.com> 2 18 -
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r265421 r265431 44 44 #include "VMInlines.h" 45 45 #include <wtf/Assertions.h> 46 47 #if PLATFORM(IOS) 48 #include <wtf/spi/darwin/dyldSPI.h> 49 #endif 46 50 47 51 namespace JSC { … … 510 514 } 511 515 516 #if PLATFORM(IOS) 517 inline static bool isPokerBros() 518 { 519 auto bundleID = CFBundleGetIdentifier(CFBundleGetMainBundle()); 520 return bundleID 521 && CFEqual(bundleID, CFSTR("com.kpgame.PokerBros")) 522 && dyld_get_program_sdk_version() < DYLD_IOS_VERSION_14_0; 523 } 524 #endif 525 512 526 String JSObject::toStringName(const JSObject* object, JSGlobalObject* globalObject) 513 527 { 514 528 VM& vm = globalObject->vm(); 529 #if PLATFORM(IOS) 530 static bool needsOldStringName = isPokerBros(); 531 if (UNLIKELY(needsOldStringName)) { 532 const ClassInfo* info = object->classInfo(vm); 533 ASSERT(info); 534 return info->className; 535 } 536 #endif 515 537 auto scope = DECLARE_THROW_SCOPE(vm); 516 538 bool objectIsArray = isArray(globalObject, object);
Note: See TracChangeset
for help on using the changeset viewer.