Bug 146798 - Incorrect value reported for window.innerWidth when page is not visible during load
Summary: Incorrect value reported for window.innerWidth when page is not visible durin...
Status: RESOLVED DUPLICATE of bug 142532
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-09 12:45 PDT by Michael Catanzaro
Modified: 2015-07-09 23:11 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2015-07-09 12:45:11 PDT
Test case: http://whatsmy.browsersize.com/

Load that page in the current tab. You should see reasonable values for browser window width and browser window height. Now middle-click the title to load the same page in a new tab. In Epiphany, the reported width is now displayed as 0.

I think this is responsible for breakage on popular web sites:

* Video pages on youtube.com display in a mobile layout when loaded in a new tab, but switch to the correct layout as soon as the browser window is resized.

* Images on vox.com are sent in extremely small sizes and then blown up to be super pixellated, because they adjust the resolution of the images they send to the window size of the browser to save bandwidth and make pages load faster.

I wonder if this is also responsible for why anchor links do not work when opened in new tabs.
Comment 1 Michael Catanzaro 2015-07-09 12:52:46 PDT
(In reply to comment #0) 
> * Images on vox.com are sent in extremely small sizes and then blown up to
> be super pixellated, because they adjust the resolution of the images they
> send to the window size of the browser to save bandwidth and make pages load
> faster.

(when articles are loaded in a new tab; their homepage is not affected)
Comment 2 Carlos Garcia Campos 2015-07-09 23:11:00 PDT

*** This bug has been marked as a duplicate of bug 142532 ***