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

NEW
Unassigned

Status

()

Firefox
Developer Tools: Graphic Commandline and Toolbar
P2
normal
a year ago
6 months ago

People

(Reporter: sebo, Unassigned)

Tracking

({good-first-bug})

52 Branch
good-first-bug
Points:
---

Firefox Tracking Flags

(firefox52 wontfix)

Details

(Whiteboard: [lang=js])

(Reporter)

Description

a year ago
+++ 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
(Reporter)

Updated

a year ago
Version: unspecified → 52 Branch
(Reporter)

Updated

a year ago
status-firefox52: --- → affected
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]
(Reporter)

Comment 4

a year ago
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

Comment 5

a year ago
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.
status-firefox52: affected → wontfix
I don't get this in 52.3 (linux esr) or nightly.
(Reporter)

Comment 8

6 months ago
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.
You need to log in before you can comment on or make changes to this bug.