Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1464)

Unified Diff: third_party/WebKit/WebCore/inspector/front-end/Console.js

Issue 13705: Do not access WebInspector.panels.scripts panel while it's disabled in Chrome... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/inspector/front-end/Console.js
===================================================================
--- third_party/WebKit/WebCore/inspector/front-end/Console.js (revision 6697)
+++ third_party/WebKit/WebCore/inspector/front-end/Console.js (working copy)
@@ -267,7 +267,7 @@
} else {
// There is no expressionString, so the completion should happen against global properties.
// Or if the debugger is paused, against properties in scope of the selected call frame.
- if (WebInspector.panels.scripts.paused)
+ if (WebInspector.panels.scripts && WebInspector.panels.scripts.paused)
result = WebInspector.panels.scripts.variablesInScopeForSelectedCallFrame();
else
result = InspectorController.inspectedWindow();
@@ -394,9 +394,8 @@
_evalInInspectedWindow: function(expression)
{
- if (WebInspector.panels.scripts.paused)
+ if (WebInspector.panels.scripts && WebInspector.panels.scripts.paused)
return WebInspector.panels.scripts.evaluateInSelectedCallFrame(expression);
-
var inspectedWindow = InspectorController.inspectedWindow();
if (!inspectedWindow._inspectorCommandLineAPI) {
inspectedWindow.eval("window._inspectorCommandLineAPI = { \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698