Closed Bug 1901979 Opened 17 days ago Closed 15 days ago

The Review Checker is displayed in a private window for a PDP if the user interacts with the normal window

Categories

(Firefox :: Shopping, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
129 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox127 --- verified
firefox128 --- verified
firefox129 --- verified

People

(Reporter: rdoghi, Assigned: jhirsch)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Attached video Window2.mp4

Found in

  • Nightly 129.0a1 (2024-06-11)

Affected versions

  • Nightly 129.0a1 (2024-06-11)
  • Beta 128
  • Release 127.0 (64-bit)

Affected platforms

  • All

Preconditions

  • browser.shopping.experience2023.enabled - true
    browser.shopping.experience2023.optedIn - 1

Steps to reproduce

  1. Open a Private Window.
  2. Reach any product details page on Amazon.
  3. Click inside the Normal window and Open a new Tab. (If youre on a product details page in the normal window Simply open the Review Checker.)
  4. Go back to the Private window and Hit the Back button.

Expected result

  • The Review Checker should not be displayed at all in a Private window.
    Going back to the Search results should close the Private Window automatically.

Actual result

  • The Review Checker is opened when the user interacts with the Normal Window.
    Going back from the Product Details page in the Private window will keep the Sidebar open.

Regression range
Not a regression.

Assignee: nobody → jhirsch
Severity: S3 → S2
Status: NEW → ASSIGNED
Priority: -- → P1

Note, even simpler steps to repro:

  1. Open a private window to an amazon product page
  2. Toggle the browser.shopping.experience2023.enabled pref to true
  3. The sidebar appears in the private window, but it shouldn't.

mozregression points to the patch for bug 1845842.

Keywords: regression
Regressed by: 1845842
  • Rearrange the ShoppingSidebarManagerClass to clearly separate
    public and private APIs.

  • Ensure all public methods include a PBM check and add a comment
    encouraging future refactorings to preserve this property of the
    public API as a whole.

  • Also add a check at the IPC layer, updating the child and parent
    actor code to bail out if a message is received in a private window.

Attachment #9407373 - Attachment is obsolete: true
Pushed by jhirsch@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e99ed4f09ed0
Ensure shopping code never runs in private windows. r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

Comment on attachment 9407294 [details]
Bug 1901979 - Ensure shopping code never runs in private windows. r?gijs!,niklas

Beta/Release Uplift Approval Request

  • User impact if declined: Leadership would like to roll out the review checker feature more widely (ideally in a dot release for 127). This bug is the only blocker to that wider rollout.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Two different STR are covered in the description and comment 2 of the bug.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The patch is small and covered by automated tests, and only adds checks to be sure that we don't run the review checker code in private windows. The review checker feature is currently preffed off and any release would be via a Nimbus-controlled rollout, so if we encounter additional bugs, we could reverse the rollout.
  • String changes made/needed: None
  • Is Android affected?: No
Attachment #9407294 - Flags: approval-mozilla-release?
Attachment #9407294 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9407294 [details]
Bug 1901979 - Ensure shopping code never runs in private windows. r?gijs!,niklas

Approved for 128.0b4.

Attachment #9407294 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

This issue is Verified as fixed in our latest Nightly build 129.0a1 (2024-06-16) as well as Beta 128.0b4.

QA Whiteboard: [qa-triaged]

Comment on attachment 9407294 [details]
Bug 1901979 - Ensure shopping code never runs in private windows. r?gijs!,niklas

Approved for our next 127 dot release.

Attachment #9407294 - Flags: approval-mozilla-release? → approval-mozilla-release+

Verified as fixed in our latest Release build 127.0.1.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: