Web Inspector: Make Console's Execution Context picker stand out when it is non-default
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / QuickConsole.js
index 1ac669f64d477cd92f91dde3ac7080be87924eba..689fca5e53b75bc0df669f9618447026a16be288 100644 (file)
@@ -191,6 +191,8 @@ WI.QuickConsole = class QuickConsole extends WI.View
     _activeExecutionContextChanged(event)
     {
         this._rebuildExecutionContextPathComponents();
+
+        this._executionContextSelectorItem.element.classList.toggle("non-default-execution-context", this.selectedExecutionContext !== WI.mainTarget.executionContext);
     }
 
     _createExecutionContextPathComponent(executionContext, preferredName)