WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 129857
Web Inspector: JSContext inspection - TypeError: null is not an object (evaluating 'contentView.showSourceCode')
https://bugs.webkit.org/show_bug.cgi?id=129857
Summary
Web Inspector: JSContext inspection - TypeError: null is not an object (evalu...
Joseph Pecoraro
Reported
2014-03-06 18:13:44 PST
There is no "MainFrame" when inspecting a JSContext. [Error] TypeError: null is not an object (evaluating 'contentView.showSourceCode') showMainFrameSourceCode (ResourceSidebarPanel.js, line 123) showDefaultContentView (DebuggerSidebarPanel.js, line 134) _revealAndSelectRepresentedObjectInNavigationSidebar (Main.js, line 911) _updateNavigationSidebarForCurrentContentView (Main.js, line 940) _navigationSidebarPanelSelected (Main.js, line 949) dispatch (Object.js, line 180) dispatchEventToListeners (Object.js, line 187) selectedSidebarPanel (Sidebar.js, line 153) show (SidebarPanel.js, line 96) show (NavigationSidebarPanel.js, line 397) _debuggerDidPause (Main.js, line 748) dispatch (Object.js, line 180) dispatchEventToListeners (Object.js, line 187) debuggerDidPause (DebuggerManager.js, line 378) paused (DebuggerObserver.js, line 58) dispatch (InspectorBackend.js, line 256) dispatchNextQueuedMessageFromBackend (MessageDispatcher.js, line 31) (anonymous function) ([native code], line 0)
Attachments
[PATCH] Proposed Fix
(3.80 KB, patch)
2014-03-06 19:01 PST
,
Joseph Pecoraro
timothy
: review+
joepeck
: commit-queue-
Details
Formatted Diff
Diff
[PATCH] Simpler Solution
(3.28 KB, patch)
2014-04-04 18:44 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Rebaselined
(3.28 KB, patch)
2014-04-04 18:53 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2014-03-06 19:01:17 PST
Created
attachment 226074
[details]
[PATCH] Proposed Fix I'm open to better ideas. This seemed to work okay.
Joseph Pecoraro
Comment 2
2014-03-06 19:52:48 PST
Comment on
attachment 226074
[details]
[PATCH] Proposed Fix Hmmm, no I think this might break split console toggling.
Timothy Hatcher
Comment 3
2014-03-12 11:23:13 PDT
Comment on
attachment 226074
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=226074&action=review
I think this is fine. Only concern I have is the use of this.parentSidebar.selectedSidebarPanel.show().
> Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js:112 > + this.parentSidebar.selectedSidebarPanel.show();
I am not sure this is right. Why do we need to force the sidebar to show? A comment would be good about why it is forced to show and why this uses this.parentSidebar.selectedSidebarPanel.
> Source/WebInspectorUI/UserInterface/Views/ResourceSidebarPanel.js:117 > + this.parentSidebar.selectedSidebarPanel.show();
Ditto.
Joseph Pecoraro
Comment 4
2014-04-04 16:22:18 PDT
This patch still hasn't landed yet. I still don't like the patch, let me investigate some more.
Radar WebKit Bug Importer
Comment 5
2014-04-04 16:23:32 PDT
<
rdar://problem/16530662
>
Joseph Pecoraro
Comment 6
2014-04-04 18:44:21 PDT
Created
attachment 228642
[details]
[PATCH] Simpler Solution
Joseph Pecoraro
Comment 7
2014-04-04 18:53:20 PDT
Created
attachment 228644
[details]
[PATCH] Rebaselined
WebKit Commit Bot
Comment 8
2014-04-04 20:52:31 PDT
Comment on
attachment 228644
[details]
[PATCH] Rebaselined Clearing flags on attachment: 228644 Committed
r166824
: <
http://trac.webkit.org/changeset/166824
>
WebKit Commit Bot
Comment 9
2014-04-04 20:52:34 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug