⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242666 in webkit


Ignore:
Timestamp:
Mar 8, 2019, 4:59:40 PM (7 years ago)
Author:
Chris Dumez
Message:

Enable ProcessAssertions on iOS Simulator
https://bugs.webkit.org/show_bug.cgi?id=195479

Reviewed by Alexey Proskuryakov.

Enable ProcessAssertions on iOS Simulator. We have some layout tests timing out in the
iOS Simulator due to the WebContent process suspending. Turning on ProcessAssertions in
the iOS Simulator seems to make those tests pass.

  • UIProcess/ProcessAssertion.cpp:
  • UIProcess/ProcessAssertion.h:
  • UIProcess/ios/ProcessAssertionIOS.mm:
Location:
trunk/Source/WebKit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r242664 r242666  
     12019-03-08  Chris Dumez  <cdumez@apple.com>
     2
     3        Enable ProcessAssertions on iOS Simulator
     4        https://bugs.webkit.org/show_bug.cgi?id=195479
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Enable ProcessAssertions on iOS Simulator. We have some layout tests timing out in the
     9        iOS Simulator due to the WebContent process suspending. Turning on ProcessAssertions in
     10        the iOS Simulator seems to make those tests pass.
     11
     12        * UIProcess/ProcessAssertion.cpp:
     13        * UIProcess/ProcessAssertion.h:
     14        * UIProcess/ios/ProcessAssertionIOS.mm:
     15
    1162019-03-08  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/ProcessAssertion.cpp

    r242610 r242666  
    2727#include "ProcessAssertion.h"
    2828
    29 #if !PLATFORM(IOS_FAMILY) || PLATFORM(IOS_FAMILY_SIMULATOR)
     29#if !PLATFORM(IOS_FAMILY)
    3030
    3131namespace WebKit {
     
    4545} // namespace WebKit
    4646
    47 #endif // !PLATFORM(IOS_FAMILY) || PLATFORM(IOS_FAMILY_SIMULATOR)
     47#endif // !PLATFORM(IOS_FAMILY)
  • trunk/Source/WebKit/UIProcess/ProcessAssertion.h

    r242646 r242666  
    3535#endif
    3636
    37 #if PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR)
     37#if PLATFORM(IOS_FAMILY)
    3838#include <wtf/RetainPtr.h>
    3939OBJC_CLASS BKSProcessAssertion;
     
    6767    virtual void setState(AssertionState);
    6868
    69 #if PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR)
     69#if PLATFORM(IOS_FAMILY)
    7070protected:
    7171    enum class Validity { No, Yes, Unset };
     
    7676
    7777private:
    78 #if PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR)
     78#if PLATFORM(IOS_FAMILY)
    7979    RetainPtr<BKSProcessAssertion> m_assertion;
    8080    Validity m_validity { Validity::Unset };
     
    8484};
    8585
    86 #if PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR)
     86#if PLATFORM(IOS_FAMILY)
    8787
    8888class ProcessAndUIAssertion final : public ProcessAssertion {
     
    105105using ProcessAndUIAssertion = ProcessAssertion;
    106106
    107 #endif // PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR)
     107#endif // PLATFORM(IOS_FAMILY)
    108108   
    109109} // namespace WebKit
  • trunk/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm

    r242646 r242666  
    2727#import "ProcessAssertion.h"
    2828
    29 #if PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR)
     29#if PLATFORM(IOS_FAMILY)
    3030
    3131#import "AssertionServicesSPI.h"
     
    257257} // namespace WebKit
    258258
    259 #endif // PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR)
     259#endif // PLATFORM(IOS_FAMILY)
Note: See TracChangeset for help on using the changeset viewer.