Closed
Bug 1055571
Opened 10 years ago
Closed 10 years ago
New API: ToolSidebar.removeTab
Categories
(DevTools :: Framework, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 35
People
(Reporter: Honza, Assigned: Honza)
Details
Attachments
(1 file, 1 obsolete file)
4.59 KB,
patch
|
bgrins
:
review+
|
Details | Diff | Splinter Review |
It is already possible to utilize ToolSidebar object and create side bars in new or existing Toolbox panels. It's also possible to create new side-panels, but there is now API to remove them. The implementation should happen in: browser/devtools/framework/sidebar.js Honza
Assignee | ||
Comment 1•10 years ago
|
||
Suggested patch, couple of comments: 1) New removeTab method implemented 2) Use event.target to get win+doc from the loaded iframe. iframe.contentDocument isn't set if the iframe is being loaded in hidden <tabbox> (could be related to bug 1056033) Joe, I saw you did the original implementation of the code, so asking for review. Honza
Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8475878 [details] [diff] [review] bug1055571-1.patch Ah, forgot to set the flag... Honza
Attachment #8475878 -
Flags: review?(jwalker)
Comment 3•10 years ago
|
||
Comment on attachment 8475878 [details] [diff] [review] bug1055571-1.patch Review of attachment 8475878 [details] [diff] [review]: ----------------------------------------------------------------- Sorry Honza - I'm going to have to dodge this, I'm afraid
Attachment #8475878 -
Flags: review?(jwalker) → review?(bgrinstead)
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Joe Walker [:jwalker] (overloaded - needinfo me or ping on irc) from comment #3) > Sorry Honza - I'm going to have to dodge this, I'm afraid Ok, not a problem. Btw. any chance you have more info about the hack (a time out) here: https://github.com/mozilla/gecko-dev/blob/master/browser/devtools/framework/sidebar.js#L104 Honza
Updated•10 years ago
|
Assignee: nobody → odvarko
Status: NEW → ASSIGNED
Comment 5•10 years ago
|
||
Comment on attachment 8475878 [details] [diff] [review] bug1055571-1.patch Review of attachment 8475878 [details] [diff] [review]: ----------------------------------------------------------------- Changes look good overally - can you add a case in devtools/framework/test/browser_toolbox_sidebar.js to cover this new API? ::: browser/devtools/framework/sidebar.js @@ +114,5 @@ > }, > > + removeTab: function(id) { > + let tab = this._tabbox.tabs.querySelector("tab#sidebar-tab-" + id); > + if (!tab) Please use brackets around if statements @@ +119,5 @@ > + return; > + > + tab.remove(); > + > + let panel = this._tabbox.tabpanels.querySelector( You could call `let panel = this.getTab(id)`
Attachment #8475878 -
Flags: review?(bgrinstead)
Assignee | ||
Comment 6•10 years ago
|
||
Thanks for the review Brian. Here is updated patch. Honza
Attachment #8475878 -
Attachment is obsolete: true
Attachment #8484907 -
Flags: review?(bgrinstead)
Comment 7•10 years ago
|
||
Comment on attachment 8484907 [details] [diff] [review] bug1055571-2.patch Review of attachment 8484907 [details] [diff] [review]: ----------------------------------------------------------------- Looks good - pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=3725d452ce18
Attachment #8484907 -
Flags: review?(bgrinstead) → review+
Updated•10 years ago
|
Keywords: checkin-needed
Comment 8•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/2600340abfbe
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 9•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2600340abfbe
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 35
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•