Open Bug 1915888 Opened 1 year ago Updated 10 hours ago

issue with url in reddit with open new page

Categories

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

Firefox 129

Tracking

(Webcompat Score:5, Webcompat Priority:P2)

Webcompat Score 5
Webcompat Priority P2

People

(Reporter: lazymonkey, Unassigned)

References

(Depends on 1 open bug, Regression, )

Details

(Keywords: regression, webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat:sightline][webcompat:japan])

User Story

platform:windows,mac,linux,android
impact:annoyance
configuration:general
affects:some
branch:release
diagnosis-team:dom
user-impact-score:180

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0

Steps to reproduce:

verified on firefox 129 on windows10 x64.

Steps to reproduce:

login into www.reddit.com
and configure it to open posts in new tab (in settings -> preferences -> Open posts in new tab).

then load some reddit sub, as example:
https://www.reddit.com/r/firefox/

now click on any post you like.
the post is opened in a new tab, as an example:
https://www.reddit.com/r/firefox/comments/1f32tn8/mozilla_is_working_on_redesigning_the_settings/

Actual results:

the url in the original tab is changed to the same url opened in the new tab.

in my case the url of the first tab is changed from
https://www.reddit.com/r/firefox/
to:
https://www.reddit.com/r/firefox/comments/1f32tn8/mozilla_is_working_on_redesigning_the_settings/

but the page content is not updated!

If I click back button the url changes to the correct one, in my case from:
https://www.reddit.com/r/firefox/comments/1f32tn8/mozilla_is_working_on_redesigning_the_settings/
retuens to the correct url:
https://www.reddit.com/r/firefox/
but the page still is not reloaded.

I have tried on a brand new firefox profile with no extensions installed and it still happening.

note: doesn't happen on chrome browser.

Expected results:

the url in the original tab should not change at all!

this bug is the same as this one for fenix:
https://bugzilla.mozilla.org/show_bug.cgi?id=1915625

Component: Untriaged → General

The Bugbug bot thinks this bug should belong to the 'Fenix::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Product: Firefox → Fenix
Component: General → Site Reports
Product: Firefox → Web Compatibility
Duplicate of this bug: 1915625
Severity: -- → S4
User Story: (updated)
Priority: -- → P3

this is closed as duplicate of 1915625, but that one is CONFIRMED, and this one is not?

No longer duplicate of this bug: 1915625
Status: UNCONFIRMED → NEW
Ever confirmed: true

So there a polyfill file called https://www.redditstatic.com/shreddit/en-US/apply-polyfill-e8c061ec.js is being provided for Firefox. Whenever we click the post, it'll do a history.pushState(aNewURL), which would cause the url bar to change.

I don't see Chrome dowloads this script nor doing this pushState thingy, so this looks a site issue to me.

See Also: → 1921942
Duplicate of this bug: 1921942

any news on this?

The severity field for this bug is set to S4. However, the following bug duplicate has higher severity:

:twisniewski, could you consider increasing the severity of this bug to S3?

For more information, please visit BugBot documentation.

Flags: needinfo?(twisniewski)
Severity: S4 → S3
Flags: needinfo?(twisniewski)
Whiteboard: [webcompat:sightline]
Webcompat Priority: --- → P2
Webcompat Score: --- → 5
Duplicate of this bug: 1954248

Does this work differently with ChromeMask?

(In reply to Jeff Muizelaar [:jrmuizel] from comment #10)

Does this work differently with ChromeMask?

no, using chrome mask does not fix it.

Regression window:
https://hg-edge.mozilla.org/integration/autoland/pushloghtml?fromchange=a2888594a2676480b7d622117fba394e43ca4d15&tochange=c196bec7eed90678db4b77e6751f2775ef21d1c7

Even in the good build, the bug is reproduced if set javascript.options.experimental.private_fields = true.

Suspect: Bug 1708235

Keywords: regression
Regressed by: 1708235

Agreed on comment #5, and this depends on Navigation API. The page includes this inline script in HTML:

async function i() {
  return e ||
  (
    e = async function () {
      if (n = window.navigation, !n) {
        console.log('Navigation API not supported, loading polyfill');
        try {
          const {
            applyPolyfill: e
          }
          = await import ('./apply-polyfill-abfabee6.js');
          n = e()
        } catch {
          console.log('Navigation polyfill failed to initialize.')
        }
      }
    }()
  ),
  e
}

I can confirm dom.navigation.webidl.enabled=true fixes the issue.

dom.navigation.webidl.enabled=true fixes the issue.

yes, I have tried on firefox 140 and it solves this issue.
too bad that after flipping the config I got gmail crashing repeatedly.

I had to revert the change :-(

Yes it's false by default for reason 🥲

Also confirming dom.navigation.webidl.enabled= true fixes it. Does this still appear to be a site issue?

Also see https://www.reddit.com/r/bugs/comments/1i5qxri/issue_with_firefox_and_open_post_in_new_tab_option/?sort=old.

Whiteboard: [webcompat:sightline] → [webcompat:sightline][webcompat:japan]
User Story: (updated)
User Story: (updated)
Depends on: 1997962
No longer depends on: navigation-api
You need to log in before you can comment on or make changes to this bug.