Changeset 42221 in webkit


Ignore:
Timestamp:
Apr 3, 2009 5:41:04 PM (15 years ago)
Author:
timothy@apple.com
Message:

Fixes a bug where you could not type any more in the Web Inspector's
search field after the first match is selected in the Resources panel.

https://bugs.webkit.org/show_bug.cgi?id=23982
rdar://problem/6592367

Reviewed by Darin Adler.

  • inspector/front-end/SourceView.js: (WebInspector.SourceView.prototype._jumpToSearchResult): Use the window object of the frame to set the selection, not the main window.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r42218 r42221  
     12009-04-03  Timothy Hatcher  <timothy@apple.com>
     2
     3        Fixes a bug where you could not type any more in the Web Inspector's
     4        search field after the first match is selected in the Resources panel.
     5
     6        https://bugs.webkit.org/show_bug.cgi?id=23982
     7        rdar://problem/6592367
     8
     9        Reviewed by Darin Adler.
     10
     11        * inspector/front-end/SourceView.js:
     12        (WebInspector.SourceView.prototype._jumpToSearchResult): Use the
     13        window object of the frame to set the selection, not the main window.
     14
    1152009-04-03  Sam Weinig  <sam@webkit.org>
    216
  • trunk/WebCore/inspector/front-end/SourceView.js

    r39367 r42221  
    275275            return;
    276276
    277         var selection = window.getSelection();
     277        var selection = this.sourceFrame.element.contentWindow.getSelection();
    278278        selection.removeAllRanges();
    279279        selection.addRange(foundRange);
Note: See TracChangeset for help on using the changeset viewer.