Closed Bug 1588515 Opened 5 years ago Closed 5 years ago

TypeError: document.getElementById(...) is null in permanent private browsing mode

Categories

(Firefox :: General, defect, P3)

x86_64
macOS
defect
Points:
1

Tracking

()

RESOLVED FIXED
Firefox 72
Iteration:
72.1 - Oct 21 - Nov 3
Tracking Status
firefox71 --- wontfix
firefox72 --- fixed

People

(Reporter: mcs, Assigned: mak)

Details

(Whiteboard: [tor 31955])

Attachments

(2 files)

Attached patch tor31955.patchSplinter Review

There is some code inside nonBrowserWindowStartup() that assumes it is operating inside the hidden window. This causes JS errors when permanent private browsing mode is enabled on macOS; for example, when windows such as Page Info are opened. STR:

  1. Enable permanent private browsing mode via "Never remember history" in about:preferences or by toggling browser.privatebrowsing.autostart to true.
  2. Restart Firefox.
  3. Load any page, e.g., https://www.mozilla.org/en-US/
  4. Press Cmd+I

Check the Browser Console for a message like the following:

TypeError: document.getElementById(...) is null nonbrowser-mac.js:107:14
  nonBrowserWindowStartup chrome://browser/content/nonbrowser-mac.js:107

We patched this in Tor Browser; see https://trac.torproject.org/projects/tor/ticket/31955
I will attach the patch.

Could you please convert the patch to a phabricator review request?

Flags: needinfo?(mcs)

I'll take it.

Assignee: nobody → mak
Status: NEW → ASSIGNED
Flags: needinfo?(mcs)
Priority: -- → P3
Iteration: --- → 72.1 - Oct 21 - Nov 3
Points: --- → 1
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/f775758e2976
TypeError: document.getElementById(...) is null in permanent private browsing mode on Mac. r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: