user.js icon indicating copy to clipboard operation
user.js copied to clipboard

FYI: user_pref("dom.webnotifications.enabled", false); can cause site breakage

Open Just-me-ghacks opened this issue 9 years ago • 5 comments

user_pref("dom.webnotifications.enabled", false);

prevented an online shop to display product images.

It took me a while to troubleshoot this issue so I decided to share. I thought this pref has nothing to do with image content loading. The URL is not popular internationally, so I won't share it. Pants you can have it via email if you're interested.

Just-me-ghacks avatar Oct 09 '17 09:10 Just-me-ghacks

Hilarious! Please check your inbox.

Just-me-ghacks avatar Oct 09 '17 17:10 Just-me-ghacks

Pants, you can not replicate the problem because the site has been updated. It still requires dom.storage to be enabled otherwise categories and product browsing doesn't work (FF52).

It's a pity, because we won't understand what dom.webnotifications.enabled has to do with image loading unless we find another site with the same issue.

I tested it properly 23 days ago. Brand new profile + user.js, no plugins, no port blocking, etc. user_pref("dom.storage.enabled", true); user_pref("dom.webnotifications.enabled", true); were required to display product images.

I use these: user_pref("dom.webnotifications.serviceworker.enabled", false); user_pref("dom.serviceWorkers.enabled", false);

Just-me-ghacks avatar Nov 01 '17 15:11 Just-me-ghacks

Maybe. However that means user_pref("dom.webnotifications.enabled", true); bypass user_pref("dom.indexedDB.enabled", false); which is strange.

Time to close this thread? I will keep webnotifications disabled.

Just-me-ghacks avatar Nov 05 '17 11:11 Just-me-ghacks

Did you test that? Or did I say that?

No, no, it's just a (logical) assumption. I have indexedDB disabled by default. The site required dom storage and webnotifications to display images. So how can user_pref("dom.webnotifications.enabled", true); store data into indexedDB when indexedDB is disabled?

The site in question has been updated. The issue is not common, so I suggest we just close this thread until we find another site that loads images / content via webnotifications.

P.S.: the site has been restored! Right now it requires

user_pref("dom.storage.enabled", true);
user_pref("dom.webnotifications.enabled", true);

to display images,

Just-me-ghacks avatar Nov 05 '17 15:11 Just-me-ghacks

I guess that change was just for Halloween.

Yes, they are A/B testing something.

Right now it requires only user_pref("dom.storage.enabled", true); to display images. user_pref("dom.webnotifications.enabled", true); is not required.

Just-me-ghacks avatar Nov 06 '17 04:11 Just-me-ghacks