Closed Bug 1760588 Opened 2 years ago Closed 2 years ago

The in-content "Search bar" placeholder is no longer displayed if the “about:privatebrowsing” page is refreshed after the “Get Firefox Focus” spotlight modal is triggered

Categories

(Firefox :: Messaging System, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
100 Branch
Iteration:
100.2 - March 21 - April 1
Tracking Status
firefox98 --- unaffected
firefox99 --- unaffected
firefox100 --- verified

People

(Reporter: srosu, Assigned: mviar)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

[Notes]:

  • I also observed that the “Private Browsing” tab title changes in the “about:privatebrowsing#” name if the page is refreshed after the “Get Firefox Focus” spotlight modal was opened.

[Affected versions]:

  • Firefox Nightly 100.0a1 (Build ID: 20220320213921)

[Affected Platforms]:

  • macOS 11.6
  • Windows 10 x64
  • Ubuntu 20.04 x64

[Prerequisites]:

  • Have the Firefox browser installed and opened.
  • Have the “browser.search.region” pref set to “US”.

[Steps to reproduce]:

  1. Restart the browser and open a new private window. (Ctrl+Shift+P)
  2. Click the “Download Firefox Focus” button from the “Firefox Focus” promo message.
  3. Refresh the page.
  4. Observe the Search Bar.

[Expected result]:

  • The Search Bar is correctly displayed and contains a placeholder.

[Actual result]:

  • The Search bar placeholder text is missing.

[Additional notes]:

  • This issue is still reproducible after a page refresh.
  • This issue is reproducible with all of the Search engines.
  • This issue is no longer reproducible when opening a new private tab.
  • Attached is a screen recording of the issue.
Assignee: nobody → mviar
Iteration: --- → 100.2 - March 21 - April 1
Priority: -- → P1

If the PBM page is refreshed after the Spotlight dialog is shown and dismissed, _isAboutPrivateBrowsing is set to false here in ContentSearchHandoff.js, causing the wrong strings to be selected on update. Fluent can't find those messages, so the search bar shows no text.

The problem originates here in ContentSearchParent.jsm where the current URI spec is about:privatebrowsing# after the refresh. The trailing hash results in isInPrivateBrowsingMode being set to false.

Pushed by mviar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8c766d91cf91
The in-content "Search bar" placeholder is no longer displayed if the “about:privatebrowsing” page is refreshed after the “Get Firefox Focus” spotlight modal is triggered r=Mardak
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
Blocks: 1760589

I‘ve verified this issue using the latest Firefox Nightly 100.0a1 (Build ID: 20220324093615) on Windows 10 x64, macOS 11.6, and Ubuntu 20.04.

  • The in-content "Search bar" placeholder text remains displayed if the “about:privatebrowsing” page is refreshed after the “Get Firefox Focus” spotlight modal is triggered.
No longer blocks: 1760589
Status: RESOLVED → VERIFIED
Blocks: 1760589
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: