Closed Bug 1657343 Opened 5 years ago Closed 4 years ago

Multiple errors are displayed in the Browser Console when navigating to or refreshing the about:welcome page

Categories

(Firefox :: Messaging System, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
85 Branch
Iteration:
85.2 - Nov 30 - Dec 13
Tracking Status
firefox80 --- wontfix
firefox81 --- wontfix
firefox85 --- verified

People

(Reporter: cmuresan, Assigned: pdahiya)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

[Affected versions]:

  • Firefox Beta 80.0b3, Build ID 20200803045446
  • Firefox Nightly 81.0a1, Build ID 20200803094100

[Affected Platforms]:

  • Windows 10
  • macOS 10.15
  • Linux MX 4.19

[Steps to reproduce]:

  1. Open a new Firefox Beta profile with the --jsconsole argument.
  2. Observe the Browser Console.
  3. Navigate through all the slides and observe the Browser Console.
  4. Refresh the page and observe the Browser Console.
  5. Refresh the page a second time and observe the Browser Console.

[Expected results]:

  • No errors are displayed.

[Actual results]:

  • Step 2: Two Error: Can't find profile directory. errors and a can't convert null to object error are displayed.
  • Step 3: Multiple Error: Can't find profile directory. errors are displayed.
  • Step 4: A this._store is undefined and multiple Error: Can't find profile directory. errors are displayed
  • Step 5: An InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable, a this._store is undefined, and multiple Error: Can't find profile directory. errors are displayed

[Notes]:

  • At first start-up there are also a few more errors, such as
    • [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIXPCComponents_Utils.readUTF8URI]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: resource://gre/modules/L10nRegistry.jsm :: L10nRegistry.loadSync :: line 684" data: no]
    • SearchCache: _readCacheFile: Error reading cache file: Object { operation: "open", path: "C:\\Users\\work\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\yi9khhlb.9\\search.json.mozlz4", winLastError: 2, stack: "", fileName: "(unknown module)", lineNumber: undefined }
    • Win error 2 during operation copy on file C:\Users\work\AppData\Roaming\Mozilla\Firefox\Profiles\yi9khhlb.9\logins-backup.json (The system cannot find the file specified.)
      but I'm not sure if those are related to the start-up mechanism or the about:welcome page.
  • Attached a screen recording of the issue.
  • Attached the output of the Browser Console.
Priority: -- → P2
Assignee: nobody → emcminn
Assignee: emcminn → pdahiya
Priority: P2 → P1
Iteration: --- → 85.1 - Nov 16 - Nov 29
Iteration: 85.1 - Nov 16 - Nov 29 → 85.2 - Nov 30 - Dec 13
Attachment #9187287 - Attachment description: Bug 1657343 - Fix browser console errors → Bug 1657343 - Fix browser console errors seen on navigating to about:welcome
Pushed by pdahiya@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7d9e2c3c2413 Fix browser console errors seen on navigating to about:welcome r=k88hudson
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch

I have tested this issue with the latest Firefox Beta (85.0b3 Build ID - 20201217185930) installed on Windows 10 x64, Mac 10.15, and Linux Mint 20 x64.
Now, I can confirm that the "this._store is undefined" and the "An InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable, a this._store is undefined" errors are no longer displayed in the browser console. However, I have observed that the "Can't find profile directory" error is still displayed when the page is opened and when navigating through slides.

@Punam, could you please confirm if the "Can't find profile directory" error is caused by the "about:welcome" page or not? I'm asking this because is the only thing that blocks us to mark this issue as verified.

Flags: needinfo?(pdahiya)

@mcoman That's correct scope of this patch didn't cover fixing "Can't find profile directory" console error , it doesn't seem to be invoked from about:welcome page and can be seen on New Tab page on browser open.

Flags: needinfo?(pdahiya)

Thank you for the confirmation @Punam!

Based on the verification done and mentioned in comment 4 and the confirmation received in comment 5 I'm marking this issue as VERIFIED in Firefox 85.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: