Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 01812449af385a81b372f4973f615bd88cec1fb0
      
https://github.com/WebKit/WebKit/commit/01812449af385a81b372f4973f615bd88cec1fb0
  Author: Wenson Hsieh <[email protected]>
  Date:   2025-12-01 (Mon, 01 Dec 2025)

  Changed paths:
    A LayoutTests/inspector/indexeddb/attachWithIndexedDBDisabled-expected.txt
    A LayoutTests/inspector/indexeddb/attachWithIndexedDBDisabled.html
    M Source/WebCore/inspector/agents/InspectorIndexedDBAgent.cpp

  Log Message:
  -----------
  REGRESSION (Disabling Rich JavaScript APIs): Mail web content process crashes 
when attaching Web Inspector
https://bugs.webkit.org/show_bug.cgi?id=303338
rdar://165641768

Reviewed by Devin Rousso and Aditya Keerthi.

When attaching Web Inspector to a web view configured with 
`-_disableRichJavaScriptFeatures`, we
immediately hit a `MESSAGE_CHECK` and terminate the inspected page's web 
content process, due to the
fact that Web Inspector will immediately try to read all IndexedDB database 
names.

To fix this, we avoid getting IDB database names in the case where the 
IndexedDB feature is
disabled to begin with.

Test: inspector/indexeddb/attachWithIndexedDBDisabled.html

* LayoutTests/inspector/indexeddb/attachWithIndexedDBDisabled-expected.txt: 
Added.
* LayoutTests/inspector/indexeddb/attachWithIndexedDBDisabled.html: Added.
* Source/WebCore/inspector/agents/InspectorIndexedDBAgent.cpp:
(WebCore::getDocumentAndIDBFactoryFromFrameOrSendFailure):

Canonical link: https://commits.webkit.org/303729@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to