Web Inspector: Incorrect check with WI.debuggableType
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Jan 2018 07:05:12 +0000 (07:05 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Jan 2018 07:05:12 +0000 (07:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=181515
<rdar://problem/36425509>

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2018-01-10
Reviewed by Brian Burg.

* UserInterface/Base/Main.js:
(WI.contentLoaded):
This moved to WI.sharedApp a while ago.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226763 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Base/Main.js

index 500f05e..f2bba2f 100644 (file)
@@ -1,3 +1,15 @@
+2018-01-10  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Incorrect check with WI.debuggableType
+        https://bugs.webkit.org/show_bug.cgi?id=181515
+        <rdar://problem/36425509>
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Base/Main.js:
+        (WI.contentLoaded):
+        This moved to WI.sharedApp a while ago.
+
 2018-01-10  Matt Baker  <mattbaker@apple.com>
 
         Web Inspector: Canvas tab: throttle recording slider updates
index 0b75ceb..20fa4a0 100644 (file)
@@ -373,7 +373,7 @@ WI.contentLoaded = function()
     this._togglePreviousDockConfigurationKeyboardShortcut = new WI.KeyboardShortcut(WI.KeyboardShortcut.Modifier.CommandOrControl | WI.KeyboardShortcut.Modifier.Shift, "D", this._togglePreviousDockConfiguration.bind(this));
 
     let reloadToolTip;
-    if (WI.debuggableType === WI.DebuggableType.JavaScript)
+    if (WI.sharedApp.debuggableType === WI.DebuggableType.JavaScript)
         reloadToolTip = WI.UIString("Restart (%s)").format(this._reloadPageKeyboardShortcut.displayName);
     else
         reloadToolTip = WI.UIString("Reload page (%s)\nReload page ignoring cache (%s)").format(this._reloadPageKeyboardShortcut.displayName, this._reloadPageFromOriginKeyboardShortcut.displayName);