Closed Bug 822609 Opened 12 years ago Closed 12 years ago

developer tools should not use target.isChrome [toolbox]

Categories

(DevTools :: Framework, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 20

People

(Reporter: jwalker, Assigned: jwalker)

Details

(Whiteboard: [fixed-in-fxteam])

Attachments

(1 file, 1 obsolete file)

      No description provided.
target.isChrome is always false, so it's easy to remove.
Attached patch v1 (obsolete) — Splinter Review
This is a quick 'before I forget'
Assignee: nobody → jwalker
Status: NEW → ASSIGNED
Attachment #693319 - Flags: review?(paul)
Comment on attachment 693319 [details] [diff] [review]
v1

In these 2 cases, what we want to use is `this._target.isLocalTab`. Also, while you're at it, in `_getHostTab`, if it's not a tab target, we should not return the selected tab, but throw an exception (this should never happen. window and remote tab can't have HostTab).
Attachment #693319 - Flags: review?(paul) → review-
I know we have batted this around a lot, but I'm not sure that isLocalTab is right yet. Is the question that we want to ask really - "Is this something that a typical web user might want to debug?"
Isn't this is a concept that we're missing from remote connections?

I'm not going to fix it here, but maybe we need isSystem or similar to reflect the concept of 'not for typical users'.
Attached patch v2Splinter Review
So I went further and removed _getHostTab. Also I added the profiler to the list of things that needed updating.
Attachment #693319 - Attachment is obsolete: true
Attachment #693851 - Flags: review?(paul)
Attachment #693851 - Flags: review?(paul) → review+
Component: Developer Tools → Developer Tools: Framework
Whiteboard: [fixed-in-fxteam]
https://hg.mozilla.org/mozilla-central/rev/2767d63a3b15
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: