Web Inspector: Uncaught Exception: null is not an object (evaluating 'this.ownerDocum...
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / QuickConsole.js
index f3a55e7..5187b30 100644 (file)
@@ -145,11 +145,10 @@ WI.QuickConsole = class QuickConsole extends WI.View
 
         let inspectedNode = WI.domManager.inspectedNode;
         if (inspectedNode) {
-            let frame = inspectedNode.ownerDocument.frame;
+            let frame = inspectedNode.frame;
             if (frame) {
                 if (this._shouldAutomaticallySelectExecutionContext)
                     executionContext = frame.pageExecutionContext;
-
                 preferredName = this._preferredNameForFrame(frame);
             }
         }