Changeset 140481 in webkit


Ignore:
Timestamp:
Jan 22, 2013, 3:36:58 PM (12 years ago)
Author:
ap@apple.com
Message:

[WK2] WebProcessService is not terminated when page is closed
https://bugs.webkit.org/show_bug.cgi?id=107595

Reviewed by Anders Carlsson.

  • platform/mac/RunLoopMac.mm: (WebCore::RunLoop::stop): Allow stopping XPC service run loop. Also, harmonized NSApp vs. [NSApplication sharedApplication] usage.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140479 r140481  
     12013-01-22  Alexey Proskuryakov  <ap@apple.com>
     2
     3        [WK2] WebProcessService is not terminated when page is closed
     4        https://bugs.webkit.org/show_bug.cgi?id=107595
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * platform/mac/RunLoopMac.mm: (WebCore::RunLoop::stop): Allow stopping XPC service
     9        run loop. Also, harmonized NSApp vs. [NSApplication sharedApplication] usage.
     10
    1112013-01-22  Ojan Vafai  <ojan@chromium.org>
    212
  • trunk/Source/WebCore/platform/mac/RunLoopMac.mm

    r139985 r140481  
    5353{
    5454    ASSERT(m_runLoop == CFRunLoopGetCurrent());
    55    
    56     if (m_runLoop == main()->m_runLoop && m_nestingLevel == 1 && s_useApplicationRunLoopOnMainRunLoop) {
    57         [[NSApplication sharedApplication] stop:nil];
     55
     56    // Nesting level can be 0 if the run loop is started externally (such as the case for XPC services).
     57    if (m_runLoop == main()->m_runLoop && m_nestingLevel <= 1 && s_useApplicationRunLoopOnMainRunLoop) {
     58        ASSERT([NSApp isRunning]);
     59        [NSApp stop:nil];
    5860        NSEvent *event = [NSEvent otherEventWithType:NSApplicationDefined
    5961                                            location:NSMakePoint(0, 0)
Note: See TracChangeset for help on using the changeset viewer.