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

RESOLVED INVALID

Status

()

Firefox
Developer Tools: Debugger
RESOLVED INVALID
5 years ago
5 years ago

People

(Reporter: freddyb, Unassigned)

Tracking

21 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

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
Last Resolved: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.