Changeset 280989 in webkit


Ignore:
Timestamp:
Aug 12, 2021 3:50:45 PM (11 months ago)
Author:
Patrick Angle
Message:

Web Inspector: Adding execution contexts after page load doesn't show a hidden execution selector
https://bugs.webkit.org/show_bug.cgi?id=229053

Reviewed by Devin Rousso.

Add a handler for execution contexts being added to update the display of the execution context list, as when
there is only a single context at page load the dropdown will be hidden and thus needs to be shown when an
execution context is added after page load.

  • UserInterface/Views/QuickConsole.js:

(WI.QuickConsole):
(WI.QuickConsole.prototype._handleFrameExecutionContextAdded):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r280974 r280989  
     12021-08-12  Patrick Angle  <pangle@apple.com>
     2
     3        Web Inspector: Adding execution contexts after page load doesn't show a hidden execution selector
     4        https://bugs.webkit.org/show_bug.cgi?id=229053
     5
     6        Reviewed by Devin Rousso.
     7
     8        Add a handler for execution contexts being added to update the display of the execution context list, as when
     9        there is only a single context at page load the dropdown will be hidden and thus needs to be shown when an
     10        execution context is added after page load.
     11
     12        * UserInterface/Views/QuickConsole.js:
     13        (WI.QuickConsole):
     14        (WI.QuickConsole.prototype._handleFrameExecutionContextAdded):
     15
    1162021-08-12  Nikita Vasilyev  <nvasilyev@apple.com>
    217
  • trunk/Source/WebInspectorUI/UserInterface/Views/QuickConsole.js

    r269359 r280989  
    7070        WI.Frame.addEventListener(WI.Frame.Event.PageExecutionContextChanged, this._handleFramePageExecutionContextChanged, this);
    7171        WI.Frame.addEventListener(WI.Frame.Event.ExecutionContextsCleared, this._handleFrameExecutionContextsCleared, this);
     72        WI.Frame.addEventListener(WI.Frame.Event.ExecutionContextAdded, this._handleFrameExecutionContextAdded, this);
    7273
    7374        WI.debuggerManager.addEventListener(WI.DebuggerManager.Event.ActiveCallFrameDidChange, this._handleDebuggerActiveCallFrameDidChange, this);
     
    373374    }
    374375
     376    _handleFrameExecutionContextAdded(event)
     377    {
     378        this._updateActiveExecutionContextDisplay();
     379    }
     380
    375381    _handleFrameExecutionContextsCleared(event)
    376382    {
Note: See TracChangeset for help on using the changeset viewer.