Web Inspector: Extension scripts with parse errors do not show up in Web Inspector
authorpecoraro@apple.com <pecoraro@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 19:59:24 +0000 (19:59 +0000)
committerpecoraro@apple.com <pecoraro@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 19:59:24 +0000 (19:59 +0000)
commit3e1e1b86e5bf58369ee621434d2e7155dd66f012
tree241056956e8da4b50075395938e7111e7dce6f98
parent1cd672a99a800781c1bc590f2d089f19990bf5a7
Web Inspector: Extension scripts with parse errors do not show up in Web Inspector
https://bugs.webkit.org/show_bug.cgi?id=196996
<rdar://problem/47054804>

Reviewed by Devin Rousso.

* UserInterface/Controllers/DebuggerManager.js:
(WI.DebuggerManager.prototype.scriptDidFail):
Create a LocalScript that can be linked to but ignore it
if we already have a Resource for the URL.

* UserInterface/Protocol/DebuggerObserver.js:
(WI.DebuggerObserver.prototype.scriptFailedToParse):
Let DebuggerManager potentially create a script for this.

* UserInterface/Models/Script.js:
(WI.Script):
Local scripts provide a null id and id is not required below.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Controllers/DebuggerManager.js
Source/WebInspectorUI/UserInterface/Models/Script.js
Source/WebInspectorUI/UserInterface/Protocol/DebuggerObserver.js