Closed Bug 1939415 Opened 1 year ago Closed 1 year ago

Major layout shift on New Tab page coming from IAB banner

Categories

(Firefox :: New Tab Page, defect, P2)

defect

Tracking

()

VERIFIED FIXED
136 Branch
Tracking Status
firefox135 --- verified
firefox136 --- verified

People

(Reporter: rhamoui, Assigned: rhamoui)

References

(Depends on 1 open bug)

Details

Attachments

(1 file, 2 external files)

There seems to be a major overflow of content on the New Tab page coming from the IAB banner when it is enabled.

Pushed by rhamoui@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c59212ed5dcd Fixing major layout shift coming from IAB Banner. r=home-newtab-reviewers,nbarrett
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Attachment #9459153 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Will cause layout shift when banners are rendered.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: browser.newtabpage.activity-stream.asrouter.devtoolsEnabled to true. Navigate to about:home#devtools and click on the IAB Banner Ad Sizes and toggle the Leaderboard and Billboard. There shouldnt be a large layout shift from the banner ads.
  • Risk associated with taking this patch: low
  • Explanation of risk level: CSS only changes
  • String changes made/needed: None
  • Is Android affected?: no
Flags: qe-verify+
Attachment #9459153 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I have verified this issue on the latest Firefox Nightly 136.0a1 (Build ID: 20250116214017) and Beta 135.0b5 (Build ID: 20250115091607) on Windows 10, macOS 14.7.1, and Ubuntu 20.04 x64.

  • The NewTab content is displayed correctly without any layout shift when the Billboard or the Leaderboard Ads are enabled.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Regressions: 1942889

This seems to have introduced a new pretty-broken-looking intermediate state to the new-tab page's loading flow, at least on the very first load (which also brings along some new layout shift); see bug 1942889. We may need to back this out from beta, or jump on the regression ASAP.

Regressions: 1942539
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: