Bug 118655 - Web Inspector: WebKitDeveloperExtras crash with latest nightly embedded in a Cocoa App
Summary: Web Inspector: WebKitDeveloperExtras crash with latest nightly embedded in a ...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh Intel OS X 10.8
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-07-14 05:22 PDT by StuFF mc
Modified: 2013-07-14 05:46 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description StuFF mc 2013-07-14 05:22:29 PDT
following this nice tutorial (with the only difference that I needed to add @rpath as well to "Dynamic Library Install Name" — and that I didn't need WebCore in WebKit*), I have a built-in/frozen version of WebKit in my Cocoa App. Before anyone asks "WHHHYYY?" :) It's the life a contractor — the customers wants it, for various reasons.

All works fine, up until I use again the nice -WebKitDeveloperExtras YES Argument to have "Inspect Element" in my WebView. This works nicely with the "OS" Version of WebKit, but now it crashes on me with 

 *** -[NSURL initFileURLWithPath:]: nil string parameter

2013-07-14 13:30:42.157 MyApp [88000:303] (

	0   CoreFoundation                      0x00007fff8ad00b06 __exceptionPreprocess + 198

	1   libobjc.A.dylib                     0x00007fff8fcfe3f0 objc_exception_throw + 43

	2   CoreFoundation                      0x00007fff8ad008dc +[NSException raise:format:] + 204

	3   Foundation                          0x00007fff855dfe07 -[NSURL(NSURL) initFileURLWithPath:] + 81

	4   Foundation                          0x00007fff855dfd07 +[NSURL(NSURL) fileURLWithPath:] + 43

	5   WebKit                              0x0000000100604479 -[WebInspectorWindowController init] + 553

	6   WebKit                              0x000000010060450b -[WebInspectorWindowController initWithInspectedWebView:] + 27

	7   WebKit                              0x0000000100602ff1 _ZN18WebInspectorClient21openInspectorFrontendEPN7WebCore19InspectorControllerE + 65

	8   WebCore                             0x00000001013e896b _ZN7WebCore19InspectorController7inspectEPNS_4NodeE + 75

	9   WebCore                             0x0000000101002c66 _ZN7WebCore21ContextMenuController23contextMenuItemSelectedEPNS_15ContextMenuItemE + 2278

	10  WebKit                              0x00000001005edbc9 -[WebMenuTarget forwardContextMenuAction:] + 137

	11  AppKit                              0x00007fff89564959 -[NSApplication sendAction:to:from:] + 342

	12  AppKit                              0x00007fff8969a36c -[NSMenuItem _corePerformAction] + 406

	13  AppKit                              0x00007fff8969a05a -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 133

	14  AppKit                              0x00007fff8938720f -[NSMenu _internalPerformActionForItemAtIndex:] + 36

	15  AppKit                              0x00007fff89387097 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 135

	16  AppKit                              0x00007fff89693165 NSSLMMenuEventHandler + 342

	17  HIToolbox                           0x00007fff8b326d1a _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1206

	18  HIToolbox                           0x00007fff8b3261e9 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 410

	19  HIToolbox                           0x00007fff8b33bfc9 SendEventToEventTarget + 40

	20  HIToolbox                           0x00007fff8b372ca9 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 443

	21  HIToolbox                           0x00007fff8b317a21 SendMenuCommandWithContextAndModifiers + 59

	22  HIToolbox                           0x00007fff8b3179d3 SendMenuItemSelectedEvent + 254

	23  HIToolbox                           0x00007fff8b31785f _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 94

	24  HIToolbox                           0x00007fff8b48de79 _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK10__CFStringPP13OpaqueMenuRefPt + 1673

	25  HIToolbox                           0x00007fff8b48d794 _HandlePopUpMenuSelection7 + 629

	26  AppKit                              0x00007fff8971656b _NSSLMPopUpCarbonMenu3 + 3916

	27  AppKit                              0x00007fff897155f8 -[NSCarbonMenuImpl _popUpContextMenu:withEvent:forView:withFont:] + 189

	28  AppKit                              0x00007fff8986fff3 -[NSMenu _popUpContextMenu:withEvent:forView:withFont:] + 200

	29  AppKit                              0x00007fff89a35937 -[NSView rightMouseDown:] + 130

	30  AppKit                              0x00007fff89764cfb -[NSControl _rightMouseUpOrDown:] + 534

	31  AppKit                              0x00007fff89559b81 -[NSWindow sendEvent:] + 8504

	32  AppKit                              0x00007fff89555644 -[NSApplication sendEvent:] + 5761

	33  AppKit                              0x00007fff8946b21a -[NSApplication run] + 636

	34  AppKit                              0x00007fff8940fbd6 NSApplicationMain + 869
Comment 1 Radar WebKit Bug Importer 2013-07-14 05:22:40 PDT
<rdar://problem/14438064>
Comment 2 Timothy Hatcher 2013-07-14 05:33:23 PDT
You need WebIbspector.framework and/or WebIbspectorUI.framework depending on what revision of WebKit you have. Embedding WebKit is not supported so we can't help more than this.
Comment 3 Timothy Hatcher 2013-07-14 05:46:44 PDT
Sorry for the typos. WebInspector.framework and/or WebInspectorUI.framework