Closed Bug 1845842 Opened 11 months ago Closed 8 months ago

Consider moving logic from browser.js / browser-sidebar.js into the parent shopping actor (ShoppingSidebarParent.sys.mjs)

Categories

(Firefox :: Shopping, task, P3)

Desktop
All
task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: Gijs, Assigned: niklas, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-shopping])

Attachments

(1 file)

See https://phabricator.services.mozilla.com/D184744#6108084 for more context on this. This avoids the trend of making browser.js do ever more stuff itself.

kicking inessential work out of the MVP scope and into the 'fast follow' bucket

Blocks: 1838699
No longer blocks: shopping2023

In bug 1848160, I had to insert a bit of a strange _maybeToggleSidebar into the ShoppingSidebarManager, so that we could record exposure telemetry separately for product page visits vs the sidebar actually getting displayed. This is a reminder to clean up and refactor that code (for instance, we now have TabSelect call _updateVisibility which calls onLocationChange...that's definitely not great and makes it really hard to reason about the onLocationChange cases due to navigation vs the TabSelect cases due to tab switching)

Assignee: nobody → nbaumgardner
Status: NEW → ASSIGNED
Attachment #9357504 - Attachment description: WIP: Bug 1845842 - Refactor shopping code out of browser.js. r=#shopping-reviewers → Bug 1845842 - Refactor shopping code out of browser.js. r=#shopping-reviewers

Moving "fast follow" items to top-level in the shopping backlog. Apologies for bug spam

Blocks: shopping2023
Pushed by nbaumgardner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f6d849983128
Refactor shopping code out of browser.js. r=shopping-reviewers,Gijs

Backed out for causing failures on browser_shopping_urlbar.js

[task 2023-11-02T14:58:46.543Z] 14:58:46     INFO - TEST-PASS | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | Shopping sidebar closed in new window - 
[task 2023-11-02T14:58:46.543Z] 14:58:46     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use <!DOCTYPE html>." {file: "https://example.com/product/B09TJGHL5F" line: 0}]
[task 2023-11-02T14:58:46.544Z] 14:58:46     INFO - Buffered messages finished
[task 2023-11-02T14:58:46.544Z] 14:58:46     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | Test timed out - 
[task 2023-11-02T14:58:46.545Z] 14:58:46     INFO - GECKO(8540) | MEMORY STAT | vsize 928MB | vsizeMaxContiguous 1293MB | residentFast 246MB | heapAllocated 102MB
[task 2023-11-02T14:58:46.546Z] 14:58:46     INFO - TEST-OK | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | took 45039ms
[task 2023-11-02T14:58:46.546Z] 14:58:46     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-11-02T14:58:46.547Z] 14:58:46     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | Found a tab after previous test timed out: https://example.com/product/B09TJGHL5F - 
[task 2023-11-02T14:58:46.547Z] 14:58:46     INFO - checking window state
[task 2023-11-02T14:58:46.548Z] 14:58:46     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-11-02T14:58:46.549Z] 14:58:46     INFO - TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_shopping_urlbar.js | Found a browser window after previous test timed out - 
[task 2023-11-02T14:58:46.549Z] 14:58:46     INFO - GECKO(8540) | must wait for focus
Flags: needinfo?(nbaumgardner)
Pushed by nbaumgardner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/66a36c6e56c8
Refactor shopping code out of browser.js. r=shopping-reviewers,Gijs
Pushed by nbaumgardner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1995198e0bee
Refactor shopping code out of browser.js. r=shopping-reviewers,Gijs
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: