⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 173547 in webkit


Ignore:
Timestamp:
Sep 11, 2014, 4:12:53 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Fix assert in QuickConsole - main frame execution context path component
​https://bugs.webkit.org/show_bug.cgi?id=136748

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2014-09-11
Reviewed by Timothy Hatcher.

This can get called for the MainFrame on page navigations.
In such cases we can return a better result from this method.

  • UserInterface/Views/QuickConsole.js:

(WebInspector.QuickConsole.prototype._insertExecutionContextPathComponentForFrame):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r173536 r173547  
     12014-09-11  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Fix assert in QuickConsole - main frame execution context path component
     4        https://bugs.webkit.org/show_bug.cgi?id=136748
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        This can get called for the MainFrame on page navigations.
     9        In such cases we can return a better result from this method.
     10
     11        * UserInterface/Views/QuickConsole.js:
     12        (WebInspector.QuickConsole.prototype._insertExecutionContextPathComponentForFrame):
     13
    1142014-09-11  Joseph Pecoraro  <pecoraro@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/QuickConsole.js

    r173477 r173547  
    247247    _insertExecutionContextPathComponentForFrame: function(frame, skipRebuild)
    248248    {
    249         console.assert(!frame.isMainFrame());
    250249        if (frame.isMainFrame())
    251             return null;
     250            return this._mainFrameExecutionContextPathComponent;
    252251
    253252        console.assert(!this._frameIdentifierToExecutionContextPathComponentMap[frame.id]);
Note: See TracChangeset for help on using the changeset viewer.