WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
275640
Crash at WebKit::WebExtensionContext::fireStorageChangedEventIfNeeded
https://bugs.webkit.org/show_bug.cgi?id=275640
Summary
Crash at WebKit::WebExtensionContext::fireStorageChangedEventIfNeeded
Timothy Hatcher
Reported
2024-06-18 16:21:05 PDT
Last Exception Backtrace: 0 CoreFoundation 0x1871be418 __exceptionPreprocess + 164 (/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/ObjC.subproj/NSException.m:249) 1 libobjc.A.dylib 0x184525e88 objc_exception_throw + 76 (/Library/Caches/com.apple.xbs/Sources/objc4/runtime/objc-exception.mm:356) 2 CoreFoundation 0x1871507ac -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 728 (/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/Collections.subproj/NSPlaceholderDictionary.m:0) 3 CoreFoundation 0x1871503c8 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 52 (/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/Collections.subproj/NSDictionary.m:614) 4 WebKit 0x19dd7b344 invocation function for block in WebKit::WebExtensionContext::fireStorageChangedEventIfNeeded(NSDictionary*, NSDictionary*, WebKit::WebExtensionDataType) + 312 (/Library/Caches/com.apple.xbs/Sources/WebKit/Source/WebKit/UIProcess/Extensions/Cocoa/API/WebExtensionContextAPIStorageCocoa.mm:201) 5 CoreFoundation 0x18715fa40 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 24 (/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/Collections.subproj/NSDictionaryHelpers.m:10) 6 CoreFoundation 0x1871d59d8 -[__NSSingleEntryDictionaryI enumerateKeysAndObjectsWithOptions:usingBlock:] + 100 (/Library/Caches/com.apple.xbs/Sources/CoreFoundation/CoreFoundation/Collections.subproj/NSSingleEntryDictionaryI.m:81) 7 WebKit 0x19dd7ade0 WebKit::WebExtensionContext::fireStorageChangedEventIfNeeded(NSDictionary*, NSDictionary*, WebKit::WebExtensionDataType) + 208 (/Library/Caches/com.apple.xbs/Sources/WebKit/Source/WebKit/UIProcess/Extensions/Cocoa/API/WebExtensionContextAPIStorageCocoa.mm:188) 8 WebKit 0x19dd7c310 WebKit::WebExtensionContext::storageSet(WTF::ObjectIdentifierGeneric<WebKit::WebPageProxyIdentifierType, WTF::ObjectIdentifierMainThreadAccessTraits>, WebKit::WebExtensionDataType, WTF::String const&, WTF::CompletionHandler<void (std::experimental::fundamentals_v3::expected<void, WTF::String>&&)>&&)::$_0::operator()(unsigned long, unsigned long, NSDictionary<NSString*, NSString*>*, NSString*)::'lambda'(NSArray*, NSString*)::operator()(NSArray*, NSString*) + 356 (/Library/Caches/com.apple.xbs/Sources/WebKit/Source/WebKit/UIProcess/Extensions/Cocoa/API/WebExtensionContextAPIStorageCocoa.mm:115) [inlined] 9 WebKit 0x19dd7c310 WTF::BlockPtrArc<void (NSArray*, NSString*)> WTF::BlockPtrArc<void (NSArray*, NSString*)>::fromCallable<WebKit::WebExtensionContext::storageSet(WTF::ObjectIdentifierGeneric<WebKit::WebPageProxyIdentifierType, WTF::ObjectIdentifierMainThreadAccessTraits>, WebKit::WebExtensionDataType, WTF::String const&, WTF::CompletionHandler<void (std::experimental::fundamentals_v3::expected<void, WTF::String>&&)>&&)::$_0::operator()(unsigned long, unsigned long, NSDictionary<NSString*, NSString*>*, NSString*)::'lambda'(NSArray*, NSString*)>(WebKit::WebExtensionContext::storageSet(WTF::ObjectIdentifierGeneric<WebKit::WebPageProxyIdentifierType, WTF::ObjectIdentifierMainThreadAccessTraits>, WebKit::WebExtensionDataType, WTF::String const&, WTF::CompletionHandler<void (std::experimental::fundamentals_v3::expected<void, WTF::String>&&)>&&)::$_0::operator()(unsigned long, unsigned long, NSDictionary<NSString*, NSString*>*, NSString*)::'lambda'(NSArray*, NSString*))::'lambda'(void*, NSArray*, NSString*)::operator()(void*, NSArray*, NSString*) const + 356 (/AppleInternal/Library/BuildRoots/5c43ac7b-1dfd-11ef-a523-4a8302371c27/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.Internal.sdk/usr/local/include/wtf/BlockPtr.h:111) [inlined] 10 WebKit 0x19dd7c310 WTF::BlockPtrArc<void (NSArray*, NSString*)> WTF::BlockPtrArc<void (NSArray*, NSString*)>::fromCallable<WebKit::WebExtensionContext::storageSet(WTF::ObjectIdentifierGeneric<WebKit::WebPageProxyIdentifierType, WTF::ObjectIdentifierMainThreadAccessTraits>, WebKit::WebExtensionDataType, WTF::String const&, WTF::CompletionHandler<void (std::experimental::fundamentals_v3::expected<void, WTF::String>&&)>&&)::$_0::operator()(unsigned long, unsigned long, NSDictionary<NSString*, NSString*>*, NSString*)::'lambda'(NSArray*, NSString*)>(WebKit::WebExtensionContext::storageSet(WTF::ObjectIdentifierGeneric<WebKit::WebPageProxyIdentifierType, WTF::ObjectIdentifierMainThreadAccessTraits>, WebKit::WebExtensionDataType, WTF::String const&, WTF::CompletionHandler<void (std::experimental::fundamentals_v3::expected<void, WTF::String>&&)>&&)::$_0::operator()(unsigned long, unsigned long, NSDictionary<NSString*, NSString*>*, NSString*)::'lambda'(NSArray*, NSString*))::'lambda'(void*, NSArray*, NSString*)::__invoke(void*, NSArray*, NSString*) + 416 (/AppleInternal/Library/BuildRoots/5c43ac7b-1dfd-11ef-a523-4a8302371c27/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.Internal.sdk/usr/local/include/wtf/BlockPtr.h:110)
rdar://129782075
Attachments
Add attachment
proposed patch, testcase, etc.
Timothy Hatcher
Comment 1
2024-06-18 16:23:05 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/29957
EWS
Comment 2
2024-06-18 16:27:33 PDT
Committed
280142@main
(96e74a542f6f): <
https://commits.webkit.org/280142@main
> Reviewed commits have been landed. Closing PR #29957 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug