issue with url in reddit with open new page
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(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
          Comment 1•1 year ago
           
         | 
      ||
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.
          Updated•1 year ago
           
         | 
      
          Updated•1 year ago
           
         | 
      
| Reporter | ||
          Comment 3•1 year ago
           
         | 
      ||
this is closed as duplicate of 1915625, but that one is CONFIRMED, and this one is not?
          Comment 5•1 year ago
           
         | 
      ||
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.
| Reporter | ||
          Comment 7•1 year ago
           
         | 
      ||
any news on this?
          Comment 8•11 months ago
           
         | 
      ||
The severity field for this bug is set to S4. However, the following bug duplicate has higher severity:
- Bug 1915625: S3
 
:twisniewski, could you consider increasing the severity of this bug to S3?
For more information, please visit BugBot documentation.
          Updated•11 months ago
           
         | 
      
          Updated•11 months ago
           
         | 
      
          Updated•9 months ago
           
         | 
      
          Updated•8 months ago
           
         | 
      
          Comment 10•4 months ago
           
         | 
      ||
Does this work differently with ChromeMask?
| Reporter | ||
          Comment 11•4 months ago
           
         | 
      ||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #10)
Does this work differently with ChromeMask?
no, using chrome mask does not fix it.
          Comment 12•4 months ago
           
         | 
      ||
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
          Comment 13•4 months ago
           
         | 
      ||
And Regression window w/ javascript.options.experimental.private_fields = true.
https://hg-edge.mozilla.org/integration/autoland/pushloghtml?fromchange=ba58c6d3c92ca08200c4e2ed094fb96e705fb918&tochange=dab1af643107d81cc3a7c359cf06967123f08361
Suspect: Bug 1681046
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.
| Reporter | ||
          Comment 15•3 months ago
           
         | 
      ||
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 🥲
          Comment 17•2 months ago
           
         | 
      ||
Also confirming dom.navigation.webidl.enabled= true fixes it. Does this still appear to be a site issue?
          Updated•1 month ago
           
         | 
      
          Updated•1 month ago
           
         | 
      
          Updated•1 month ago
           
         | 
      
          Updated•10 hours ago
           
         | 
      
Description
•