summaryrefslogtreecommitdiff
path: root/core/java/android/webkit
Commit message (Collapse)AuthorAgeFilesLines
* docs: Fix typo ("occured" -> "occurred")Andrew Solovay2023-01-091-1/+1
| | | | | | | | | | CommonTypos linter was warning about this typo in the generated doc. Also slightly improved grammar of sentence fragment. No changes to code, just to docs. Bug: 263824202 Change-Id: I060f4b76631297ca10fb72cf5ea2de7774b328f4 Test: [go/abtd docs build]
* Update WebSettings useragent docs.Torne (Richard Coles)2022-03-031-1/+4
| | | | | | | | | | | Update the WebSettings.setUserAgentString API docs to explicitly specify the effect it has on user agent client hints and related JS APIs. This is not a behaviour change for WebView, just making the docs describe what already happens. Test: make offline-sdk-docs Change-Id: I2db282efc4ee42b931824175abe627e871c4a86c
* Merge "WebView: Revise setAlgorithmicDarkeningAllowed Javadoc" into tm-devTreeHugger Robot2022-03-031-1/+56
|\
| * WebView: Revise setAlgorithmicDarkeningAllowed JavadocMichael Bai2022-03-021-1/+56
| | | | | | | | | | | | | | | | | | | | Revise the javadoc according to API council's feedback in http://b/216369031 Bug: 214741472 Test: m offline-sdk-docs Change-Id: I7eac1511ea522fba193afaad1113ae22286cebdf
* | Fix memory flags in external services and secondary zygotes.Evgenii Stepanov2022-03-011-1/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes a number of interconnected issues in memory safety (MTE, GWP-ASan, nativeHeapZeroInit) runtime flags. * Exported services use the hosting app UID to locate the process definition, and fail 100% of the time. Use the defining app UID and package name instead. * Isolated services process name does not match the name in the defining app manifest, because it includes a class name and an instance number. Pass the defining process name in HostingRecord to address this. * Exported service ApplicationInfo.packageName refers to the hosting app, again. As a result, wrong compat feature overrides are applied. This has been fixed before for AppZygote services; extend the fix to all external services. * Pass correct memory runtimeFlags to WebViewZygote. This is important because both MTE and GWP-ASan have a one-way disable switch; they are enabled in the Zygote and disabled in the apps that do not opt-in. Passing 0 runtimeFlags to WebViewZygote (and AppZygote) makes it impossible to enable these features later in their child processes. This change moves runtimeFlags logic from ProcessList to os.Zygote to make it available to WebViewZygote. Bug: 208910418 Test: CtsTaggingHostTestCases Test: atest in frameworks/base Test: CtsWebkitTestCases Test: manual install WebView with android:memtagMode tag Change-Id: I232d35344f4cd34226ff11324421904b35251525
* WebView: Load Android T specific WebViewMichael Bai2022-02-182-2/+2
| | | | | | Bug: 214742132 Test: Manual test Change-Id: I1ecdc9990663e0e2469c33f86decf8cb0e1136d2
* Merge "WebView: Rename to set/isAlgorithmicDarkeningAllowed"Michael Bai2022-01-271-5/+5
|\
| * WebView: Rename to set/isAlgorithmicDarkeningAllowedMichael Bai2022-01-261-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Rename set/getAllowAlgorithmicDarkening to set/isAlgorithmicDarkeningAllowed according to API council's feedback in http://b/216369031 Javadoc change will be in a separated patch. Bug: 214741472 Test: m, m api-stubs-docs-non-updatable-update-current-api CTS-Coverage-Bug: 214742132 Change-Id: I959508a5b8e18e054d62cd092140aeeaf7f92231
* | Merge changes Ib484fc0c,I2b9ff69c,I0a31b117,I888c65c8,I03723cfe, ...Calvin Pan2022-01-272-6/+23
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | * changes: Clean <plurals> in DateTimeView Clean <plurals> in CertificateMonitor Clean <plurals> in FillUi Clean <plurals> in BugreportProgressService Clean <plurals> in keyguard Clean <plurals> in ChooserActivity Clear <plurals> in TextUtils Clean <plurals> in FindActionModeCallback Clean <plurals> in ZenModeConfig Add util class for plurals
| * Clean <plurals> in DateTimeViewCalvin Pan2022-01-261-3/+9
| | | | | | | | | | | | Bug: 199230228 Test: make Change-Id: Ib484fc0c59f7900b751f4e782dd67c000cc855bb
| * Clean <plurals> in FindActionModeCallbackCalvin Pan2022-01-241-3/+14
| | | | | | | | | | | | Bug: 199230228 Test: make Change-Id: I59618e5467696d3173dfb4782ce55964694a42fc
* | WebView: Add set/getAlgorithmicDarkening APIsMichael Bai2022-01-211-0/+70
|/ | | | | | | | | | | | | | | | This patch also deprecates the force dark mode API. WebView can't add CTS test right now because the API's implementation is in Chromium, WebView needs to first define the API in framework, then land the change and drop the APK, afterward, CTS test will be added. Add compat-framework support for this evolution behavior. Bug: 214741472 Test: m, m offline-sdk-docs CTS-Coverage-Bug: 214742132 Change-Id: I5d254deb1f27655ea909fceaa5b09a081d71c763
* Remove WebView AppCache APIs.Torne (Richard Coles)2021-09-143-30/+30
| | | | | | | | | These are no-ops since WebView 95; remove them from the SDK to make it clear to apps that they're nonfunctional. Bug: 199287927 Test: atest CtsWebkitTestCases Change-Id: I498aff6f8a0c2901504d777f597dbf77f982cd3a
* Merge "Refactor: Remove unused branch." am: a9f7998ff4 am: 4d7203226a am: ↵Treehugger Robot2021-09-091-1/+1
|\ | | | | | | | | | | | | | | 19545b4cc5 am: 45b057561e am: 2a4a3c0282 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1820992 Change-Id: If78fb3baa7e8198ee8fb39c890df172e6c691408
| * Merge "Refactor: Remove unused branch." am: a9f7998ff4Treehugger Robot2021-09-091-1/+1
| |\ | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1820992 Change-Id: Ic4a2d7911ab6d30d24b27596c42069e534f99db9
| | * Refactor: Remove unused branch.Darwin Huang2021-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | `filename` must be `null` at this point, as it's recently been set to that value, and hasn't adopted any other value yet. Refactoring change only. No functional changes intended. Change-Id: I29a28872efc8c12c0da3c9f7c0a92d6aff465410
* | | Merge changes from topic "revert-15058002-SNQUARIDWJ" into sc-dev am: ↵Ryan Mitchell2021-07-011-7/+3
|\| | | | | | | | | | | | | | | | | | | | | | | b3659d36b0 am: 30d3f5c8cc Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15156470 Change-Id: Iaccb9ef10405114fa3cc3456404759a8d49678ed
| * | Revert^3 "Deprecate Context#createApplicationContext"Ryan Mitchell2021-06-301-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit cb5a80ea57b51fcde117dea253c546dbba9f27f1. Reason for revert: Was not the cause of the test failure Fixes: 186622527 Test: atest FrameworksCoreTests:ContextTest Change-Id: I705854f080200f0465d94a7754e710f05a3ec92c
* | | Merge changes from topic "revert-15058002-SNQUARIDWJ" into sc-dev am: ↵Paul Hobbs2021-06-291-3/+7
|\| | | | | | | | | | | | | | | | | | | | | | | 8d440c0566 am: 30c6c3da16 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15144638 Change-Id: I480ec5d23f070c8383ea121432a9dd6c563a9188
| * | Revert^2 "Deprecate Context#createApplicationContext"Paul Hobbs2021-06-291-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 192242649 5a41b45a85286200f029b6ac06d004cb32c88dd0 Change-Id: Idcebd68e0079e7e87de04ae25069b3a9ff72093c
* | | Merge changes Icf81845d,Iea54abf3,I98656314 into sc-dev am: 5a532f6eed am: ↵Ryan Mitchell2021-06-271-7/+3
|\| | | | | | | | | | | | | | | | | | | | | | | f55b43b332 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15058002 Change-Id: Ifd34e72963e196376f408eac4f195142575a4402
| * | Revert "Deprecate Context#createApplicationContext"Ryan Mitchell2021-06-221-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c54ebba25be71d77a4c0d92dba2f0b32c03a9792. Bug: 188059515 Test: atest FrameworksCoreTests:ContextTest Change-Id: I986563142dac135281889e811e6e5219d728d5d1
* | | Bump x86 WebView zygote reservation size to 190MiBEgor Pasko2021-06-151-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current 130MiB is not sufficient for the latest Chrome x86 dev build of stripped native library. Official ARM library is around 59 MiB (on disk). This flavor is slower to build and is less convenient to test with. Keep the 32bit arm reservation size unchanged, it is sufficient and allows growth. Bug: 184808875 Test: Manual: start a "release" build of Chrome/x86 (but not "official"), observe that with the change Chrome can mmap(MAP_FIXED) all the segments of the native library into the region successfully Change-Id: I00507169eafbdcfc4d413bb9c76188e179ca0c0e
* | | Merge "Deprecate Context#createApplicationContext" into sc-dev am: ↵TreeHugger Robot2021-05-201-3/+7
|\| | | | | | | | | | | | | | | | | | | | | | | ee438f960a am: d95a9ebbfb am: 891659ba75 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14528644 Change-Id: I396eb97e5b36556757caf269b0e565459c62828b
| * | Merge "Deprecate Context#createApplicationContext" into sc-devTreeHugger Robot2021-05-191-3/+7
| |\ \
| | * | Deprecate Context#createApplicationContextRyan Mitchell2021-05-181-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an application caches an ApplicationInfo and uses it to call Context#createApplicationContext, the app will not get the most recent version of the overlays for that application. To make things worse, the LoadedApk stored in ActivityThread#mResourcePackages is updated using the old ApplicationInfo causing further uses of the cached LoadedApk to return outdated information. Deprecate Context#createApplicationContext, convert all internal uses to Context#createPackageContext(String packageName, ...) and log whenever any one calls Context#createApplicationContext with an outdated ApplicationInfo to detect debug issues in using old infos. Bug: 188059515 Test: change wallpaper and observe widgets get reloaded with most recent overlays Change-Id: I2aeefa8c0e66264859109975a54c4f73f76ad710
* | | | Merge "Rework WebView startup timestamp system API." into sc-dev am: ↵TreeHugger Robot2021-05-202-60/+103
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 99e37aca02 am: 3a1b86f460 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14602033 Change-Id: Icdedd6a67ebde91e39b810e4157cf90676e61b54
| * | | Rework WebView startup timestamp system API.Torne (Richard Coles)2021-05-182-60/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework the new WebView startup timestamp system API to use a class with named getters instead of an array with an @IntDef index. Fixes: 184026615 CTS-Coverage-Bug: 183239482 Test: n/a Change-Id: I22c95b1c2dc98f8ecd23ce22dc21e3d0158d9e1b
* | | | Merge "Add dispatchRequestTranslation() in WebViewProvider." into sc-dev am: ↵Joanne Chung2021-05-122-0/+23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 137a248c1f Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14327001 Change-Id: I13f7e08e0ab32920fd982fe4871862441dbd1947
| * | | Add dispatchRequestTranslation() in WebViewProvider.Joanne Chung2021-05-122-0/+23
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change doesn't introduce a new API, the change is just pushing down an existing API from View that we are missing to add for the webview. We should also provide this method to allow webview provider to provide their implementation if needed. Bug: 186617107 Test: manual CTS-Coverage-Bug: 177960696 Change-Id: If75285b3aafdb1f2a3d7c307a90bb783edf029b5
* | | Merge "[WebView] Add document for ViewDelegate#onApplyWindowInsets"TreeHugger Robot2021-05-071-0/+11
|\ \ \ | |/ / |/| |
| * | [WebView] Add document for ViewDelegate#onApplyWindowInsetsShimi Zhang2021-05-071-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Explaining when the method will return null and how that is handled. Bug: 180991400 Test: No logic change, current tests should pass. Change-Id: Iae0a383cf173b80f50ea2bba46a3d263bed8f512
* | | webview: switch timestamps to uptimeMillis().Torne (Richard Coles)2021-04-292-10/+10
|/ / | | | | | | | | | | | | | | | | We should use uptimeMillis for the startup timestamps since it doesn't count time in device sleep. Fixes: 184786485 Test: n/a Change-Id: I4073e73de9b76d50398b820879c4fcf7b8f614e8
* | Document WebViewDelegate.getTimestamps() better.Torne (Richard Coles)2021-04-272-0/+13
| | | | | | | | | | | | | | | | | | | | Specify that the values are @ElapsedRealtimeLong and document the entries in the array via the index constants. Fixes: 184786485 Bug: 184026615 Test: n/a Change-Id: I26e3df80e79b14d2301e28da93f7814bc67bdb6a
* | API feedback: Translation View API refinement.Joanne Chung2021-04-202-8/+9
| | | | | | | | | | | | | | | | | | Bug: 178046780 Test: manual Test: atest android.translation.cts.UiTranslationManagerTest CTS-Coverage-Bug: 177960696 Change-Id: I557ca4b3b4e7324af12e81dd8b5ac8a04a17b6b8
* | Bug fix: allow to create ViewTranslationRequest for virtual AutofillId.Joanne Chung2021-03-311-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. We provide virtual child list to View#onCreateTranslationRequests but we don't provide a method to allow developers to create ViewTranslationRequest for virtual AutofillId. Add a builder constructor to allow developer to use it for virtual AutofillId. 2. Fix some comments in ag/13982294(e1b23cd) Bug: 177789967 Test: manual on sample app Test: atest CtsTranslationTestCases Change-Id: I63e914b888b23cdb7a5169fc6931be93625ca8e4
* | Add translation APIs for virtual views.Joanne Chung2021-03-292-0/+39
| | | | | | | | | | | | | | | | | | Bug: 178046780 Test: manual Test: atest CtsTranslationTestCases CTS-Coverage-Bug: 177960696 Change-Id: I99caed0d42b3a164a25c2707eba7057c42c19140
* | Use SystemClock.elapsedRealtime() to record WebView startup timestamps.Anna Malova2021-02-171-8/+9
| | | | | | | | | | | | | | | | | | | | ag/13435848 introduces timestamp collections based on System.currentTimeMillis but elapsedRealtime is a better choice for a interval timing. Bug: 180489435 Test: n/a Change-Id: If7b29cbe90e8bba76bccb42a5bc570c08b75c9e7
* | Merge "Record WebView startup timestamps and add API to access them." into ↵Anna Malova2021-02-032-2/+58
|\ \ | | | | | | | | | sc-dev
| * | Record WebView startup timestamps and add API to access them.Anna Malova2021-01-292-2/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change records timestamps that happen before the WebView APK's code is loaded and can record timestamps itself. Bug: 177895749 Test: n/a Change-Id: Ibb832fa13e868846625cc02c584a535a11561c66
* | | Merge "Merge "WebView: clarify CookieManager docs" am: 5844882671 am: ↵Automerger Merge Worker2021-02-031-11/+29
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | | | d2243be46a" into rvc-qpr-dev-plus-aosp am: 8e92545adf Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1569302 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I9d66b86d7ad4990e3e8910816cfb6d78587b4d83
| * WebView: clarify CookieManager docsNate Fischer2021-02-021-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No change to logic, only documentation change. This adds some clarifications to getCookie()/setCookie(): * getCookie() returns multiple cookies, setCookie() accepts only one * This briefly describes getCookie()'s output format because it's fairly simple * This summarizes setCookie()'s input format and provides an example, but directs the reader to the RFC spec for a full description * Minor formatting changes, including editing a javadoc link which doesn't currently render correctly in kotlin docs (for ValueCallback#onReceiveValue) Fixes: 175471135 Test: m offline-sdk-docs -j4 Change-Id: Id9052fa03584caae5ffc92ed1f6c4d2641d900ce
| * Suppress all hidden abstract methods in constructable classes.Aurimas Liutikas2020-11-134-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Having a hidden abstract method for a class that can be extended means that public implementors cannot implement these hidden methods posing a risk that custom implementations will not have required abstract methods resulting in an exception. Bug: 151134792 Test: make update-api Change-Id: I758d12465fabc671be19bedeeceb16885de23c87 Merged-In: I758d12465fabc671be19bedeeceb16885de23c87 Exempt-From-Owner-Approval: large scale suppression of existing issues, no-op in terms of behavior
| * Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-11-046-12/+16
| | | | | | | | | | | | | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
| * Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)Xin Li2020-08-3110-114/+321
| |\ | | | | | | | | | | | | | | | Bug: 166295507 Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27 Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
| | * Merge "webkit: add a note regarding FLAG_SECURE for default dialogs" into ↵TreeHugger Robot2020-06-031-0/+8
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | rvc-dev am: f7484457cd Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11617993 Change-Id: Ic7ffe9ca7bb83f27c204162a5c1d8fcecd29108b
| | * \ Merge "webkit: Update documentation for onJsBeforeUnload callback" into ↵TreeHugger Robot2020-05-271-18/+32
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | rvc-dev am: a203c27aa9 Change-Id: I7889a36e409f57a050d11c6b9b5d0797a57bd454
| | * \ \ Merge "webkit: Update documentation for onJsConfirm, onJsPrompt callbacks" ↵TreeHugger Robot2020-05-201-12/+44
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into rvc-dev am: a0b41154fe Change-Id: I382ecdbf93164a4988627c324e7c0766e2b63422
| * | | | | WebView: remove non-inclusive terminology from docsNate Fischer2020-07-272-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No change to logic, only docs. This removes non-inclusive terminology ("whitelist") from our API javadoc, with the exception of references to setSafeBrowsingWhitelist() (which we plan to deprecate soon, in favor of an inclusively named API). This rephrases one paragraph to be a bit clearer as well. Bug: 160928306 Test: m offline-sdk-docs -j4 Change-Id: If249be8a70b01c01390ebfeb418fd7c5e119f1f2
* | | | | | Add TEST_MAPPING to run WebView CTS/GTS tests in presubmit.Anna Malova2021-01-081-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 173406791 Test: cd frameworks/base/core/java/android/webkit && atest --test-mapping Change-Id: Ic75336a7067faf2c9ec10c8b7089eee48b2ec89d