Changeset 140367 in webkit


Ignore:
Timestamp:
Jan 21, 2013 2:45:29 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Enable process suppression by default on Mac
https://bugs.webkit.org/show_bug.cgi?id=106804

Patch by Kiran Muppala <cmuppala@apple.com> on 2013-01-21
Reviewed by Alexey Proskuryakov.

  • UIProcess/WebContext.cpp:

(WebKit::WebContext::WebContext): Change initialized value of
m_processSuppressionEnabled from false to true.

  • UIProcess/mac/WebContextMac.mm:

(WebKit::WebContext::platformInitialize): Since process suppression
is no longer disabled on construction, do not disable it for global
child processes either. Instead enable occlusion notifications as
they are needed to trigger process suppression.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r140366 r140367  
     12013-01-21  Kiran Muppala  <cmuppala@apple.com>
     2
     3        Enable process suppression by default on Mac
     4        https://bugs.webkit.org/show_bug.cgi?id=106804
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * UIProcess/WebContext.cpp:
     9        (WebKit::WebContext::WebContext): Change initialized value of
     10        m_processSuppressionEnabled from false to true.
     11        * UIProcess/mac/WebContextMac.mm:
     12        (WebKit::WebContext::platformInitialize): Since process suppression
     13        is no longer disabled on construction, do not disable it for global
     14        child processes either.  Instead enable occlusion notifications as
     15        they are needed to trigger process suppression.
     16
    1172013-01-17  Andy Estes  <aestes@apple.com>
    218
  • trunk/Source/WebKit2/UIProcess/WebContext.cpp

    r139888 r140367  
    143143#endif
    144144#if PLATFORM(MAC)
    145     , m_processSuppressionEnabled(false)
     145    , m_processSuppressionEnabled(true)
    146146#endif
    147147#if USE(SOUP)
  • trunk/Source/WebKit2/UIProcess/mac/WebContextMac.mm

    r139888 r140367  
    229229    registerUserDefaultsIfNeeded();
    230230    registerNotificationObservers();
    231     ASSERT(!m_processSuppressionEnabled);
    232     disableProcessSuppressionForGlobalChildProcesses();
     231    ASSERT(m_processSuppressionEnabled);
     232    enableOcclusionNotifications();
    233233}
    234234
Note: See TracChangeset for help on using the changeset viewer.