Changeset 258818 in webkit


Ignore:
Timestamp:
Mar 22, 2020 12:42:18 AM (4 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Uncaught Exception: Right side of assignment cannot be destructured (at QuickConsole.js:358:30)
https://bugs.webkit.org/show_bug.cgi?id=209388

Reviewed by Joseph Pecoraro.

  • UserInterface/Views/QuickConsole.js:

(WI.QuickConsole.prototype._handleFramePageExecutionContextChanged):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r258809 r258818  
     12020-03-22  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Uncaught Exception: Right side of assignment cannot be destructured (at QuickConsole.js:358:30)
     4        https://bugs.webkit.org/show_bug.cgi?id=209388
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        * UserInterface/Views/QuickConsole.js:
     9        (WI.QuickConsole.prototype._handleFramePageExecutionContextChanged):
     10
    1112020-03-21  Devin Rousso  <drousso@apple.com>
    212
  • trunk/Source/WebInspectorUI/UserInterface/Views/QuickConsole.js

    r257873 r258818  
    351351    _handleFramePageExecutionContextChanged(event)
    352352    {
    353         if (this._restoreSelectedExecutionContextForFrame !== event.target)
     353        let frame = event.target;
     354
     355        if (this._restoreSelectedExecutionContextForFrame !== frame)
    354356            return;
    355357
    356358        this._restoreSelectedExecutionContextForFrame = null;
    357359
    358         let {context} = event.data;
    359 
    360360        this._useExecutionContextOfInspectedNode = false;
    361         this._setActiveExecutionContext(context);
     361        this._setActiveExecutionContext(frame.pageExecutionContext);
    362362    }
    363363
Note: See TracChangeset for help on using the changeset viewer.