Timestamp:
Dec 22, 2011, 7:19:40 AM (14 years ago)
Author:
[email protected]
Message:

Web Inspector: add "install source map" to JS source frame context menu.
https://bugs.webkit.org/show_bug.cgi?id=74181

Reviewed by Pavel Feldman.

Source/WebCore:

Add "install source map" to source frame context menu when source map url is auto detected.

  • English.lproj/localizedStrings.js:
  • inspector/front-end/CompilerSourceMapping.js:

(WebInspector.ClosureCompilerSourceMapping.prototype.load):
(WebInspector.ClosureCompilerSourceMapping.prototype._parseSections):

  • inspector/front-end/DebuggerPresentationModel.js:

(WebInspector.DebuggerPresentationModel.prototype.installCompilerSourceMapping):

  • inspector/front-end/JavaScriptSourceFrame.js:

(WebInspector.JavaScriptSourceFrame.prototype.populateTextAreaContextMenu):
(WebInspector.JavaScriptSourceFrame.prototype.cancelEditing):

  • inspector/front-end/RawSourceCode.js:

(WebInspector.RawSourceCode.prototype._createSourceMapping.didRequestContent.didFormatContent):
(WebInspector.RawSourceCode.prototype._createSourceMapping.didRequestContent):
(WebInspector.RawSourceCode.prototype._createSourceMapping):
(WebInspector.RawSourceCode.prototype._createUISourceCode):

  • inspector/front-end/UISourceCode.js:

(WebInspector.UISourceCode):

LayoutTests:

  • http/tests/inspector/compiler-source-mapping-debug.html:
  • http/tests/inspector/compiler-source-mapping.html:
  • inspector/debugger/scripts-panel.html:
  • inspector/debugger/scripts-sorting.html:
  • inspector/debugger/ui-source-code.html:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/http/tests/inspector/compiler-source-mapping-debug.html

    r101128 r103541  
    1414function test()
    1515{
    16 
    1716    InspectorTest.runDebuggerTestSuite([
    1817        function testSetBreakpoint(next)
     
    2322            {
    2423                InspectorTest.addResult("Script source was shown.");
    25                 sourceFrame._model.setCompilerSourceMapping(sourceFrame._uiSourceCode, "http://localhost:8000/inspector/resources/source-map.json");
     24                sourceFrame._uiSourceCode.sourceMapURL = "http://localhost:8000/inspector/resources/source-map.json";
     25                sourceFrame._model.installCompilerSourceMapping(sourceFrame._uiSourceCode);
    2626                InspectorTest.showScriptSource("source1.js", didShowSource1);
    27 
    2827            }
    2928
Note: See TracChangeset for help on using the changeset viewer.