Open Bug 1807480 Opened 3 years ago Updated 3 years ago

YouTube redirect goes wrong when timestamp is included

Categories

(External Software Affecting Firefox :: Other, defect)

Firefox 108
Desktop
Unspecified
defect

Tracking

(firefox-esr102 affected, firefox108 affected, firefox109 affected, firefox110 affected)

Tracking Status
firefox-esr102 --- affected
firefox108 --- affected
firefox109 --- affected
firefox110 --- affected

People

(Reporter: karen.mulders, Unassigned)

Details

Attachments

(5 files)

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

Steps to reproduce:

I try to open this YouTube link from a word document: https://youtu.be/ZBXbK2HvxO8?t=78. When I open it from word (cntr+click) I get a redirect page in Firefox asking me if I want to open youtube and upon yes the redirect is corrupt.
It only happens with videos that have a timestamp. The same link without ?t=78 works fine when opening from within Word. Also when I copy and paste the above link directly into my browser it opens up just fine. Only when being redirected it goes wrong (see next bit).

Actual results:

Every youtube link with a timestamp that I open from a word document shows this corrupted link after the redirect: https://www.youtube.com/watch?v=&t=78s
Note how the video-code-ID is missing after watch?v= en before &t=78s

Expected results:

It should have redirected to original link that includes the video-code-ID. Please look into it an have it fixed (I have notified YouTube as well)

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

This sounds like a command line parameter issue vs. something with Playback. Moving to a more appropriate component.

Component: Audio/Video: Playback → File Handling
Product: Core → Firefox

Could you please attach a screenshot of the redirect page you are seeing?

Flags: needinfo?(karen.mulders)
Attached image sshot.png —

Got reply by email, I'm attaching a cleaned up version of the screenshot without any personal data.

Op also pointed out that changing Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Common\Internet adding ForceShellExecute: 1 bypasses the updated browser check.

Relevant MS doc: https://learn.microsoft.com/en-US/office/troubleshoot/office-suite-issues/cannot-locate-server-when-click-hyperlink

Flags: needinfo?(karen.mulders)

Reading the MS document, it looks like by default Office will try to access the link directly through the proxy server... by setting ForceShellExecute it directly asks the default browser to open the url.

So there may be some issues related to the Proxy server configuration and how it handles the requests.

I was able to reproduce this issue by setting ESR, Release, Beta as well as Nightly builds as Default browser programs and then simply Ctrl + clicking the URL from the Microsoft Word document.

Oddly enough it does not happen all the time as you can see from my screen recording.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
Hardware: Unspecified → Desktop

On a youtube community page a user reported this also happening with Edge.
Rares, would you have a chance to test Edge and/or Chrome and confirm if the bug reproduces there too?
Maybe try reproducing with Browser Toolbox open on the Network page and get a log of html requests?

Flags: needinfo?(rares.doghi)

Yes, I was able to reproduce this issue with Microsoft Edge as well as Google Chrome.

I also saved 2 .har files from the Network tab for when the issue occurs in Firefox, hopefully these are the correct ones, if not I will try again.

Flags: needinfo?(rares.doghi)

Unfortunately the network requests directly start from the supported_browsers url, thus I suspect it's the system itself asking us to open that url.
Rares, would you be able to provide a profile from the Firefox Profiler, you should just start the profiler before clicking on the link, and stop if after the bug happens. Not sure that is going to help but we can try, if that doesn't help yet, considered this happens in all the browsers, we may just move this to the External Software Affecting Firefox component.

Flags: needinfo?(rares.doghi)

Adding the Recorded Performance Profile, The first time I clicked the link from Word it opened the correct link, after closing it and opening the link again it would show the browser was not supported, hope the performance profile helps.

Flags: needinfo?(rares.doghi)

Even from the profile we see a straight load of
https://www.youtube.com/supported_browsers?next_url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Ft%3D78&v=ZBXbK2HvxO8&feature=youtu.be
It's actually Windows asking us to load that url, so our hypothesis that it's a system bug seems to be confirmed. This is likely due to the path links take before reaching the browser.

Component: File Handling → Other
Product: Firefox → External Software Affecting Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: