RESOLVED FIXED144175
theverge.com burning 100% CPU on iPad (due to window.screenX/Y)
https://bugs.webkit.org/show_bug.cgi?id=144175
Summary theverge.com burning 100% CPU on iPad (due to window.screenX/Y)
Andreas Kling
Reported 2015-04-24 16:57:55 PDT
<rdar://problem/20694585> theverge.com is burning up my iPad CPU asking for the screen dimensions over and over. Since they are always going to be 0,0/0x0 on iOS, let's just add a short-circuit and get rid of the expensive synchronous IPC.
Attachments
Patch (1.68 KB, patch)
2015-04-24 17:00 PDT, Andreas Kling
andersca: review+
Andreas Kling
Comment 1 2015-04-24 17:00:21 PDT
Anders Carlsson
Comment 2 2015-04-24 17:01:31 PDT
Comment on attachment 251595 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=251595&action=review > Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp:135 > #if PLATFORM(COCOA) Shouldn't this be #elif PLATFORM(MAC) then?
Andreas Kling
Comment 3 2015-04-24 17:26:49 PDT
Note You need to log in before you can comment on or make changes to this bug.