Changeset 224124 in webkit


Ignore:
Timestamp:
Oct 27, 2017 12:10:24 PM (6 years ago)
Author:
Jonathan Bedard
Message:

Windows and WebViews are retained after re-configure
https://bugs.webkit.org/show_bug.cgi?id=178902
<rdar://problem/35211518>

Reviewed by Alexey Proskuryakov.

The test runner effectively leaks windows every time a test changes configuration.
We give each test it's own AutoreleasePool to fix this problem.

  • WebKitTestRunner/TestController.cpp:

(WTR::TestController::runTest): Add an AutoRelease pool scoping a test run
so that when a configuration changes, the old window and WebView are released.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r224117 r224124  
     12017-10-27  Jonathan Bedard  <jbedard@apple.com>
     2
     3        Windows and WebViews are retained after re-configure
     4        https://bugs.webkit.org/show_bug.cgi?id=178902
     5        <rdar://problem/35211518>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        The test runner effectively leaks windows every time a test changes configuration.
     10        We give each test it's own AutoreleasePool to fix this problem.
     11
     12        * WebKitTestRunner/TestController.cpp:
     13        (WTR::TestController::runTest): Add an AutoRelease pool scoping a test run
     14        so that when a configuration changes, the old window and WebView are released.
     15
    1162017-10-27  Eric Carlson  <eric.carlson@apple.com>
    217
  • trunk/Tools/WebKitTestRunner/TestController.cpp

    r224078 r224124  
    6868#include <string>
    6969#include <unistd.h>
     70#include <wtf/AutodrainedPool.h>
    7071#include <wtf/CryptographicallyRandomNumber.h>
    7172#include <wtf/HexNumber.h>
     
    11771178bool TestController::runTest(const char* inputLine)
    11781179{
     1180    AutodrainedPool pool;
     1181   
    11791182    WKTextCheckerSetTestingMode(true);
    11801183    TestCommand command = parseInputLine(std::string(inputLine));
Note: See TracChangeset for help on using the changeset viewer.