Closed Bug 2054581 Opened 2 months ago Closed 2 months ago

ExternalComponentWrapper doesn't properly forward down "live" properties from MessageWrapper, like isIntersecting

Categories

(Firefox :: New Tab Page, task)

task

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: mconley, Assigned: mconley)

Details

Attachments

(1 file)

isIntersecting is a property from MessageWrapper here: https://searchfox.org/firefox-main/rev/d4ae522db3b933e502d1febec899e7955c1fb633/browser/extensions/newtab/content-src/components/MessageWrapper/MessageWrapper.jsx#22,30,141

and, perhaps unsurprisingly, is meant to be updated when the underlying message intersects the viewport.

Messages that are using Expo via ExternalComponentWrapper, (like asrouter-newtab-message and asrouter-multistage-message), only get this isIntersecting state sent down initially, when cloning the element here: https://searchfox.org/firefox-main/rev/d4ae522db3b933e502d1febec899e7955c1fb633/browser/extensions/newtab/content-src/components/MessageWrapper/MessageWrapper.jsx#140-147

ExternalComponentWrapper passes that along to the underlying external component being embedded, but does not forward updates to that property, meaning that asrouter-newtab-message and asrouter-multistage-message only get false set for isIntersecting initially, and never hear it being set to true!

Thankfully, nothing has truly relied on isIntersecting yet.

Assignee: nobody → mconley
Status: NEW → ASSIGNED
Pushed by mconley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0ef390cc87b2 https://hg.mozilla.org/integration/autoland/rev/1428baa5376d Properly forward updating properties from MessageWrapper down through ExternalComponentWrapper down to wrapped message components. r=jbrown
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: