Changeset 237327 in webkit
- Timestamp:
- Oct 22, 2018, 12:24:04 PM (6 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r237295 r237327 1 2018-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 1 15 2018-10-19 Joseph Pecoraro <pecoraro@apple.com> 2 16 -
trunk/Source/WebInspectorUI/UserInterface/Views/OpenResourceDialog.js
r237212 r237327 148 148 this._addResourcesForFrame(WI.networkManager.mainFrame); 149 149 150 this._addScriptsForTarget(WI.mainTarget); 151 150 152 for (let target of WI.targets) { 151 153 if (target !== WI.mainTarget) … … 313 315 this._addResource(resource, suppressFilterUpdate); 314 316 317 this._addScriptsForTarget(target); 318 } 319 320 _addScriptsForTarget(target) 321 { 322 const suppressFilterUpdate = true; 323 315 324 let targetData = WI.debuggerManager.dataForTarget(target); 316 325 for (let script of targetData.scripts) { 317 326 if (script.resource) 318 327 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)) 320 331 continue; 321 332 this._addResource(script, suppressFilterUpdate);
Note:
See TracChangeset
for help on using the changeset viewer.