Open Bug 1447524 Opened 6 years ago Updated 28 days ago

Double session history entries from https://www.microsoft.com/en-us/news

Categories

(Core :: DOM: Navigation, defect, P2)

60 Branch
defect

Tracking

()

Webcompat Priority P2
Tracking Status
firefox-esr52 --- affected
firefox59 --- affected
firefox60 --- affected
firefox61 --- affected
firefox63 --- affected
firefox64 --- affected
firefox65 --- affected
firefox66 --- affected
firefox67 --- affected

People

(Reporter: sandken, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

(Whiteboard: [webcompat])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Android 5.1; Tablet; rv:60.0) Gecko/60.0 Firefox/60.0
Build ID: 20180319175655

Steps to reproduce:

From home screen or any other tab with Request desktop site checked, navigate to https://www.microsoft.com/en-us/news
Press back button (Firefox or Android)


Actual results:

Microsoft site is still active


Expected results:

Returned to previous site within tab

Stable Firefox 59.0.1 gives expected results.

I'm using Verizon Ellipsis 10 tablet with Android 5.1.
Thanks for reporting - to be clear, you were able to reproduce on Nightly but not on the release channel?

[triage] Critical: back doesn't work and we don't know which websites it might affect. Especially problematic as a regression.
Flags: needinfo?(sdaswani)
Priority: -- → P1
Ritu would this need to land by end of this week?

NI'ing Petru to assign it out to Vlad, Andrei or Petru, not sure why I can't assign one myself.
Flags: needinfo?(sdaswani)
Flags: needinfo?(rkothari)
Flags: needinfo?(petru.lingurar)
For some reason loading that URL seems to create two session history entries on Android.
Flags: needinfo?(petru.lingurar)
Assignee: nobody → petru.lingurar
To be clear, the bug I reported was with Beta 60.
Flags: needinfo?(sandken)
Assignee: petru.lingurar → nobody
Status: UNCONFIRMED → NEW
Ever confirmed: true
I have investigated this and found that on Android the back button action is handled properly.
Android delegates  browser.js  using  EventDispatcher.getInstance().dispatch("Session:Back", null) to handle the event and the problem seems to be there. Indeed nothing happens the first time. Same call, the second time, will indeed take the user to the previous page.
Whiteboard: [Leanplum] [60]
If this is a new regression in 60, you have until the week of April 23rd (pre-RC week) to uplift fixes that are safe and high likelihood to fix the regression. If this falls under "new feature" planned work, the sooner we uplift the better. If it doesn't happen this week but instead next, we can decide based on risk vs reward. Julien (as 60 release owner), please add anything I may have missed.
Flags: needinfo?(rkothari) → needinfo?(jcristau)
Thanks Ritu! This is a regression since 59.0.1 is ok.

I’m sure Petru will have a fix soon.
Investigated more.
The problem is definitely in core.
It's not only the back button that doesn't take the user back from https://www.microsoft.com/en-us/news
It's any other action that would have that effect, like pressing the back arrow from the options menu.
Because they all delegate the core to actually do the intended action.

What's more, this issue is also happening on Desktop (Ubuntu) latest stable - 59.0.2
James, it looks like this is a platform issue - can someone on your team take a look?
Flags: needinfo?(snorp)
Component: General → DOM
Flags: needinfo?(snorp)
Product: Firefox for Android → Core
Version: Firefox 60 → 60 Branch
Attached file shistory.json
Loading that page generates two session history entries like in the attached session store extract.

In the static HTML markup, the corresponding iframe is defined as
> <iframe id="shell-cart-count" title="Items in the cart" data-src="//www.microsoft.com/store/buy/cartcount" style="display: none"></iframe>
and later on, a script copies the contents of the data-src attribute into the proper "src" attribute to actually load that page.

For some reason, the page loads in such a way that it generates these two history entries, one before the iframe has loaded and one afterwards. On Desktop, I can also see the reload button momentarily flash between cancel and reload once more.
:overholt on your radar
Flags: needinfo?(overholt)
Regression range: ::::
Flags: needinfo?(sorina.florean)
Tested with Nexus 7(Android 5.1.1) and the issue is reproducible also with build from 2017-07-01 so this doesn't seems to be a regression. I tried with some other sites like cnn.com, youtube, amazon, some search with google and the issue is not reproducible.
Flags: needinfo?(sorina.florean)
(In reply to :sdaswani from comment #7)
> Thanks Ritu! This is a regression since 59.0.1 is ok.
[...]
(In reply to Sorina Florean [:sorina] from comment #13)
> Tested with Nexus 7(Android 5.1.1) and the issue is reproducible also with
> build from 2017-07-01 so this doesn't seems to be a regression.

Ah. I'll remove the regression keyword.

> I tried with
> some other sites like cnn.com, youtube, amazon, some search with google and
> the issue is not reproducible.

Nika and I discussed this; she opined it could be a website bug? Sorina, can you compare other browsers on desktop?

Peter, can you take a look (this reproduces on desktop) at comment 10?
Flags: needinfo?(sorina.florean)
Flags: needinfo?(peterv)
Flags: needinfo?(overholt)
Keywords: regression
Tested on WIN 10x64 with the following browsers:
-Chrome - not reproducible
-Microsoft Edge - not reproducible
-Opera - not reproducible
-Vivaldi - not reproducible
-Firefox and Nightly - reproducible
-Tor browser - reproducible (https://www.torproject.org/projects/torbrowser.html.en)

Seems that is only reproducible with Firefox and Tor browsers from my list. Also, from mobile side on Chrome, DuckDuckGo and Opera the issue is not reproducible. But with Firefox and Orfox: a Tor Browser for Android the issue is reproducible. 

If there is some other particular browsers that needs to be tested, please let me know.
Flags: needinfo?(sorina.florean)
Thanks, Sorina, that's great!

At this point I think it's worth filing this as a web compat issue which I've done: https://webcompat.com/issues/16638. Let's wait for some analysis from them and then we'll see what needs to happen.
Flags: needinfo?(peterv)
Priority: P1 → P2
Summary: Back button doesn't work with Microsoft news (Request desktop site) → Double session (?) history entries from https://www.microsoft.com/en-us/news
This is happening in 58.
Whiteboard: [Leanplum] [60]
Component: DOM → Document Navigation
See Also: → 1492094
Removing the regressionwindow-wanted keyword because I can reproduce this bug at least as far back as Firefox 43. I see now that Sorina already noted that this was not a regression (in comment 13). :)
Summary: Double session (?) history entries from https://www.microsoft.com/en-us/news → Double session history entries from https://www.microsoft.com/en-us/news
See Also: → 1520173

There is a detailed analysis by Thomas on the origin of the issue.
https://webcompat.com/issues/16638#issuecomment-421518538

Flags: webcompat?
Whiteboard: [webcompat]

Thomas this seems to be another case for it.

Flags: needinfo?(twisniewski)

Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.

Webcompat Priority: --- → ?

See bug 1547409. Migrating whiteboard priority tags to program flags.

Attached file test.html

Yes, this does seem to be the same. In fact, I've finally found some time to make a mostly-reduced test-case. The requirements to reproduce the issue seem to be:

  1. Use requireJS to define and require a module
  2. Have that module change an iframe's src
  3. Have that iframe post a message to the parent

But after reducing that far, I really need a break.

Nika, do you figure this is basically being caused by what you mentioned here on webcompat.com?

Flags: needinfo?(twisniewski) → needinfo?(nika)
Webcompat Priority: ? → P2
Severity: normal → S3
Flags: needinfo?(nika) → needinfo?(peterv)

Adam is working on https://bugzilla.mozilla.org/show_bug.cgi?id=340021. Let's see if he has quick thoughts on what's up here. Or can this be resolved by his patches?

Flags: needinfo?(peterv) → needinfo?(avandolder)

This issue should be fixed when the back-button intervention is re-enabled.

Depends on: 1734181
Flags: needinfo?(avandolder)

The issue is still reproducible on both Release and Nightly but not on Chrome.

Environment:
Operating system: Windows 10
Browsers tested: Firefox Nightly 128.0a1 (2024-05-28) / Firefox Release 126 / Chrome 125.0.6422.113

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

Attachment

General

Created:
Updated:
Size: