Bug 105856

Summary: Web Inspector: Workspace should support several projects and should not have temporary UISourceCodes.
Product: WebKit Reporter: Vsevolod Vlasov <vsevik>
Component: Web Inspector (Deprecated)Assignee: Vsevolod Vlasov <vsevik>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, buildbot, dglazkov, keishi, loislo, pfeldman, pmuellr, rniwa, vsevik, web-inspector-bugs, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
pfeldman: review+, buildbot: commit-queue-
Patch for landing none

Vsevolod Vlasov
Reported 2012-12-29 03:51:38 PST
Workspace now supports several projects with the networkProject being a main one. Replaced temporary UISourceCodes with specific projects (debugger and liveedit). The concept of workspace reset on navigation is now replaced with project reset concept instead. Introduced snippets project (that is not reset on navigation). Script mappings are now reset on GlobalObjectCleared event.
Attachments
Patch (81.91 KB, patch)
2012-12-29 04:14 PST, Vsevolod Vlasov
no flags
Patch (86.87 KB, patch)
2013-01-09 06:05 PST, Vsevolod Vlasov
no flags
Patch (90.36 KB, patch)
2013-01-11 02:22 PST, Vsevolod Vlasov
pfeldman: review+
buildbot: commit-queue-
Patch for landing (105.88 KB, patch)
2013-01-11 08:25 PST, Vsevolod Vlasov
no flags
Vsevolod Vlasov
Comment 1 2012-12-29 04:14:39 PST
Pavel Feldman
Comment 2 2012-12-29 04:34:26 PST
Comment on attachment 180933 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180933&action=review > Source/WebCore/inspector/front-end/BreakpointManager.js:239 > + this._breakpoints.remove(breakpoint); This might be a bit more expensive than maintaining buckets for breakpoints.
Pavel Feldman
Comment 3 2012-12-29 04:36:42 PST
Comment on attachment 180933 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180933&action=review > Source/WebCore/inspector/front-end/Workspace.js:45 > + WebInspector.cssModel.resetSourceMappings(); This does not sound right - controller should not depend on providers. > Source/WebCore/inspector/front-end/inspector.js:434 > + this.networkWorkspaceProvider = new WebInspector.NetworkWorkspaceProvider(); Move this somewhere.
Vsevolod Vlasov
Comment 4 2013-01-09 06:05:11 PST
Build Bot
Comment 5 2013-01-09 09:01:45 PST
Comment on attachment 181905 [details] Patch Attachment 181905 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/15755629 New failing tests: inspector/debugger/watch-expressions-preserve-expansion.html
Vsevolod Vlasov
Comment 6 2013-01-11 02:22:03 PST
Build Bot
Comment 7 2013-01-11 03:04:17 PST
Comment on attachment 182302 [details] Patch Attachment 182302 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/15812184 New failing tests: inspector/debugger/watch-expressions-preserve-expansion.html
WebKit Review Bot
Comment 8 2013-01-11 03:23:40 PST
Comment on attachment 182302 [details] Patch Attachment 182302 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/15811243 New failing tests: inspector/debugger/live-edit-breakpoints.html
Pavel Feldman
Comment 9 2013-01-11 03:41:18 PST
Comment on attachment 182302 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=182302&action=review > Source/WebCore/inspector/front-end/BreakpointManager.js:230 > + var project = event.data; Cast annotation? > Source/WebCore/inspector/front-end/CSSStyleModel.js:485 > + _inspectedURLChanged: function(event) This little refactoring looks like a separate change. > Source/WebCore/inspector/front-end/FilteredItemSelectionDialog.js:622 > + if (projectName === WebInspector.projectNames.Debugger || projectName === WebInspector.projectNames.LiveEdit) project.isServiceProject() > Source/WebCore/inspector/front-end/LiveEditSupport.js:157 > + this.addFile(uniqueURI, url, contentProvider, isEditable); I would do that in the call site.
WebKit Review Bot
Comment 10 2013-01-11 03:59:52 PST
Comment on attachment 182302 [details] Patch Attachment 182302 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/15802371 New failing tests: inspector/debugger/live-edit-breakpoints.html
Vsevolod Vlasov
Comment 11 2013-01-11 08:25:44 PST
Created attachment 182346 [details] Patch for landing
Vsevolod Vlasov
Comment 12 2013-01-11 09:32:38 PST
Note You need to log in before you can comment on or make changes to this bug.