Created attachment 204724 [details] Screen shot of "localized string not found" window Using the latest nightly, Web Inspector doesn't open when trying to inspect pages either in Safari or in a UIWebView (phonegap) on iOS Simulator (6.1) or on iPhone 4S (6.1). The last working nightly is r151446. Sometimes, if you try to inspect the same target multiple times, on the second and subsequent attempts, the console displays the following: Jun 14 11:21:24 bjdesktop.local SafariForWebKitDevelopment[8110]: WebKit r151595 initialized. Jun 14 11:21:36 bjdesktop.local SafariForWebKitDevelopment[8110]: An uncaught exception was raised Jun 14 11:21:36 bjdesktop.local SafariForWebKitDevelopment[8110]: *** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument Jun 14 11:21:36 bjdesktop.local SafariForWebKitDevelopment[8110]: ( 0 CoreFoundation 0x00007fff842700a6 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff8d4343f0 objc_exception_throw + 43 2 CoreFoundation 0x00007fff8426fe7c +[NSException raise:format:] + 204 3 Foundation 0x00007fff8e5f806a -[NSPlaceholderString initWithFormat:locale:arguments:] + 100 4 Foundation 0x00007fff8e5f91bc +[NSString stringWithFormat:] + 170 5 WebInspector 0x0000000110e082ad -[RWIInspectorWindowController updateWindowTitleWithURLComponents:] + 210 6 WebInspector 0x0000000110e0854c -[RWIInspectorWindowController showWindow:] + 283 7 WebInspector 0x0000000110e098be -[RWIManager openInspectorForWebView:] + 226 8 AppKit 0x00007fff89b9ba59 -[NSApplication sendAction:to:from:] + 342 9 Safari 0x000000010c5ebc76 -[BrowserApplication sendAction:to:from:] + 54 10 AppKit 0x00007fff89cd144c -[NSMenuItem _corePerformAction] + 406 11 AppKit 0x00007fff89cd113a -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 133 12 AppKit 0x00007fff899be46f -[NSMenu _internalPerformActionForItemAtIndex:] + 36 13 AppKit 0x00007fff899be2f7 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 135 14 AppKit 0x00007fff89cca245 NSSLMMenuEventHandler + 342 15 HIToolbox 0x00007fff8a91ff0a _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1206 16 HIToolbox 0x00007fff8a91f3d9 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 410 17 HIToolbox 0x00007fff8a9351bd SendEventToEventTarget + 40 18 HIToolbox 0x00007fff8a96be89 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 443 19 HIToolbox 0x00007fff8a910c11 SendMenuCommandWithContextAndModifiers + 59 20 HIToolbox 0x00007fff8a910bc3 SendMenuItemSelectedEvent + 254 21 HIToolbox 0x00007fff8a910a4f _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 94 22 HIToolbox 0x00007fff8a8ecaab _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 605 23 HIToolbox 0x00007fff8a8ec0b8 _HandleMenuSelection2 + 565 24 AppKit 0x00007fff89b899c6 _NSHandleCarbonMenuEvent + 245 25 AppKit 0x00007fff89aabb7f _DPSNextEvent + 2073 26 AppKit 0x00007fff89aaaed2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 27 Safari 0x000000010c5ec75b -[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 162 28 AppKit 0x00007fff89aa2283 -[NSApplication run] + 517 29 AppKit 0x00007fff89a46cb6 NSApplicationMain + 869 30 Safari 0x000000010c7bfd54 SafariMain + 166 31 libdyld.dylib 0x00007fff840407e1 start + 0 32 ??? 0x0000000000000003 0x0 + 3 ) If you attempt to attach a remote page several times, and then you open the web inspector on a local page, close it, and then open a remote page again, you will sometimes get an inspector window with no panels (just a grey box, see attachment) with the title "localized string not found" with no messages in the console. Steps to replicate: 1. Open iOS Simulator and browse to www.google.com in Safari 2. Open WebKit 3. Select Develop -> iPhone Simulator -> www.google.com 4. Repeat 3 several times and you may get the console message. 5. Select Develop -> Show Web Inspector (on another open window, e.g. the WebKit Nightly page) 6. Close Web Inspector 7. Repeat 3 several times and you may get the "localized string not found" window.
<rdar://problem/14158727>
Thanks for reporting! This should be fixed in the next nightly or so. We've made fix in the closed source framework.