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”.
Created attachment 24377 [details] scratch.html
This no longer crashes, but it still acts funny.
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.