Changeset 237327 in webkit


Ignore:
Timestamp:
Oct 22, 2018 12:24:04 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Open Quickly dialog doesn't show named scripts that appear in the debugger sidebar
https://bugs.webkit.org/show_bug.cgi?id=190649

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2018-10-22
Reviewed by Devin Rousso.

  • UserInterface/Views/OpenResourceDialog.js:

(WI.OpenResourceDialog.prototype.didPresentDialog):
(WI.OpenResourceDialog.prototype._addResourcesForTarget):
(WI.OpenResourceDialog.prototype._addScriptsForTarget):
Include non-resource named scripts from the main target in
the open quickly dialog.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r237295 r237327  
     12018-10-22  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Open Quickly dialog doesn't show named scripts that appear in the debugger sidebar
     4        https://bugs.webkit.org/show_bug.cgi?id=190649
     5
     6        Reviewed by Devin Rousso.
     7
     8        * UserInterface/Views/OpenResourceDialog.js:
     9        (WI.OpenResourceDialog.prototype.didPresentDialog):
     10        (WI.OpenResourceDialog.prototype._addResourcesForTarget):
     11        (WI.OpenResourceDialog.prototype._addScriptsForTarget):
     12        Include non-resource named scripts from the main target in
     13        the open quickly dialog.
     14
    1152018-10-19  Joseph Pecoraro  <pecoraro@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Views/OpenResourceDialog.js

    r237212 r237327  
    148148            this._addResourcesForFrame(WI.networkManager.mainFrame);
    149149
     150        this._addScriptsForTarget(WI.mainTarget);
     151
    150152        for (let target of WI.targets) {
    151153            if (target !== WI.mainTarget)
     
    313315            this._addResource(resource, suppressFilterUpdate);
    314316
     317        this._addScriptsForTarget(target);
     318    }
     319
     320    _addScriptsForTarget(target)
     321    {
     322        const suppressFilterUpdate = true;
     323
    315324        let targetData = WI.debuggerManager.dataForTarget(target);
    316325        for (let script of targetData.scripts) {
    317326            if (script.resource)
    318327                continue;
    319             if (isWebKitInternalScript(script.sourceURL) || isWebInspectorConsoleEvaluationScript(script.sourceURL))
     328            if (script.dynamicallyAddedScriptElement)
     329                continue;
     330            if (!script.sourceURL || isWebKitInternalScript(script.sourceURL) || isWebInspectorConsoleEvaluationScript(script.sourceURL))
    320331                continue;
    321332            this._addResource(script, suppressFilterUpdate);
Note: See TracChangeset for help on using the changeset viewer.