[Webkit-unassigned] [Bug 243343] New: iOS 16 Beta Crash adding / removing ScriptMessageHandlers to WKUserContentController

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 29 08:48:29 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=243343

            Bug ID: 243343
           Summary: iOS 16 Beta Crash adding / removing
                    ScriptMessageHandlers to WKUserContentController
           Product: WebKit
           Version: Other
          Hardware: iPhone / iPad
                OS: Other
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sreinhardt at jungroup.com

Created attachment 461296

  --> https://bugs.webkit.org/attachment.cgi?id=461296&action=review

Crash log - addScriptMessageHandler:name

Observed frequent EXC_BAD_ACCESS crashes (~ 1 out of 4 attempts) when adding `[WKUserContentController addScriptMessageHandler: name]` or removing `[WKUserContentController removeAllScriptMessageHandlers]` script message handlers to a WKWebView. 

Observed on iOS 16 betas 1-4, stable on all other OS's.

Crash statement (full log attached):
```
Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   JavaScriptCore                             0x19e76ba54 WTF::equal(WTF::StringImpl const*, unsigned char const*, unsigned int) + 200
1   JavaScriptCore                             0x19e717c70 WTF::HashTableAddResult<WTF::HashTableIterator<WTF::HashTable<WTF::Packed<WTF::StringImpl*>, WTF::Packed<WTF::StringImpl*>, WTF::IdentityExtractor, WTF::DefaultHash<WTF::Packed<WTF::StringImpl*> >, WTF::HashTraits<WTF::Packed<WTF::StringImpl*> >, WTF::HashTraits<WTF::Packed<WTF::StringImpl*> > >, WTF::Packed<WTF::StringImpl*>, WTF::Packed<WTF::StringImpl*>, WTF::IdentityExtractor, WTF::DefaultHash<WTF::Packed<WTF::StringImpl*> >, WTF::HashTraits<WTF::Packed<WTF::StringImpl*> >, WTF::HashTraits<WTF::Packed<WTF::StringImpl*> > > > WTF::HashTable<WTF::Packed<WTF::StringImpl*>, WTF::Packed<WTF::StringImpl*>, WTF::IdentityExtractor, WTF::DefaultHash<WTF::Packed<WTF::StringImpl*> >, WTF::HashTraits<WTF::Packed<WTF::StringImpl*> >, WTF::HashTraits<WTF::Packed<WTF::StringImpl*> > >::addPassingHashCode<WTF::HashSetTranslatorAdapter<WTF::LCharBufferTranslator>, WTF::HashTranslatorCharBuffer<unsigned char> const&, WTF::HashTranslatorCharBuffer<unsigned char> const&>(WTF::HashTranslatorCharBuffer<unsigned char> const&, WTF::HashTranslatorCharBuffer<unsigned char> const&) + 184
2   JavaScriptCore                             0x19e714f20 WTF::AtomStringImpl::add(unsigned char const*, unsigned int) + 244
3   WebKit                                     0x1a25fbc90 -[WKUserContentController addScriptMessageHandler:name:] + 80
4   HyprMX                                     0x104ebe7b8 +[HYPRWebView addScriptsToWebView:withMessageHandler:] + 592

```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220729/d29914eb/attachment-0001.htm>


More information about the webkit-unassigned mailing list