Summary: | Web Inspector: Introduce file mapping allowing to map network loaded scripts and stylesheets to file system files. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Vsevolod Vlasov <vsevik> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Vsevolod Vlasov <vsevik> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | apavlov, keishi, loislo, pfeldman, pmuellr, vsevik, web-inspector-bugs, yurys | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Vsevolod Vlasov
2013-01-14 07:43:41 PST
Created attachment 182583 [details]
Patch
Comment on attachment 182583 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=182583&action=review > Source/WebCore/inspector/front-end/BreakpointManager.js:453 > + var url = WebInspector.fileMapping.urlForUISourceCode(this._primaryUILocation.uiSourceCode); I think I like it more the way it was before. I.e. if each UISourceCode has exactly one (or zero) URLs and that URL does not change during the UISourceCode lifetime, why not to store it internally? External mapping just adds indirection. Look at the way you bloat the code. Created attachment 182781 [details]
Patch
Comment on attachment 182781 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=182781&action=review > LayoutTests/inspector/file-mapping.html:40 > + InspectorTest.assertEquals(fileMapping.uriForURL("http://www.example.com"), "uri:/home/example.com", "fileMapping.uriForURL failed."); Please never use assertEquals, do InspectorTest.addResult(fileMapping.uriForURL("http://www.example.com")) instead; It greatly improves debuggability. Committed r139860: <http://trac.webkit.org/changeset/139860> |