Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2890920e authored by Feng Qian's avatar Feng Qian
Browse files

Set V8 flag --expose_gc in TestShellActivity.

Page cycler calls window.gc between pages, JSC exposes window.gc by default, and V8 requires the flag to be set.
parent bcda5e03
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -112,6 +112,11 @@ public class TestShellActivity extends Activity implements LayoutTestController

        mWebView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL);

        // Expose window.gc function to JavaScript. JSC build exposes
        // this function by default, but V8 requires the flag to turn it on.
        // WebView::setJsFlags is noop in JSC build.
        mWebView.setJsFlags("--expose_gc");

        mHandler = new AsyncHandler();

        Intent intent = getIntent();