RESOLVED FIXED Bug 65551
Web Inspector: use source-file-replaced instead of source-file-changed event.
https://bugs.webkit.org/show_bug.cgi?id=65551
Summary Web Inspector: use source-file-replaced instead of source-file-changed event.
Pavel Podivilov
Reported 2011-08-02 11:04:33 PDT
Web Inspector: use source-file-replaced instead of source-file-changed event. This is needed to support 1 -> n transitions when installing source mappings.
Attachments
Patch (14.98 KB, patch)
2011-08-02 11:08 PDT, Pavel Podivilov
no flags
Patch (31.82 KB, patch)
2011-08-04 08:54 PDT, Pavel Podivilov
pfeldman: review+
Pavel Podivilov
Comment 1 2011-08-02 11:08:46 PDT
Pavel Feldman
Comment 2 2011-08-04 02:47:00 PDT
Comment on attachment 102667 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=102667&action=review > Source/WebCore/inspector/front-end/ScriptsPanel.js:651 > + this._sourceFileIdToFilesSelectOption[newSourceFile.id]; this._sourceFileIdToFilesSelectOption[newSourceFile.id] = option; Test? > Source/WebCore/inspector/front-end/ScriptsPanel.js:662 > + var newSourceFrame = this._createSourceFrame(newSourceFile.id); You should keep mapping bind/unbind close in the same location. > Source/WebCore/inspector/front-end/SourceFile.js:63 > + this._resource = WebInspector.networkManager.inflightResourceForURL(script.sourceURL) || WebInspector.resourceForURL(script.sourceURL); Do we have a test that would track resource / script bindings?
Pavel Podivilov
Comment 3 2011-08-04 08:54:46 PDT
Pavel Podivilov
Comment 4 2011-08-04 08:56:51 PDT
(In reply to comment #2) > (From update of attachment 102667 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=102667&action=review > > > Source/WebCore/inspector/front-end/ScriptsPanel.js:651 > > + this._sourceFileIdToFilesSelectOption[newSourceFile.id]; > > this._sourceFileIdToFilesSelectOption[newSourceFile.id] = option; > > Test? Added test to scripts-panel.html. > > > Source/WebCore/inspector/front-end/ScriptsPanel.js:662 > > + var newSourceFrame = this._createSourceFrame(newSourceFile.id); > > You should keep mapping bind/unbind close in the same location. Done. > > > Source/WebCore/inspector/front-end/SourceFile.js:63 > > + this._resource = WebInspector.networkManager.inflightResourceForURL(script.sourceURL) || WebInspector.resourceForURL(script.sourceURL); > > Do we have a test that would track resource / script bindings? There are test that dump source frame content, they will definitely failed if script -> resource binding is broken. I'm going to add some more dedicated tests while switching to RawSourceCode<->UISourceCode model.
Pavel Podivilov
Comment 5 2011-08-11 05:21:22 PDT
Note You need to log in before you can comment on or make changes to this bug.