RESOLVED MOVED 182598
REGRESSION (STP 49): After opening a link in a new tab, the page center is off at first
https://bugs.webkit.org/show_bug.cgi?id=182598
Summary REGRESSION (STP 49): After opening a link in a new tab, the page center is of...
Tobi Reif
Reported 2018-02-08 00:52:07 PST
Created attachment 333363 [details] screen recording After opening a link in a new tab, the page center is off at first (or perhaps the new (hidden) tab is very small at first?) In Safari, open https://tobireif.com/demos/ . Open the Swirls demo in a new tab (eg using cmd-click). The page opens in (in a new tab in the foreground). The swirls originate from the center. In Safari Tech Preview, open https://tobireif.com/demos/ . Open the Swirls demo in a new tab (eg using cmd-click). The page opens in (in a new tab in the background - that's OK). Click on that tab. The swirls at first don't originate from the center (as intended), instead they originate from a place near top left. Only after that they originate from the center (as intended). (Also, sometimes clicking on a tab to switch to that tab doesn't work.)
Attachments
screen recording (29.86 MB, video/quicktime)
2018-02-08 00:52 PST, Tobi Reif
no flags
Tobi Reif
Comment 1 2018-02-08 00:54:32 PST
https://bugs.webkit.org/attachment.cgi?id=333363&action=edit "Attachment is not viewable in your browser because its MIME type (video/quicktime) is not one that your browser is able to display." Perhaps .mov attachments should be supported?
Simon Fraser (smfr)
Comment 2 2018-02-08 11:13:05 PST
This is new in STP 49?
Simon Fraser (smfr)
Comment 3 2018-02-08 11:14:55 PST
Tobi, what math is the demo using to place the swirls? Is it just looking at innerWidth/innerHeight?
Radar WebKit Bug Importer
Comment 4 2018-02-08 11:21:31 PST
Simon Fraser (smfr)
Comment 5 2018-02-08 11:35:52 PST
This is a regression in Safari code, not WebKit code. We'll track it internally.
Tobi Reif
Comment 6 2018-02-08 12:50:55 PST
Hi Simon! Thanks for investigating. > what math is the demo using to place the swirls? Is it just looking at > innerWidth/innerHeight? This code creates & adds the WegGL canvas element: var renderer = PIXI.autoDetectRenderer( window.innerWidth, window.innerHeight ); document.body.insertBefore( renderer.view, document.body.firstChild ); This code positions each swirl: [snipped].sprite.position.x = renderer.width / 2; [snipped].sprite.position.y = renderer.height / 2 So basically the answer is yes :)
Simon Fraser (smfr)
Comment 7 2018-02-08 12:52:48 PST
Cool, thanks.
Tobi Reif
Comment 8 2018-11-05 03:10:13 PST
As far as I can this this is fixed now.
Tobi Reif
Comment 9 2018-11-05 03:11:02 PST
Thanks!
Note You need to log in before you can comment on or make changes to this bug.