WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
147913
Web Inspector: DOM Node should have context menu to scroll it into view on the inspected page
https://bugs.webkit.org/show_bug.cgi?id=147913
Summary
Web Inspector: DOM Node should have context menu to scroll it into view on th...
Joseph Pecoraro
Reported
2015-08-11 16:40:10 PDT
* SUMMARY DOM Node should have context menu to scroll it into view on the inspected page * NOTES - Chrome and Firefox both have this.
Attachments
[PATCH] Proposed Fix
(5.14 KB, patch)
2015-08-11 16:44 PDT
,
Joseph Pecoraro
timothy
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2015-08-11 16:44:57 PDT
Created
attachment 258780
[details]
[PATCH] Proposed Fix
Devin Rousso
Comment 2
2015-08-11 17:33:19 PDT
Comment on
attachment 258780
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=258780&action=review
> Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:1377 > + var node = this.representedObject;
NIT: Aren't we using let now? By the way, this doesn't apply to TOT.
Timothy Hatcher
Comment 3
2015-08-11 19:31:52 PDT
Comment on
attachment 258780
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=258780&action=review
> Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:672 > + contextMenu.appendItem(WebInspector.UIString("Scroll Into View"), this._scrollIntoView.bind(this));
Should we only show this context menu item in the console and object trees? Showing it in the Elements tab seems silly.
Nikita Vasilyev
Comment 4
2015-08-11 20:24:18 PDT
(In reply to
comment #3
)
> Comment on
attachment 258780
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=258780&action=review
> > > Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:672 > > + contextMenu.appendItem(WebInspector.UIString("Scroll Into View"), this._scrollIntoView.bind(this)); > > Should we only show this context menu item in the console and object trees? > Showing it in the Elements tab seems silly.
I don't think it's silly. When I inspect CodeMirror I see lots of similar looking nodes — it's not always clear if the selected element is invisible or just out of the screen.
Timothy Hatcher
Comment 5
2015-08-11 20:45:56 PDT
Oh, it scrolls the page not the DOM tree. Not silly at all.
Timothy Hatcher
Comment 6
2015-08-11 20:47:58 PDT
Comment on
attachment 258780
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=258780&action=review
> Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:670 > + var node = this.representedObject;
Let here too.
Joseph Pecoraro
Comment 7
2015-08-12 11:26:31 PDT
(In reply to
comment #2
)
> Comment on
attachment 258780
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=258780&action=review
> > > Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:1377 > > + var node = this.representedObject; > > NIT: Aren't we using let now? > > By the way, this doesn't apply to TOT.
This doesn't apply to ToT because of localizedString changes and svn-apply doesn't deal with binary diffs well.
Joseph Pecoraro
Comment 8
2015-08-12 12:04:03 PDT
http://trac.webkit.org/changeset/188343
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