RESOLVED FIXED 72899
Web Inspector: [Extensions API][refactoring] remove dependencies on the ExtensionsServer from most of the insepctor
https://bugs.webkit.org/show_bug.cgi?id=72899
Summary Web Inspector: [Extensions API][refactoring] remove dependencies on the Exten...
Andrey Kosyakov
Reported 2011-11-21 10:51:33 PST
This removed all inspector notification methods in favor of using events.
Attachments
Patch (7.12 KB, patch)
2011-11-21 10:53 PST, Andrey Kosyakov
no flags
Patch (30.71 KB, patch)
2011-11-22 04:32 PST, Andrey Kosyakov
pfeldman: review+
Andrey Kosyakov
Comment 1 2011-11-21 10:53:50 PST
WebKit Review Bot
Comment 2 2011-11-21 11:49:12 PST
Comment on attachment 116107 [details] Patch Attachment 116107 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/10393435 New failing tests: inspector/extensions/extensions-events.html
Pavel Feldman
Comment 3 2011-11-22 00:59:25 PST
Comment on attachment 116107 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=116107&action=review > Source/WebCore/inspector/front-end/ExtensionServer.js:526 > + this._registerAutosubscriptionHandler("panel-objectSelected-elements", Could you introduce the constants for these? > Source/WebCore/inspector/front-end/Resource.js:865 > + WebInspector.Resource.notifications.dispatchEventToListeners(WebInspector.Resource.Events.ResourceContentCommitted, { resource: this, content: newContent }); Could you please dispatch this event on the resource tree model instead?
Andrey Kosyakov
Comment 4 2011-11-22 04:32:52 PST
Andrey Kosyakov
Comment 5 2011-11-22 04:33:59 PST
- use constants for command and event names - dispatch ResourceContentCommitted on WebInspector.resourceTreeModel, not on WebInspector.Resource.notifications()
Pavel Feldman
Comment 6 2011-11-22 05:03:02 PST
Comment on attachment 116204 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=116204&action=review > Source/WebCore/inspector/front-end/Resource.js:255 > + ResourceContentCommitted: "resource-content-committed" You should move this to the tree model event list.
Andrey Kosyakov
Comment 7 2011-11-22 05:41:21 PST
Note You need to log in before you can comment on or make changes to this bug.