Closed Bug 1591259 Opened 5 years ago Closed 5 years ago

BrowserGlue.jsm triggeres console log of Unhandled NS_ERROR_NOT_AVAILABLE (0x80040111, 2147746065) exception thrown from PushService lazy getter during "sessionstore-windows-restored" observer notification when dom.push.enabled == false

Categories

(Firefox :: General, defect)

Desktop
Unspecified
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 72
Tracking Status
firefox72 --- fixed
firefox107 --- verified
firefox108 --- verified

People

(Reporter: morgan, Assigned: emmamalysz)

Details

(Whiteboard: [tor 31573])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

Launch stock firefox ESR68 with the preference dom.push.enabled=false

Actual results:

Following error appears in debug console:
uncaught exception: 2147746065 SessionStore.jsm:1325:22

The issue does not appear to be present in latest Firefox 70. We have a bug tracking this issue here: https://trac.torproject.org/projects/tor/ticket/31573

(In reply to Richard Pospesel (Tor Browser Dev) from comment #1)

The issue does not appear to be present in latest Firefox 70. We have a bug tracking this issue here: https://trac.torproject.org/projects/tor/ticket/31573

This appears to have been fixed in commit 6a0111db7ba5a1a92f3eb68b89cb415bd08a4f3e

(In reply to Richard Pospesel (Tor Browser Dev) from comment #2)

(In reply to Richard Pospesel (Tor Browser Dev) from comment #1)

The issue does not appear to be present in latest Firefox 70. We have a bug tracking this issue here: https://trac.torproject.org/projects/tor/ticket/31573

This appears to have been fixed in commit 6a0111db7ba5a1a92f3eb68b89cb415bd08a4f3e

With a followup fix in 192e75e65bb32ce824c332992135aa7e9d6f246d

Hardware: Unspecified → Desktop

Act

Actually, after backporting the two fixes I'm still seeing this issue, and I can confirm this does actually happen in stock Firefox 70 as well (if you actually have dom.push.enabled=false)

Hi, Richard!

Thanks for your contribution!

There is an enhancement opened on this matter which you could check here https://bugzilla.mozilla.org/show_bug.cgi?id=1369436.

So far I couldn´t reproduce it, I am not receiving the mentioned error but please, check if the enhancement is correctly related to what you are talking about.

I'll add a product and component too. Apparently this was closed a month ago but I was following the entire thread and I assume is the same issue as you mention.

Please, feel free to add any comments or information if needed.

Regards,

Component: Untriaged → DOM: Push Notifications
Flags: needinfo?(richard)
Product: Firefox → Core

Hi Seba,

Yeah, I initially tried applying the changes (6a0111db7ba5a1a92f3eb68b89cb415bd08a4f3e and 192e75e65bb32ce824c332992135aa7e9d6f246d in gecko-dev) from #1369436 but the issue remains. The fundamental problem is that the lazyGetter for PushService throws 2147746065 (NS_ERROR_NOT_AVAILABLE) if the dom.push.enabled preference is set to false (I had not correctly diagnosed the problem when I first claimed it did not occur in latest Firefox; you have to toggle the pref to false for it to occur). This issue sill occurs in latest which is unsurprising given that there's no checking before attempting to access PushService.

We could just catch and swallow the exception where it's currently happening, but I don't know what the effects of doing so in the rest of the system may be.

Flags: needinfo?(richard)

It looks like this is coming from BrowserGlue.jsm in this chain of events:

Since it's in a lambda, it doesn't actually break anything, but the error is annoying.

Moving to Firefox :: General which is what searchfox thinks BrowserGlue.jsm belongs to per in-tree mappings.

Component: DOM: Push Notifications → General
Product: Core → Firefox
Summary: Unhandled NS_ERROR_NOT_AVAILABLE (0x80040111, 2147746065) exception thrown from PushService lazy getter during "sessionstore-windows-restored" observer notification when dom.push.enabled == false → BrowserGlue.jsm triggeres console log of Unhandled NS_ERROR_NOT_AVAILABLE (0x80040111, 2147746065) exception thrown from PushService lazy getter during "sessionstore-windows-restored" observer notification when dom.push.enabled == false
Version: 68 Branch → Trunk
Whiteboard: [tor 31573]

Hey emalysz, this might be related to your work in bug 1584014. Do you have some cycles to help Richard figure out a way forward here?

Flags: needinfo?(emalysz)
Assignee: nobody → emalysz
Flags: needinfo?(emalysz)
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/da87ab43340f insert catch block before accessing PushService to avoid exception during session-windows-restored r=mconley
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72

Reproduced with a 2019-11-05 Nightly build on macOS 12. Verified as fixed on Firefox 107.0(build ID: 20221107173030) and Nightly 108.0a1(build ID: 20221109164728) on macOS 12, Windows 10, Ubuntu 22.

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

Attachment

General

Creator:
Created:
Updated:
Size: