WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 142532
146798
Incorrect value reported for window.innerWidth when page is not visible during load
https://bugs.webkit.org/show_bug.cgi?id=146798
Summary
Incorrect value reported for window.innerWidth when page is not visible durin...
Michael Catanzaro
Reported
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Michael Catanzaro
Comment 1
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)
Carlos Garcia Campos
Comment 2
2015-07-09 23:11:00 PDT
*** This bug has been marked as a duplicate of
bug 142532
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug