RESOLVED FIXED 126480
Move process suppression of WebProcess to WebPage (from UIProcess)
https://bugs.webkit.org/show_bug.cgi?id=126480
Summary Move process suppression of WebProcess to WebPage (from UIProcess)
Gavin Barraclough
Reported 2014-01-03 18:34:29 PST
Let each page take a UserActivity rather than having to coalesce this state, and take different activity tokens for normal visibility and suppression disabled, so we can see why the process is not suppressed.
Attachments
WIP patch (6.48 KB, patch)
2014-01-03 18:36 PST, Gavin Barraclough
no flags
Fix (14.32 KB, patch)
2014-01-03 23:28 PST, Gavin Barraclough
sam: review+
new patch for EWS (6.36 KB, patch)
2014-01-04 17:41 PST, Gavin Barraclough
no flags
Gavin Barraclough
Comment 1 2014-01-03 18:36:58 PST
Created attachment 220362 [details] WIP patch
Gavin Barraclough
Comment 2 2014-01-03 23:28:16 PST
Sam Weinig
Comment 3 2014-01-04 08:46:50 PST
Comment on attachment 220367 [details] Fix View in context: https://bugs.webkit.org/attachment.cgi?id=220367&action=review > ../OpenSource/Source/WebKit2/WebProcess/WebPage/WebPage.h:1050 > + UserActivity m_suppressionDisabled; This could use a more descriptive name.
Gavin Barraclough
Comment 4 2014-01-04 17:41:01 PST
Created attachment 220382 [details] new patch for EWS
Gavin Barraclough
Comment 5 2014-01-05 00:24:56 PST
Committed revision 161319.
Csaba Osztrogonác
Comment 6 2014-01-05 01:57:40 PST
Comment on attachment 220367 [details] Fix View in context: https://bugs.webkit.org/attachment.cgi?id=220367&action=review Additionally it broke the Apple Windows build too: 1>WebCore.lib(PageThrottler.obj) : error LNK2019: unresolved external symbol "public: __thiscall WebCore::UserActivity::UserActivity(char const *)" (??0UserActivity@WebCore@@QAE@PBD@Z) referenced in function "public: __thiscall WebCore::PageThrottler::PageThrottler(class WebCore::Page &)" (??0PageThrottler@WebCore@@QAE@AAVPage@1@@Z) 1>WebCore.lib(PageThrottler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall WebCore::UserActivity::beginActivity(void)" (?beginActivity@UserActivity@WebCore@@QAEXXZ) referenced in function "public: __thiscall WebCore::PageThrottler::~PageThrottler(void)" (??1PageThrottler@WebCore@@QAE@XZ) 1>WebCore.lib(PageThrottler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall WebCore::UserActivity::endActivity(void)" (?endActivity@UserActivity@WebCore@@QAEXXZ) referenced in function "public: void __thiscall WebCore::PageThrottler::setIsVisuallyIdle(bool)" (?setIsVisuallyIdle@PageThrottler@WebCore@@QAEX_N@Z) (Unfortunately you didn't have chance to catch it early, because Win EWS bots are out of order long time ago.) > ../OpenSource/Source/WebCore/page/PageThrottler.h:31 > +#include <WebCore/UserActivity.h> It broke the non Mac builds, because only Apple supports this kind of forwarding headers. Fix landed in http://trac.webkit.org/changeset/161320 nad http://trac.webkit.org/changeset/161321 .
Alexey Proskuryakov
Comment 7 2014-01-05 10:30:06 PST
Looks like Windows build is still broken.
Simon Fraser (smfr)
Comment 8 2014-01-05 20:42:22 PST
This broke windows: 1>WebCore.lib(PageThrottler.obj) : error LNK2019: unresolved external symbol "public: __thiscall WebCore::UserActivity::UserActivity(char const *)" (??0UserActivity@WebCore@@QAE@PBD@Z) referenced in function "public: __thiscall WebCore::PageThrottler::PageThrottler(class WebCore::Page &)" (??0PageThrottler@WebCore@@QAE@AAVPage@1@@Z) 1>WebCore.lib(PageThrottler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall WebCore::UserActivity::beginActivity(void)" (?beginActivity@UserActivity@WebCore@@QAEXXZ) referenced in function "public: void __thiscall WebCore::PageThrottler::setIsVisuallyIdle(bool)" (?setIsVisuallyIdle@PageThrottler@WebCore@@QAEX_N@Z) 1>WebCore.lib(PageThrottler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall WebCore::UserActivity::endActivity(void)" (?endActivity@UserActivity@WebCore@@QAEXXZ) referenced in function "public: void __thiscall WebCore::PageThrottler::setIsVisuallyIdle(bool)" (?setIsVisuallyIdle@PageThrottler@WebCore@@QAEX_N@Z)
Brent Fulgham
Comment 9 2014-01-06 09:05:36 PST
This change broke the Windows build. See Bug 126526 for the fix.
Note You need to log in before you can comment on or make changes to this bug.