Closed Bug 1449048 Opened 7 years ago Closed 7 years ago

Page redirection is slow while loading links from shortened URLs on Firefox Android

Categories

(Firefox for Android Graveyard :: General, defect)

Firefox 60
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1236135

People

(Reporter: smartfon.reddit, Unassigned)

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 Build ID: 20180322152034 Steps to reproduce: Tap on a shortened link (like bit.ly) in another app, or copy paste the shortened link directly into Firefox address bar and enter. Sometimes, the blank page gets stuck on the shortened URL. Once the real URL appears in the address bar, the website loads faster. Example 1: bit.ly/2pGZzO1 (redirects to https://securityaffairs.co/wordpress/70666/security/tls-1-3.html) On another browser it switched from the shortened URL to the real one instantly, so the overall load time was 3 seconds. That's 7 seconds on Firefox vs 3 seconds on other. Example 2: symc.ly/2FX5x4m (redirects to https://www.symantec.com/blogs/threat-intelligence/istr-23-cyber-security-threat-landscape) The blue progress bar got stuck at 20% mark for 6 seconds before displaying the real URL, after which the page loaded in 3 seconds. On the other browser the URL switch happened in 0.5 second, page load in 1.5 seconds. Compare 9 seconds to 2 seconds. This is on a 200Mbps WiFi, 2ms ping, 2ms jitter, LG G5. One reason to investigate this is because increasingly more social media links, and most news links, are shortened URLs these days.
I've enabled WebIDE and paired it to the phone with a QR reader, but couldn't reproduce the problem with the page getting stuck at bit.ly page. Maybe because during the test I need to have Firefox already open and on a specific tab so I can monitor that specific tab on the PC, and that creates a different environment from what we have after tapping on a link and letting it load on a new tab? Anyways, I will attach the following profiles that I saved from the Performance tab in Developer Tools. Profile 1: I pasted a URL in a blank tab, started Performance monitor, didn't hit enter to load it for 8 seconds to see what the idle tab pattern looks like on the final profile graph (repeated GC red bars and green dips and ups). The first 8 seconds can be ignored because the tab is in this idle state. Beginning 8th second I hit enter and the page loaded. The tab got stuck on a blank page for a while and that's when I terminated the collection. This doesn't show the URL shortener problem. Profile 2: The first 13 seconds can be ignored because it's before I hit enter. Afterwards it shows how the tab got stuck on a blank page again. Profile 3: same as above Profile 4 same as above, first 28 seconds are recorded before hitting enter. Is there a way to monitor the Performance of a tab that hasn't been opened yet? Let's say I tap on a link in another app, it opens Firefox, the whole process gets automatically recorded on the PC.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: