
Replaces explicit close()s with try-with-resources. The order of certain statements has changed slightly for some tests to better accommodate the try-with-resources layout. The validity of tests should not be affected. testClosingOneIsolate preserves explicit close for emphasis/readability. testEvaluationThrowsWhenSandboxDead preserves the explicit close() call because it simulates a premature sandbox termination. In this case, try-with-resources is used in addition. Secondary changes include: - Move some close() calls outside of try blocks. - Remove unused `String result` variables. - Add pedantic try-with-resource for previously unclosed isolate in testEvaluationThrowsWhenSandboxDead(). - Add pedantic try-with-resource for previously unclosed sandbox in testMultipleSandboxesCannotCoexist(). - Exercise the first sandbox in the testSandboxCanBeCreatedAfterClosed() test. - Add Assert.fail() calls to try blocks when exceptions are expected. - Validate exception causes more consistently Bug: 1347796 Change-Id: I376d44b92e418def2aa36b238ffe36098c90d631 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3794054 Reviewed-by: Abhijith Nair <abhijithnair@chromium.org> Reviewed-by: Richard Coles <torne@chromium.org> Commit-Queue: Ashley Newson <ashleynewson@chromium.org> Cr-Commit-Position: refs/heads/main@{#1032948}
Android WebView
Android WebView is an Android system component for displaying web content.
WebView (and
the related Android classes) are implemented by the code in the
//android_webview/
folder.
This directory contains the Android WebView implementation, as well as the implementation for the AndroidX Webkit support library.
Overview for Chromium team members and contributors
Please see WebView Architecture.
Want to use WebView in an Android app?
Please consult our API documentation and app development guides:
Want to build and install WebView on a device?
See our Chromium developer documentation.
Public mailing lists
- android-webview-dev@chromium.org: external discussion group for WebView developers and interested community members.
- android-webview-reviews@chromium.org: subscribe to code reviews affecting Android WebView code.