Bug 72388

Summary: Web Inspector: [Extensions API] drop ExtensionSidebarPane.onUpdated, use callbacks instead
Product: WebKit Reporter: Andrey Kosyakov <caseq>
Component: Web Inspector (Deprecated)Assignee: Andrey Kosyakov <caseq>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch pfeldman: review+

Andrey Kosyakov
Reported 2011-11-15 08:02:29 PST
- fire ExtensionSidebarPane.on{Hidden,Shown} for non-iframe content (experssions/objects); - drop ExtensionsSidebarPane.onUpdated, provide callback for setObject()/setExpression() instead; - split LayoutTests/inspector/extensions.html into extensions-panel.html & extensions-sidebar.html.
Attachments
Patch (29.28 KB, patch)
2011-11-15 08:06 PST, Andrey Kosyakov
pfeldman: review+
Andrey Kosyakov
Comment 1 2011-11-15 08:06:28 PST
Pavel Feldman
Comment 2 2011-11-16 00:18:21 PST
Comment on attachment 115167 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=115167&action=review > Source/WebCore/inspector/front-end/ExtensionPanel.js:84 > +WebInspector.ExtensionNotifierView = function(id) You should probably make this a superclass of the ExtensionView. > Source/WebCore/inspector/front-end/ExtensionPanel.js:183 > + setObject: function(object, title, callback) Drive-by: you should start annotating your code. > Source/WebCore/inspector/front-end/ExtensionPanel.js:215 > + _makeObjectPropertiesView: function() _createObjectPropertiesView > Source/WebCore/inspector/front-end/ExtensionPanel.js:231 > + callback("operation cancelled"); What does "operation cancelled" mean for the client? Annotating this callback would give me a clue. > Source/WebCore/inspector/front-end/ExtensionServer.js:234 > + var result = error ? this._status.E_FAILED(error) : this._status.OK(); aha. so non-empty is error string. > Source/WebCore/inspector/front-end/View.js:173 > + detach: function(force) force -> overrideHideOnDetach
Andrey Kosyakov
Comment 3 2011-11-16 04:56:46 PST
Andrey Kosyakov
Comment 4 2011-11-16 05:03:35 PST
(In reply to comment #2) > > Source/WebCore/inspector/front-end/ExtensionPanel.js:84 > > +WebInspector.ExtensionNotifierView = function(id) > > You should probably make this a superclass of the ExtensionView. I've started with doing exactly this, then realized they won't even share a single method implementation due to checks for _frameIndex being present in willHide()/willShow(). > > Source/WebCore/inspector/front-end/ExtensionPanel.js:183 > > + setObject: function(object, title, callback) > > Drive-by: you should start annotating your code. Done for entire ExtensionsPanel.js > > Source/WebCore/inspector/front-end/ExtensionPanel.js:215 > > + _makeObjectPropertiesView: function() > > _createObjectPropertiesView Done. > > Source/WebCore/inspector/front-end/ExtensionPanel.js:231 > > + callback("operation cancelled"); > > What does "operation cancelled" mean for the client? Annotating this callback would give me a clue. Unfortunately it won't -- we can't specify parameter names in type annotation of callbacks. > > Source/WebCore/inspector/front-end/View.js:173 > > + detach: function(force) > > force -> overrideHideOnDetach Done.
Note You need to log in before you can comment on or make changes to this bug.