Summary: | Web Inspector: Search shortcut clears the current search box contents | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexander Pavlov (apavlov) <apavlov> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Vivek Galatage <vivek.vg> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | apavlov, keishi, loislo, pfeldman, pmuellr, vivek.vg, vsevik, web-inspector-bugs, webkit.review.bot, yurys | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Alexander Pavlov (apavlov)
2013-01-17 02:54:58 PST
Created attachment 183361 [details]
Patch
Comment on attachment 183361 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=183361&action=review > Source/WebCore/inspector/front-end/SearchController.js:253 > + if (selection.rangeCount) { I think you should first check for WebInspector.currentFocusElement() !== this._searchInputElemen and only if that is true, grap the window.getSelection(). Comment on attachment 183361 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=183361&action=review >> Source/WebCore/inspector/front-end/SearchController.js:253 >> + if (selection.rangeCount) { > > I think you should first check for WebInspector.currentFocusElement() !== this._searchInputElemen and only if that is true, grap the window.getSelection(). oh yeah sure. Will upload a new patch. Thank you! Created attachment 183369 [details]
Patch
Comment on attachment 183369 [details]
Patch
Thank you!
Comment on attachment 183369 [details] Patch Clearing flags on attachment: 183369 Committed r140109: <http://trac.webkit.org/changeset/140109> All reviewed patches have been landed. Closing bug. |