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/inspector/debugger/ui-source-code.html

    r93969 r103541  
    1818        function testUISourceCode(next)
    1919        {
    20             var uiSourceCode = new WebInspector.UISourceCode("id", "url", false, null, contentProvider);
     20            var uiSourceCode = new WebInspector.UISourceCode("id", "url", null, contentProvider);
    2121            function didRequestContent(callNumber, mimeType, content)
    2222            {
Note: See TracChangeset for help on using the changeset viewer.