Closed Bug 857581 Opened 11 years ago Closed 11 years ago

The Components object is deprecated in dbg-script-actors.js

Categories

(DevTools :: Debugger, defect)

21 Branch
x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: freddy, Unassigned)

Details

When stepping through JS code with the Firefox debugger, I noticed this warning in the web console: The Components object is deprecated. It will soon be removed.

We should make sure that we don't use this in any other in-browser JS code, I suppose..

The affected file is chrome://global/content/devtools/dbg-script-actors.js line 1686.
This is a bogus warning in this case. The Components object will still be available to chrome code and if you look at the code in question, there is no access to Components in that line.

What is happening is that the debugger is accessing window.Components in order to display it in the variables view and that access triggers the warning, because it happens in the debuggee compartment.

If anyone has any ideas on how to silence the warning, please reopen.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.