Open Bug 1948861 Opened 16 days ago Updated 5 days ago

www.instagram.com - Scrolls to the top of the page when trying to share reels (reproduces randomly)

Categories

(Web Compatibility :: Site Reports, defect, P2)

Firefox 137
Desktop
Windows 10

Tracking

(Webcompat Priority:P2, Webcompat Score:7, firefox135 affected, firefox136 affected, firefox137 affected)

Webcompat Priority P2
Webcompat Score 7
Tracking Status
firefox135 --- affected
firefox136 --- affected
firefox137 --- affected

People

(Reporter: ctanase, Unassigned)

References

()

Details

(Keywords: webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs][webcompat:sightline])

User Story

platform:windows,mac,linux,android
impact:annoyance
configuration:general
affects:all
branch:release
diagnosis-team:apz
user-impact-score:400
platform-scheduled:2025-06-30

Attachments

(2 files, 2 obsolete files)

Environment:
Operating system: Windows 10
Firefox version: Firefox 137.0/135

Preconditions:

  • Must be logged in

Steps to reproduce:

  1. Go to https://www.instagram.com/reels
  2. Scroll through the reels a little.
  3. Click on the share/send button located on the right of a reel.
  4. Close the share window.
  5. Observe the behavior.

Expected Behavior:
Displays the same reel you were trying to share.

Actual Behavior:
Scrolls to the top, it display the first reel.

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release
  • Does not reproduce in chrome

Created from https://github.com/webcompat/web-bugs/issues/148283

Attached video IG FF vs Chrome.mp4
Version: unspecified → Firefox 137
See Also: → 1948863

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

Whiteboard: [webcompat-source:web-bugs] → [webcompat-source:web-bugs][webcompat:sightline]

I don't know if they're using scroll snapping, but they might?

Severity: -- → S3
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: --- → 6
Priority: -- → P2

hiro: Is this related to bug 1948863?

Flags: needinfo?(hikezoe.birchill)

D239677 fixes this bug, and I think it's the right approach. But I haven't been able to write any test cases for this bug yet.

(In reply to Randell Jesup [:jesup] (needinfo me) from comment #4)

hiro: Is this related to bug 1948863?

I would say yes, it's related. Both this bug and bug 1948863 happen with scroll snap. But given that alice has already subscribed this bug, but hasn't yet commented here, so I presume the underlying issue is different.

That's being said, I am not 100% sure because bug 1948863 is hard to reproduce on my end, D239677 might fix bug 1948863 altogether.

Flags: needinfo?(hikezoe.birchill)

Though there's no problem even if we clear mSnapTargets in
ScrollContainerFrame::GetSnapPointForResnap, the main purpose of this change
is to avoid multiple call sites of ScrollSnapUtils::GetSnapPointForResnap
so that in the next change we only need to tweak the single call site.

[moving to diagnosis-team:apz since hiro's looking into this and it seems to be APZ/scrolling sort of issue.]

User Story: (updated)
Attached file A test case

1 sec. after loading the test case, you will see "scrollPosition: XX" there, if things work properly, the number should be 200, but on Firefox it's 0.

Daniel noticed me that I should have opened a platform bug and attached the patches there.

Depends on: 1950560

Comment on attachment 9468527 [details]
WIP: Bug 1948861 - Clear mSnapTargets just before trying to resnap instead of inside ScrollContainerFrame::GetSnapPointForResnap.

Revision D239685 was moved to bug 1950560. Setting attachment 9468527 [details] to obsolete.

Attachment #9468527 - Attachment is obsolete: true

Comment on attachment 9468514 [details]
WIP: Bug 1948861 - Do not clobber restoring the scroll position on re-snap.

Revision D239677 was moved to bug 1950560. Setting attachment 9468514 [details] to obsolete.

Attachment #9468514 - Attachment is obsolete: true
Webcompat Score: 6 → 7

For posterity;

Note that what I diagnosed is that in nsVideoFrame::ReflowFinished we dispatch a resizevideocontrols event and the resizevideocontrols event triggers re-snapping before restoring the scroll position via this.updateReflowedDimensions() call.

Geez, I intended to leave comment 13 in bug 1950560, not here.

Blocks: 1948863
See Also: 1948863
No longer blocks: 1948863
See Also: → 1948863
User Story: (updated)

Replacing "webcompat:needs-diagnosis" with "webcompat:platform-bug" since this has been diagnosed as being caused by a platform bug tracked in bug 1950560.

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

Attachment

General

Creator:
Created:
Updated:
Size: