Closed Bug 987890 Opened 12 years ago Closed 12 years ago

Hide unhelpful tools from the add-on debugger

Categories

(DevTools :: Debugger, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: mossop, Assigned: jsantell)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

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: nobody → jsantell
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
Comment on attachment 8398042 [details] [diff] [review] 987890-disable-tools-in-addon-debugger.patch See comments on v1. :)
Attachment #8398042 - Flags: review?(jryans) → review+
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+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
QA Whiteboard: [qa-]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: