Bug 105856 - Web Inspector: Workspace should support several projects and should not have temporary UISourceCodes.
Summary: Web Inspector: Workspace should support several projects and should not have ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Vsevolod Vlasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-29 03:51 PST by Vsevolod Vlasov
Modified: 2013-01-11 09:32 PST (History)
12 users (show)

See Also:


Attachments
Patch (81.91 KB, patch)
2012-12-29 04:14 PST, Vsevolod Vlasov
no flags Details | Formatted Diff | Diff
Patch (86.87 KB, patch)
2013-01-09 06:05 PST, Vsevolod Vlasov
no flags Details | Formatted Diff | Diff
Patch (90.36 KB, patch)
2013-01-11 02:22 PST, Vsevolod Vlasov
pfeldman: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Patch for landing (105.88 KB, patch)
2013-01-11 08:25 PST, Vsevolod Vlasov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vsevolod Vlasov 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.
Comment 1 Vsevolod Vlasov 2012-12-29 04:14:39 PST
Created attachment 180933 [details]
Patch
Comment 2 Pavel Feldman 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.
Comment 3 Pavel Feldman 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.
Comment 4 Vsevolod Vlasov 2013-01-09 06:05:11 PST
Created attachment 181905 [details]
Patch
Comment 5 Build Bot 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
Comment 6 Vsevolod Vlasov 2013-01-11 02:22:03 PST
Created attachment 182302 [details]
Patch
Comment 7 Build Bot 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
Comment 8 WebKit Review Bot 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
Comment 9 Pavel Feldman 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.
Comment 10 WebKit Review Bot 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
Comment 11 Vsevolod Vlasov 2013-01-11 08:25:44 PST
Created attachment 182346 [details]
Patch for landing
Comment 12 Vsevolod Vlasov 2013-01-11 09:32:38 PST
Committed r139454: <http://trac.webkit.org/changeset/139454>