Closed Bug 1525350 Opened 6 years ago Closed 3 years ago

Contents of find bar not cleared from private browsing window

Categories

(Toolkit :: Find Toolbar, defect, P3)

defect

Tracking

()

VERIFIED FIXED
101 Branch
Tracking Status
firefox101 --- verified

People

(Reporter: mccr8, Assigned: ian)

References

Details

Attachments

(1 file)

STR:

  1. Visit a web page not in private browsing mode.
  2. Open a new private browsing window.
  3. Visit some web site in the private browsing window.
  4. Hit command-f (on OSX) to search for something in the page.
  5. Close the private browsing window.
  6. In the non-private browsing window, hit command-f. The page search from step 4 is still there.

Expected behavior: In step 6, I'd have expected that the search input I typed in for step 4 is not there any more. It isn't page content per se, but it is within the browsing window, and is something explicitly tied to that particular private browsing page.

Mike, I believe this bug is caused by clipboardSearchString in the findbar code...

It looks to me that a fix would look like doing a private browsing check on this._getWindow() around here and only performing the assignment if we're in a non-private window. Does that sound right to you?

Flags: needinfo?(mdeboer)
Priority: -- → P3

Yes, that sounds right. I would put it in the clipboardSearchString setter to catch all callsites.

Flags: needinfo?(mdeboer)
Component: Private Browsing → Find Toolbar
Product: Firefox → Toolkit
Assignee: nobody → ian
Status: NEW → ASSIGNED

Hi Neil, I have submitted a patch for this. This is my first time attempting to do this in the Mozilla ecosystem, so please let me know if I screwed something up. Thanks!

Flags: needinfo?(enndeakin)

Thank you, I have landed the patch for you.

Flags: needinfo?(enndeakin)
Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b9bc18499dc Check if window is private before saving search string. r=NeilDeakin
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
QA Whiteboard: [qa-101b-p2]

Reproducible on Firefox 100.0(20220428192727) on macOS 11. Verified as fixed on Firefox 101.0b8(20220517185920) and Nightly 102.0a1(20220517212638) on macOS 11.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-101b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: