Closed Bug 1778489 Opened 2 years ago Closed 2 years ago

Website www.msn.com/ja-jp is blank with Private browsing

Categories

(Core :: Privacy: Anti-Tracking, defect, P3)

Firefox 104
Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
104 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox-esr102 --- unaffected
firefox102 --- unaffected
firefox103 --- unaffected
firefox104 --- verified

People

(Reporter: ctanase, Assigned: saschanaz)

References

(Blocks 1 open bug, Regression, )

Details

(Keywords: regression)

Attachments

(2 files)

Attached image msn JP.png (deleted) —

Environment:
Operating system: Windows 10
Firefox version: Nightly 104.0a1 (2022-07-06)

Preconditions:
Private browsing On
Clean profile

Steps to reproduce:

  1. Go to: https://www.msn.com/ja-jp/feed
  2. Observe the page

Expected Behavior:
The page loads correctly.

Actual Behavior:
The page is actually blank.

Notes:

  1. Screenshot provided
  2. Not reproducible on Chrome Incognito mode
  3. Not reproducible on FF Release in Private Window
  4. Not reproducible on FF release and Nightly while browsing in normal mode
Hardware: Other → Desktop

FYI,
Toggling dom.indexedDB.hide_in_pbmode.enabled in about:config seems to fix this issue in pbmode.

Blocks: 1776109

Oh no, this looks worse, class hi{constructor(){this.idb=indexedDB} causes breakage. I wonder this is also from some library?

Flags: needinfo?(krosylight)

Mozregression

Last good revision: 80116c1aa5c8532275bdd113ce2c431df4f0d994
First bad revision: e64c83e9d62d19e3f8da181736595423b2bddb52
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=80116c1aa5c8532275bdd113ce2c431df4f0d994&tochange=e64c83e9d62d19e3f8da181736595423b2bddb52

No longer blocks: 1776109
Flags: needinfo?(krosylight)
Regressed by: 1776109
Flags: needinfo?(krosylight)

Set release status flags based on info from the regressing bug 1776109

It seems that msn.com assumes indexedDB is always defined. I can try to write a shim to meet its expectation, as it's the only site so far that is broken by making that assumption (but we may very well soon find more).

https://www.msn.com/ja-jp/feed accesses indexedDB as a global variable and thus it throws undefined identifier error when it's not defined. Returning null fixes the regression.

Assignee: nobody → krosylight
Status: NEW → ASSIGNED

MSN does have a feature detection but it's like this. It surely won't work 🤔

export class IndexedDb {
    constructor() {
        /** IndexedDb object */
        this.idb = indexedDB;
    }
    /**
     * Returns if IndexedDb is supported.
     * @returns true if supported else false.
     */
    get supported() {
        if (!this.idb) {
            return false;
        }
        return true;
    }
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4081bdd1be9d Define window.indexedDB as null in Private Browsing Mode r=twisniewski,asuth
Flags: needinfo?(krosylight)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Flags: qe-verify+

Reproduced this issue on an affected Nightly build 104.0a1 (20220706214039).
Verified as fixed on Firefox 104.0b8 (20220809195844), on Windows 10.

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: