Skip to content
  • vsevik@chromium.org's avatar
    Web Inspector: Scripts for dynamically added script elements are not shown in sources panel. · 4489ddcf
    vsevik@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=99324
    
    Reviewed by Pavel Feldman.
    
    Source/WebCore:
    
    NetworkUISourceCodeProvider now adds uiSourceCodes for dynamic anonymous scripts
    and dynamic scripts loaded before inspector was opened.
    
    Tests: http/tests/inspector-enabled/dynamic-scripts.html
           inspector/debugger/dynamic-scripts.html
    
    * inspector/front-end/NetworkLog.js:
    (WebInspector.NetworkLog.prototype.requestForURL):
    * inspector/front-end/NetworkUISourceCodeProvider.js:
    (WebInspector.NetworkUISourceCodeProvider):
    (WebInspector.NetworkUISourceCodeProvider.prototype._parsedScriptSource):
    (WebInspector.NetworkUISourceCodeProvider.prototype._projectWillReset):
    
    LayoutTests:
    
    * http/tests/inspector-enabled/dynamic-scripts-expected.txt: Added.
    * http/tests/inspector-enabled/dynamic-scripts.html: Added.
    * http/tests/inspector-enabled/resources/dynamic-script.js: Added.
    (fooDynamicScript):
    * inspector/debugger/dynamic-scripts-expected.txt: Added.
    * inspector/debugger/dynamic-scripts.html: Added.
    * inspector/debugger/resources/dynamic-script.js: Added.
    (fooDynamicScript):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    4489ddcf