Closed Bug 1311302 Opened 8 years ago Closed 6 years ago

"Use of nsIFile in content process is deprecated." in filesystem.js

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, defect, P2)

52 Branch
defect

Tracking

(firefox52 wontfix)

RESOLVED FIXED
Tracking Status
firefox52 --- wontfix

People

(Reporter: sebo, Unassigned)

References

Details

(Keywords: good-first-bug, Whiteboard: [lang=js])

+++ This bug was initially created as a clone of Bug #1287993 +++

When the DevTools are opened the following error message is logged to the Browser Console:

Use of nsIFile in content process is deprecated.  filesystem.js:40:9

Tested in Nightly 52.0a1 (2016-10-18).

Sebastian
Version: unspecified → 52 Branch
Seems like a GCLI bug, since that's the thing that owns filesystem.js.
Component: DOM: Content Processes → Developer Tools: Graphic Commandline and Toolbar
Product: Core → Firefox
Seems like a good first bug for the adventurous.
Keywords: good-first-bug
Priority: -- → P2
Whiteboard: [lang=js]
I could imagine that it's used by the 'inject' command to inject scripts from the local file system, or maybe by the 'folder' command to open a folder.

But that's just a gut feeling, I didn't have a look at the code at all.

Sebastian
Hi, I took a shot at it and tried to rip the mentioned files out.  I got failing tests for the screenshot command, and it seems like it uses the file type:
https://dxr.mozilla.org/mozilla-central/source/devtools/shared/gcli/commands/screenshot.js#45
Mass wontfix for bugs affecting firefox 52.
I don't get this in 52.3 (linux esr) or nightly.
I still see this error with Nightly 57.0a1 (2017-08-23). It's shown when the Inspector is opened and also when opening the Developer Toolbar (Shift+F2).

Christopher, note that the error is only shown in the Browser Console (Ctrl+Shift+J)[1], *not* in the Web Console within the DevTools.

Sebastian

[1] https://developer.mozilla.org/en-US/docs/Tools/Browser_Console
Oh, Developer Toolbar means GCLI? That's not very clear terminology... Anyway, yes, I see this with GCLI. I'll take a look at this.
I removed the line Michael Brennan recommended, and now the console shows "Error: Unknown type" from `Console.jsm` /and still/ gives the original nsIFile error.
Product: Firefox → DevTools
After bug 1429421 filesystem.js doesn't exist anymore, so this can be closed now.
(The warning for NetUtil.jsm still exists)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.