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

Commit f0c289e2 authored by Steve Block's avatar Steve Block
Browse files

Fix DumpRenderTree2 to correctly add JavaScript interfaces to new windows

When adding JavaScript interfaces to a WebView, they must be passed to
the WebView constructor, rather than to
WebView.addJavascriptInterface() if they are to be used immediately
without the risk of race conditions.

This fixes LayoutTest
http/tests/appcache/crash-when-navigating-away-then-back.html

This was fixed for DumpRenderTree in
https://android-git.corp.google.com/g/23804

Change-Id: I1581d6d6cfc1b35be1ec2f2e5b5b944da2b4b935
parent 8a6def02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment