Closed Bug 1548017 Opened 6 years ago Closed 6 years ago

XULStore Can't find profile directory with ProfileManager

Categories

(Core :: SQLite and Embedded Database Bindings, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
firefox-esr60 --- wontfix

People

(Reporter: iannbugzilla, Unassigned)

Details

When starting with Profile Manager from a terminal a message appears in it similar to:
JavaScript error: file:///home/gizmo/release/mozilla-257/obj-ff/dist/bin/components/XULStore.js, line 65: Error: Can't find profile directory.

Doesn't error if you start without ProfileManager

Definitely happens in ESR60, trunk now uses XULStore.jsm

Component: XUL Widgets → Storage

XULStore expects to be able to access the profile directory by the time the first XUL window appears. But when Firefox starts with the Profile Manager, it displays the Profile Manager's XUL window before a profile directory is available (since the point of the Profile Manager is to choose a profile, which determine's the profile directory).

(A similar situation can occur when using the profile migrator to migrate data from an old Firefox profile to a new one. The migrator displays a XUL window as part of that process before the new profile directory is available to XULStore.)

This error will prevent XULStore from persisting any persistent attributes of the Profile Manager window. However, that window doesn't explicitly persist any attributes, and it isn't resizable, nor does Firefox every display other windows at the same time. So the only attributes that XULStore would (implicitly) persist are the coordinates of the window.

The new implementation of XULStore (currently enabled on Nightly, and will merge to Beta shortly, although it won't be enabled there yet) doesn't report this error, so I'm marking this fixed. I don't think it's worth trying to resolve the underlying issue in the old implementation, given how little impact it'd have; so I recommend that it be marked wontfix for ESR 60.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED

I am still getting this error on 78 beta. Please advise.

Flags: needinfo?(myk)

Hi! Beta and Release still use the old XUL store implementation (gated in bug 1547877; blocked on bug 1596063 before we can turn it on everywhere), so this is unfortunately expected. From comment 2, it sounds like the error is noisy and annoying, but isn't causing problems inside of Firefox:

This error will prevent XULStore from persisting any persistent attributes of the Profile Manager window. However, that window doesn't explicitly persist any attributes, and it isn't resizable, nor does Firefox every display other windows at the same time.

Flags: needinfo?(myk)

Hi ! I am still getting this error on 83.0 (64 bits)

It seems it prevents to make the following three.js sample code to work:
https://redstapler.co/wp-content/uploads/2019/09/space-warp-src.zip
It gives random errors each time i refresh index.html

Solved. Works fine when I host the files. Locally it seems it's a same-origin policy problem. Microsoft Edge gave me a better hint on the error

Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.