Bug 21626

Summary: Crash when opening the web inspector inside a modal dialog
Product: WebKit Reporter: Geoffrey Garen <ggaren>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, rniwa, zwarich
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
scratch.html none

Description Geoffrey Garen 2008-10-15 16:15:08 PDT
TO REPRODUCE:
With the "Develop" menu enabled:
1. Load scratch.html, attached
2. Click "showModalDialog" button
3. Once the modal dialog loads, select Develop->Show Error Console
--> ASSERT

ASSERTION FAILED: A wrapper contains an object from the inspected page but is not a JSInspectedObjectWrapper
wrapper->inherits(&s_info)
(/Volumes/Big/ggaren/Labyrinth/OpenSource/WebCore/bindings/js/JSInspectedObjectWrapper.cpp:111 virtual JSC::JSValue* WebCore::JSInspectedObjectWrapper::prepareIncomingValue(JSC::ExecState*, JSC::JSValue*) const)
Program received signal:  “EXC_BAD_ACCESS”.
Comment 1 Geoffrey Garen 2008-10-15 16:16:09 PDT
Created attachment 24377 [details]
scratch.html
Comment 2 Cameron Zwarich (cpst) 2009-02-26 00:15:48 PST
This no longer crashes, but it still acts funny.
Comment 3 Ahmad Saleem 2022-07-31 02:33:26 PDT
showModalDialog support is gone from other browser and recently from Webkit Github source as well:

https://github.com/WebKit/WebKit/commit/c4bb4d1af89e1ef5f57ef1b1cf7b65ce62c30ba5

Do we need to work on this? Thanks!

I also don't get any Console error when I tried this test case and it does not crash Safari 15.6 on macOS 12.5.