If a browser window has a Web Inspector open in a separate window, closing the browser window causes a crash.
STR:
- Open a browser window.
- Open the Web Inspector (Command+Option+I, Inspect Element, etc.)
- If the Web Inspector is docked to the browser window, click the "Detach into separate window" button in the Inspector toolbar to move it to its own window.
- Close the browser window.
Result: crash
Notes:
I've only been able to reproduce this on macOS 14 Sonoma (I'm on 14.8.1). Another machine on 15.7.1 does not crash.
I also saw this issue a while back in Safari Technology Preview. I haven't seen it in recent builds, but I'm not sure if it was ever actually fixed, or it's just because STP moved to only supporting macOS 15 and up.
Stack trace:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x188a32bd0 class_getMethodImplementation + 44
1 Foundation 0x189fd1148 _NSKVONotifyingOriginalClassForIsa + 32
2 Foundation 0x189ff1544 _NSKeyValueObservationInfoGetObservances + 268
3 Foundation 0x18a70e2e0 NSKeyValueWillChangeWithPerThreadPendingNotifications + 236
4 AppKit 0x18d426dac __reusableDependencyContextForKey_block_invoke + 56
5 CoreFoundation 0x188eacd44 __CFSetApplyFunction_block_invoke + 28
6 CoreFoundation 0x188eacb60 CFBasicHashApply + 148
7 CoreFoundation 0x188eaca9c CFSetApplyFunction + 224
8 AppKit 0x18d426de0 __reusableDependencyContextForKey_block_invoke + 108
9 CoreFoundation 0x188eacd44 __CFSetApplyFunction_block_invoke + 28
10 CoreFoundation 0x188eacb60 CFBasicHashApply + 148
11 CoreFoundation 0x188eaca9c CFSetApplyFunction + 224
12 AppKit 0x18c7633cc -[NSView _setSuperview:] + 1396
13 AppKit 0x18c783240 -[NSView removeFromSuperview] + 156
14 AppKit 0x18c7e1c04 -[NSView removeFromSuperviewWithoutNeedingDisplay] + 44
15 AppKit 0x18c787978 -[NSView _finalize] + 680
16 AppKit 0x18c7875b8 -[NSView dealloc] + 128
17 AppKit 0x18c9c0934 -[NSFrameView dealloc] + 164
18 AppKit 0x18c9c0880 -[NSTitledFrame dealloc] + 72
19 AppKit 0x18c9c07fc -[NSThemeFrame dealloc] + 684
20 Foundation 0x18a70f068 _NSKVOPerformWithDeallocatingObservable + 172
21 Foundation 0x18a02c1a4 NSKVODeallocate + 180
22 AppKit 0x18c940024 -[NSWindow dealloc] + 988
23 Foundation 0x18a70f068 _NSKVOPerformWithDeallocatingObservable + 172
24 Foundation 0x18a02c1a4 NSKVODeallocate + 180
25 libobjc.A.dylib 0x188a33230 AutoreleasePoolPage::releaseUntil(objc_object**) + 212
26 libobjc.A.dylib 0x188a2f81c objc_autoreleasePoolPop + 260
27 CoreFoundation 0x188ea4734 _CFAutoreleasePoolPop + 32
28 Foundation 0x189feee08 -[NSAutoreleasePool drain] + 140
29 AppKit 0x18c73a148 -[NSApplication run] + 520
30 AppKit 0x18c711360 NSApplicationMain + 880
31 Orion 0x10103d4f8 0x100868000 + 8213752
32 dyld 0x188a7b154 start + 2476
```!<
Expected:
no crash
0.99.137-beta
Sonoma (14)