Commit Graph

3819 Commits

Author SHA1 Message Date
Tobias Sargeant
e067f04821 Merge "[webview] Fix handling of unicode digits in address detection." am: 8abff6b4d0 am: e71eaf3f5e am: dd702a3a54
am: bac5527166

Change-Id: Ieaa0a8da2eba7b0469b2ba707899818c1ccf0264
2019-10-11 04:33:43 -07:00
Tobias Sargeant
dd702a3a54 Merge "[webview] Fix handling of unicode digits in address detection." am: 8abff6b4d0
am: e71eaf3f5e

Change-Id: I4d972bdbd6709bc414a4220aa700e3bab97536b9
2019-10-11 04:09:20 -07:00
Tobias Sargeant
e71eaf3f5e Merge "[webview] Fix handling of unicode digits in address detection."
am: 8abff6b4d0

Change-Id: I08b798ac8867c14098a48dd2782ceab794360683
2019-10-11 03:57:24 -07:00
Treehugger Robot
8abff6b4d0 Merge "[webview] Fix handling of unicode digits in address detection." 2019-10-11 10:30:36 +00:00
Tobias Thierer
0cfa891678 Merge "Track MimeMap moving to libcore.content.type." am: 0801b7c222 am: 093c1e4eaa am: b43f746cdc
am: 0935b64e5b

Change-Id: I13997bf4f330d2ceb2d871b291729b4d78569ba2
2019-10-04 06:46:14 -07:00
Tobias Thierer
b43f746cdc Merge "Track MimeMap moving to libcore.content.type." am: 0801b7c222
am: 093c1e4eaa

Change-Id: If2b46820dc9ba3d8ba6b8f542521f3818b0074c9
2019-10-04 06:20:07 -07:00
Tobias Thierer
093c1e4eaa Merge "Track MimeMap moving to libcore.content.type."
am: 0801b7c222

Change-Id: I63889b3eedb8f98c99d71172dc5cc32025a8afd4
2019-10-04 06:07:03 -07:00
Tobias Thierer
8edd837b79 Track MimeMap moving to libcore.content.type.
Another CL in this topic moves libcore.net.MimeMap to package
libcore.content.type. This CL updates associated references.

Bug: 136256059
Bug: 124232146
Test: Treehugger
Test: CtsMimeMapTestCases
Exempt-From-Owner-Approval: move affecting imports only
Change-Id: I30aac8b28a1740180ea01834a2bb66b61cb255d4
2019-10-04 12:52:38 +00:00
Tobias Sargeant
fdebc611b6 [webview] Fix handling of unicode digits in address detection.
Restrict the set of digits recognised to ASCII to avoid throwing a
NumberFormatException

Bug: 141534831
Test: atest CtsWebkitTestCases
Change-Id: Ifc39fef9b8e2b66b3e0a9a6590b5817136cccd2f
2019-09-30 13:29:45 +01:00
Anna Malova
77ff146c82 Merge "[WebView] Minor javadoc fix for WebSettings." into qt-dev am: 63c65616ae am: e4cbd008c0 am: 47e276ed96
am: e2e66d2e31

Change-Id: Ibe951e7aa2fe49dea3cab081b4febe24e1ddb257
2019-09-30 04:42:14 -07:00
Anna Malova
e2e66d2e31 Merge "[WebView] Minor javadoc fix for WebSettings." into qt-dev am: 63c65616ae am: e4cbd008c0
am: 47e276ed96

Change-Id: I639c6d1befa12d6b477e25878040a5fedea6738e
2019-09-30 04:28:45 -07:00
Anna Malova
225c0d2a26 Merge "[WebView] Minor javadoc fix for WebSettings." into qt-dev am: 63c65616ae
am: e4cbd008c0

Change-Id: I69a175d140f2d6cb081e2c4b4eda050b397e8be1
2019-09-30 04:21:51 -07:00
Anna Malova
e4cbd008c0 Merge "[WebView] Minor javadoc fix for WebSettings." into qt-dev
am: 63c65616ae

Change-Id: I3ee0487212dfb139da111e9a7314dc781db66b63
2019-09-30 04:08:44 -07:00
Anna Malova
7374ce19ac [WebView] Minor javadoc fix for WebSettings.
No change to logic.

Test: N/A
Bug:132394762
Change-Id: I957b0d8a03cd937b38611e32f6c012b01a6ad7da
2019-09-25 12:19:27 +01:00
Aurimas Liutikas
4d1699da48 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-29 17:15:44 -07:00
Shimi Zhang
cc7628964c Merge "aw: Correct doc of addJavascriptInterface()" into qt-dev am: 62c764e29b am: d081f1064d am: 0922cc17be
am: 3446691be1

Change-Id: I8d7b836d8582fd63cc5bedfa4c7961f2c6603672
2019-08-27 19:56:22 -07:00
Shimi Zhang
0922cc17be Merge "aw: Correct doc of addJavascriptInterface()" into qt-dev am: 62c764e29b
am: d081f1064d

Change-Id: I2c02ba4da3494dfda62f13e5891a9a24e474abc7
2019-08-27 19:11:46 -07:00
Shimi Zhang
a4604013ae Merge "aw: Correct doc of addJavascriptInterface()" into qt-dev
am: 62c764e29b

Change-Id: Ib1d1aa6262c3571c4c4f284b12dfe1ec5b40e3c8
2019-08-27 18:59:46 -07:00
Shimi Zhang
d081f1064d Merge "aw: Correct doc of addJavascriptInterface()" into qt-dev
am: 62c764e29b

Change-Id: Idaa6942a802f446e664ec3e2c6078258d9d2f8cc
2019-08-27 18:58:42 -07:00
Shimi Zhang
04a454f6a7 aw: Correct doc of addJavascriptInterface()
The Javadoc of addJavascriptInterface() mentioned that the injected
Java object will be injected to main frame, but this is not telling
a full picture. The current implementation will inject the Java
object to all the frames actually.

This CL corrected the misleading wording and add a new warning to
explicitly call it out as a security risk.

Bug: 113336656
Test: make ds-docs
Change-Id: Ia79381d1ab38afa963ea7365526749c14e25238c
2019-08-26 13:36:00 -07:00
Nate Fischer
200e1233f5 Merge "WebView: prettyprint docs" into qt-dev am: 20f2f0b5ea am: 6201d28952 am: e838a0353f
am: 095e1c1328

Change-Id: Ia247d0f5467886faea98d9055899a33daa8fe170
2019-08-19 14:45:51 -07:00
Nate Fischer
095e1c1328 Merge "WebView: prettyprint docs" into qt-dev am: 20f2f0b5ea am: 6201d28952
am: e838a0353f

Change-Id: I7042cc96f8dfd5151e41c4af780c7f420ec6896b
2019-08-19 14:08:07 -07:00
Nate Fischer
38b8fca177 Merge "WebView: prettyprint docs" into qt-dev am: 20f2f0b5ea
am: 6201d28952

Change-Id: I699c12ad87091c94601971ac56bf46966f16e740
2019-08-19 13:43:41 -07:00
Nate Fischer
b4defd6887 Merge "WebView: prettyprint docs" into qt-dev
am: 20f2f0b5ea

Change-Id: I30af1cf394092fa83c376e96f9d174bd456b6026
2019-08-19 13:22:57 -07:00
Nate Fischer
6201d28952 Merge "WebView: prettyprint docs" into qt-dev
am: 20f2f0b5ea

Change-Id: Iad51d33c434a42272c448ba7a807bdcbe6cb51d0
2019-08-19 13:22:49 -07:00
Nate Fischer
06fd060c14 WebView: prettyprint docs
No change to logic, only docs.

Use class=prettyprint so docs are syntax highlighted. This also fixes a
section which should have been an ordered list but abused <pre> instead.

Bug: 125526827
Test: make -j4 docs
Change-Id: Iac780ace066be35620d5121b1977df404eaf18c1
2019-08-13 22:23:10 +00:00
Tao Bai
178721a198 Merge "Update WebSettings.setSaveFormData deprecated doc" into qt-dev am: 7bb64fcf27 am: 22eceae195 am: 01006cc959
am: a53976b3d1

Change-Id: I49fdd449efb0c0bc8d331d27c927f60e3f9380f1
2019-08-01 09:33:03 -07:00
Tao Bai
a53976b3d1 Merge "Update WebSettings.setSaveFormData deprecated doc" into qt-dev am: 7bb64fcf27 am: 22eceae195
am: 01006cc959

Change-Id: I32bb088ca8a3fde9dff17e426db91465507906d8
2019-07-31 19:09:19 -07:00
Tao Bai
daa718b991 Merge "Update WebSettings.setSaveFormData deprecated doc" into qt-dev am: 7bb64fcf27
am: 22eceae195

Change-Id: I8afe18e9b51e59813b2b348666ff678e69eff1e1
2019-07-31 18:59:28 -07:00
Tao Bai
22eceae195 Merge "Update WebSettings.setSaveFormData deprecated doc" into qt-dev
am: 7bb64fcf27

Change-Id: Ife82891152d177e108db79f42fbe768fe8fb905a
2019-07-31 18:48:23 -07:00
Tao Bai
d232d92a45 Merge "Update WebSettings.setSaveFormData deprecated doc" into qt-dev
am: 7bb64fcf27

Change-Id: Ibe4a8108d0a1b678c3b51d683b1c1dcaeead5fa0
2019-07-31 18:45:37 -07:00
Tao Bai
990f9a9fda Update WebSettings.setSaveFormData deprecated doc
Bug:69150750
Test: passed sdk build.
Change-Id: Ia33ef5eda9956bf60dabc51a592ff6e9ec697b4a
2019-07-09 21:07:28 +00:00
Torne (Richard Coles)
a759af55a4 Merge "Clarify problems with Linkify.MAP_ADDRESSES." into qt-dev am: a0d66cf3f6 am: 0f0173f9e1
am: c2ed59a2da

Change-Id: Ibc2165020ad583db1c4488e68f8d688e9d7a8fe5
2019-06-06 11:13:16 -07:00
Torne (Richard Coles)
c2ed59a2da Merge "Clarify problems with Linkify.MAP_ADDRESSES." into qt-dev am: a0d66cf3f6
am: 0f0173f9e1

Change-Id: Ib8f8c29444f9cf6e1c4de4c15d3a0b4d12632556
2019-06-06 11:02:29 -07:00
Torne (Richard Coles)
0f0173f9e1 Merge "Clarify problems with Linkify.MAP_ADDRESSES." into qt-dev
am: a0d66cf3f6

Change-Id: I10e7f3f8d14d15e3dbc5fd6f97bafc7442c91bb4
2019-06-06 10:59:15 -07:00
Torne (Richard Coles)
a50d608b89 Merge "Clarify problems with Linkify.MAP_ADDRESSES." into qt-dev
am: a0d66cf3f6

Change-Id: I264a589322b87b09a5d250f1a7e71b7f1795f3dd
2019-06-06 10:59:10 -07:00
Torne (Richard Coles)
aa68ab8288 Clarify problems with Linkify.MAP_ADDRESSES.
Update the documentation for WebView.findAddress, as well as the related
functionality in Linkify and TextView, to clarify why the method is
deprecated, why it should not be used, and that it can cause unexpected
exceptions to be thrown from several places on older OS versions.

Fixes: 24676033
Test: m offline-sdk-docs
Change-Id: I45d82b9a4c9cf62d9566898dd21cd2139ad98f37
2019-06-04 14:14:05 -04:00
Felipe Leme
3fe70c6af0 DO NOT MERGE - Re-add ContentCapture support from standard SDK toolkit.
am: 911cb1fa76

Change-Id: I15c8da47beb6b4dd64b627aebb0288fcb359c3e5
2019-05-22 16:00:20 -07:00
Felipe Leme
d72176296d Revert "Temporarily hide some APIs."
This reverts commit 4e574efe28.

Test: m update-api ds-docs
Test: atest CtsContentCaptureServiceTestCases

Fixes: 130726495
Change-Id: I65e04d454afe552a34fa15ca8ce30f33db566770
2019-05-17 08:25:08 -07:00
Felipe Leme
911cb1fa76 DO NOT MERGE - Re-add ContentCapture support from standard SDK toolkit.
This reverts commit ef1c0b36ab.

Test: atest CtsContentCaptureServiceTestCases
Test: m update-api

Bug: 130726495

Change-Id: Iecda9df96722ac8a3184710796032b6c01bd8ea3
2019-05-16 16:05:51 -07:00
Torne (Richard Coles)
b8a473d462 Merge "Increase 32-bit WebView VA reservation." into qt-dev am: c7c7f9ecd7
am: e5b1bc3f5f

Change-Id: I4e7f0e29b9bfe3bd14f54f1f65b7019dd1e43702
2019-05-08 09:32:37 -07:00
Torne (Richard Coles)
e5b1bc3f5f Merge "Increase 32-bit WebView VA reservation." into qt-dev
am: c7c7f9ecd7

Change-Id: I82628f43fe6e3f8d520424536d0b1918760e08e2
2019-05-08 09:15:49 -07:00
Torne (Richard Coles)
4d72998fda Increase 32-bit WebView VA reservation.
Most pre-Q devices actually reserved around 130MiB in the 32-bit zygote
for the WebView native library; 100MiB was only the lower limit and the
file size based calculation that older OS versions use would come up
with a larger number. Increase the hardcoded value for Q to 130MiB so
that the behaviour is roughly the same across OS versions.

Fixes: 132081320
Test: manually verified via inspection of process maps
Change-Id: I0f03ac2f118bb0627ea6be229e5064d4590d8afb
2019-05-06 16:24:54 -04:00
Tobias Thierer
55ef631763 Merge "Inline calls to MimeUtils." am: 304132e995 am: d0457b20a2
am: e327e85014

Change-Id: If4af2b2689ac6cf2114ec20f9565b27ab0b47d1c
2019-05-02 07:21:26 -07:00
Tobias Thierer
e327e85014 Merge "Inline calls to MimeUtils." am: 304132e995
am: d0457b20a2

Change-Id: I6d8db5100e1fdbf1242ef8f48108cb73eae5b434
2019-05-02 07:10:16 -07:00
Tobias Thierer
d0457b20a2 Merge "Inline calls to MimeUtils."
am: 304132e995

Change-Id: Id40e722a539fd5212abac6ff1ed76e6ff0a6bff9
2019-05-02 06:58:38 -07:00
Tobias Thierer
bfa552c918 Inline calls to MimeUtils.
A separate CL in this topic adds MimeMap to the @CorePlatformApi and
deletes MimeUtils. This CL inlines calls to MimeUtils to call MimeMap
instead.

Bug: 120171727
Test: Treehugger
Change-Id: Ibad1e62a63342fa7527332d2b156b69517956364
2019-04-26 15:27:31 +01:00
Felipe Leme
4e574efe28 Temporarily hide some APIs.
Test: m update-api ds-docs
Test: atest CtsContentCaptureServiceTestCases

Bug: 130726495

Change-Id: I3b74c1370f6b6b102e440b65c4cdf6f225296856
2019-04-19 15:41:34 -07:00
Felipe Leme
ef1c0b36ab DO NOT MERGE - Removed ContentCapture support from standard SDK toolkit.
Test: atest CtsContentCaptureServiceTestCases
Test: m update-api
Test: make ds-docs

Fixes: 129982633

Change-Id: I5a0fa4231d0222638830c1abd8015d9f2635996a
2019-04-15 09:36:25 -07:00
Torne (Richard Coles)
05a766e876 Wait for RELRO before starting WebViewZygote at boot.
We start WebViewZygote at boot time to ensure the first app to use
WebView doesn't have to wait, but we were not waiting for RELRO creation
to finish before doing so. Move the background task which starts the
zygote to WebViewUpdateServiceImpl and have it wait for the RELRO first
to ensure that we get the memory saving of RELRO sharing whenever
possible, instead of only when the timing happens to work out by chance.

Fixes: 130305037
Test: manual, check logs and relro sharing status after boot
Change-Id: I55c3f80b0db1dc82727b90c70f777618ca77a942
2019-04-10 17:59:52 -04:00