Closed
Bug 987890
Opened 12 years ago
Closed 12 years ago
Hide unhelpful tools from the add-on debugger
Categories
(DevTools :: Debugger, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 31
People
(Reporter: mossop, Assigned: jsantell)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
|
8.34 KB,
patch
|
jsantell
:
review+
|
Details | Diff | Splinter Review |
Some of the tools in the toolbox don't really work or work poorly for add-ons. We should probably hide those that are irrelevant.
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → jsantell
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #8398038 -
Flags: review?(jryans)
| Assignee | ||
Comment 3•12 years ago
|
||
Forgot to change the comment describing the test.
Attachment #8398038 -
Attachment is obsolete: true
Attachment #8398038 -
Flags: review?(jryans)
Attachment #8398042 -
Flags: review?(jryans)
Comment on attachment 8398038 [details] [diff] [review]
987890-disable-tools-in-addon-debugger.patch
Review of attachment 8398038 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good overall!
::: browser/devtools/debugger/test/browser_dbg_addon-panels.js
@@ +1,4 @@
> +/* Any copyright is dedicated to the Public Domain.
> + http://creativecommons.org/publicdomain/zero/1.0/ */
> +
> +// Ensure that the sources listed when debugging an addon are either from the
Nit: trailing space
@@ +50,5 @@
> +function testPanels(frame) {
> + let tabs = frame.contentDocument.getElementById("toolbox-tabs").children;
> + let expectedTabs = ["options", "jsdebugger"];
> +
> + is(tabs.length, 2, "displaying only 4 tabs in addon debugger");
4 -> 2
@@ +73,5 @@
> + gAddon = null;
> + gThreadClient = null;
> + gDebugger = null;
> + gSources = null;
> + while (gBrowser.tabs.length > 1)
Local style uses braces even for one-line blocks.
::: browser/devtools/framework/target.js
@@ +190,5 @@
> this._form = tab.form;
> this._client = tab.client;
> this._chrome = tab.chrome;
> +
> + if (this._form && this._form.addonActor)
Probably fine to just put this expression in the getter, rather than saving separate state here.
Attachment #8398038 -
Attachment is obsolete: false
Attachment #8398038 -
Attachment is obsolete: true
Comment on attachment 8398042 [details] [diff] [review]
987890-disable-tools-in-addon-debugger.patch
See comments on v1. :)
Attachment #8398042 -
Flags: review?(jryans) → review+
| Assignee | ||
Comment 6•12 years ago
|
||
Updated with nits fixed, awaiting try results: https://tbpl.mozilla.org/?tree=Try&rev=afbeaad6a641
Attachment #8398042 -
Attachment is obsolete: true
Attachment #8398051 -
Flags: review+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 7•12 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•