Web Inspector: save and restore source positions in back/forward history
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Main.js
index 6a0bbe8cdfb493766a8bd7dc9c83e5b7151f8d07..7e7ef623b2c4a9cb5b45292f8f8c985eb6ebc163 100644 (file)
@@ -511,7 +511,8 @@ WebInspector.openURL = function(url, frame, alwaysOpenExternally, lineNumber)
     // WebInspector.Frame.resourceForURL does not check the main resource, only sub-resources. So check both.
     var resource = frame.url === url ? frame.mainResource : frame.resourceForURL(url, searchChildFrames);
     if (resource) {
-        this.resourceSidebarPanel.showSourceCode(resource, lineNumber);
+        var position = new WebInspector.SourceCodePosition(lineNumber, 0);
+        this.resourceSidebarPanel.showSourceCode(resource, position);
         return;
     }