Closed Bug 871066 Opened 11 years ago Closed 11 years ago

"Error: ReferenceError: CommandUtils is not defined" when opening devtools with Simulator 3.0 installed

Categories

(DevTools :: Framework, defect, P1)

x86
macOS
defect

Tracking

(firefox23+ fixed, firefox24 fixed)

RESOLVED FIXED
Firefox 24
Tracking Status
firefox23 + fixed
firefox24 --- fixed

People

(Reporter: harth, Assigned: jwalker)

References

Details

(Whiteboard: [b2g][fixed-in-fx-team][qa-])

Attachments

(1 file, 1 obsolete file)

STR:
Install Firefox OS Simulator 3.0 (https://addons.mozilla.org/en-US/firefox/addon/firefox-os-simulator/). Open the devtools window.

expected:
Devtools window opens with one of the tools selected.

actual: 
Devtools window opens with a blank panel, buttons are missing, and this error is in the console:

Error: ReferenceError: CommandUtils is not defined
Source File: resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/framework/toolbox.js
Line: 322
Priority: -- → P1
From bisecting, likely caused by bug 839862
Depends on: 839862
Joe, do you know what could be causing this? People with the Simulator installed are likely to be using the devtools, so I think it's a serious bug.


This only occurs when you launch the devtools from the browser, launching them from the Simulator itself seems to work fine.
Flags: needinfo?(jwalker)
I"m having trouble reproducing this. Can anyone get me a stack trace?
Flags: needinfo?(jwalker)
Ah, the first time you open the devtools, this error occurs:

Error: Error: Error: Redefining module: gcli/index
Source File: resource://gre/modules/devtools/Require.jsm
Line: 50

Then the CommandUtils error.
I think I've got a fix. It's a bit ugly though. Will post patch
Attached patch v1 (obsolete) — Splinter Review
Assignee: nobody → jwalker
Attachment #748881 - Flags: review?(fayearthur)
Comment on attachment 748881 [details] [diff] [review]
v1

I think I might be able to do this better with out all the renames. Working on it ...
Attachment #748881 - Flags: review?(fayearthur)
Attached patch v2Splinter Review
Much simpler fix, and wfm.
Attachment #748881 - Attachment is obsolete: true
Attachment #748888 - Flags: review?(fayearthur)
Comment on attachment 748888 [details] [diff] [review]
v2

Cheers, this fixes it for me.
Attachment #748888 - Flags: review?(fayearthur) → review+
This just missed the Aurora uplift, so it will have to be uplifted manually.
Status: NEW → ASSIGNED
Whiteboard: [fixed-in-fx-team] → [b2g][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/3e3eacd702db
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
Comment on attachment 748888 [details] [diff] [review]
v2

[Approval Request Comment]
Bug caused by (feature/regressing bug #): Bug 839862
User impact if declined: Developer Tools is broken with Simulator 3.0 installed
Testing completed (on m-c, etc.): Baked on m-c for over a week
Risk to taking this patch (and alternatives if risky): 
String or IDL/UUID changes made by this patch: None.
Attachment #748888 - Flags: approval-mozilla-aurora?
Attachment #748888 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Keywords: verifyme
I can't reproduce the initial issue on a 2013-05-10 Nightly on Mac OS X 10.8.
These are the steps that I use:
1. Launch Firefox.
2. Install Firefox OS Simulator 3.0 add-on.
3. Open the Developer tools window (Tools Menu-> Web Developer -> Toggle Tools).

Does anyone have any idea? Am I missing something?
Flags: needinfo?
This is a clash-of-versions problem. I don't think it's worth the effort to repro the original problem, personally.
Flags: needinfo?
Based on Comment 18, I'm removing the verifyme keyword.
Keywords: verifyme
Whiteboard: [b2g][fixed-in-fx-team] → [b2g][fixed-in-fx-team][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: