Commit Graph

410 Commits

Author SHA1 Message Date
Christian Sadilek
dc56439e36 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1328: Provide GeckoView based implementation of concept-fetch 2019-02-11 15:44:18 -05:00
Arturo Mejia
cefd0d0c0f [components] Closes https://github.com/mozilla-mobile/android-components/issues/1949: Adding feature-sitepermissions component 2019-02-11 15:32:52 -05:00
Jonathan Almeida
fd64ed97ae [components] Re-enable SearchEngineManagerTest that intermittently failed 2019-02-11 14:03:52 -05:00
Jonathan Almeida
d6d14f0e17 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1876: Tint all icon resources in custom tab 2019-02-11 12:48:04 -05:00
Arturo Mejia
b84ab929c5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1472: Adding support for JavaScript confirm dialogs. 2019-02-11 10:39:19 -05:00
Grisha Kruglov
8260324a9b [components] Perform browser-toolbar autocompletion off the UI thread
At this point in the stack, we're not in control over what our
autocomplete providers are, what actions they'll do in order to
field our queries, etc. For example, some providers may hit the disk
and perform expensive DB queries internally. Some may even hit the
network, in theory!

In order to keep things perceptively speedy, let's run the actual work
off the main thread. This patch sets up a new pool thread to process
autocomplete requests. More than one thread is selected so that we maintain
liveliness during quick user input. Background tasks are cancelled as new
queries come in, and stale results are discarded.
2019-02-08 12:22:13 -08:00
Dmitry Borodin
640b16f232 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1028: Add x86 servo build variant 2019-02-07 13:47:21 +01:00
Arturo Mejia
a3bf4c2287 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1815: Adding support for JavaScript prompts on SystemEngineView. 2019-02-06 13:33:24 -05:00
Christian Sadilek
53e150a617 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1947: Add test to ensure tracker categories are aligned w/ GV 2019-02-05 09:09:15 +01:00
Christian Sadilek
1f554cafe5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1944: Remove unneeded default arg of initWebView 2019-02-04 18:29:13 -05:00
Sebastian Kaspari
6f8df584a2 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1915: Memory leak caused by long-lived WebView instance
Co-authored-by: Sebastian Kaspari <s.kaspari@googlemail.com>
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>

- The WebView instance is long-lived, as it's referenced in
SystemEngineSession, and we want to be able to keep engine
sessions around for the lifespan of the application.

- The WebView instance is created by the engine and using its
context (the application context).

- The EngineView, rendering engine sessions and WebViews,
is created using an activity context.

- The problem was that when the activity and EngineView were
destroyed, the WebView was not being detached and still
referenced the parent which referenced the activity context,
which would then not get gc'ed.

- We now detach the WebView when the EngineView is destroyed
and only destroy the WebView when the session is closed.

- This will allow re-using of engine sessions and their
WebViews in different activities and allow for proper
destruction.
2019-02-04 18:29:13 -05:00
Christian Sadilek
164233fd04 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1941: Update GV nightly to 67.0.20190204092937 2019-02-04 17:26:40 -05:00
Jonathan Almeida
e317d3d95d [components] Closes https://github.com/mozilla-mobile/android-components/issues/1840: Add menu color attributes 2019-02-04 13:55:22 -05:00
Jonathan Almeida
0730f923c5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1840: Add toolbar security icon color attributes 2019-02-04 13:55:22 -05:00
Grisha Kruglov
ef6d457d76 [components] Use new matchUrl PlacesAPI function for autocompletion queries 2019-02-01 15:34:43 -08:00
Eitan Isaacson
8222fdae4a [components] Have top of geckoview "stick" to toolbar in nested scroll 2019-02-01 17:42:21 -05:00
Sebastian Kaspari
88c3b6919c [components] Closes https://github.com/mozilla-mobile/android-components/issues/1881: Add additional test case for "urlBoxView" measure and layout. 2019-02-01 13:01:28 -05:00
Jonathan Almeida
29dcfbff61 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1913: Make text in BrowserMenuImageText unclickable 2019-02-01 04:13:26 -05:00
Sebastian Kaspari
a55e705604 [components] AutoSave: Save state after removing all sessions.
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2019-01-31 13:33:39 -05:00
Sebastian Kaspari
0016e2d26e [components] Closes #https://github.com/mozilla-mobile/android-components/issues/1881: DisplayLayout: Correctly calculate URL width. 2019-01-31 11:19:58 -05:00
Sebastian Kaspari
7bca84a123 [components] (Merge day) browser-engine-gecko-nightly -> 67. 2019-01-30 15:20:42 +01:00
Sebastian Kaspari
c96e003d11 [components] (Merge day) browser-engine-gecko-nightly (66) -> browser-engine-gecko-beta (66). 2019-01-30 15:20:42 +01:00
Sebastian Kaspari
1650a04cb8 [components] (Merge day) browser-engine-gecko-beta (65) -> browser-engine-gecko-release (65). 2019-01-30 15:20:42 +01:00
Jonathan Almeida
ae236346ec [components] Closes https://github.com/mozilla-mobile/android-components/issues/1885: Add workaround for Custom Tabs Jetifier bug 2019-01-29 12:32:17 -05:00
Arturo Mejia
640327f0f3 [components] Making activeMatchOrdinal zero based in GeckoEngineSession 2019-01-28 20:41:56 -05:00
Sebastian Kaspari
b337480cd0 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1543: BrowserAwesomeBar: Allow consumers to specific a SuggestionTransformer to modify suggestions returned by a provider. 2019-01-28 14:36:29 -05:00
Sebastian Kaspari
482f6380cb [components] Issue https://github.com/mozilla-mobile/android-components/issues/1543: BrowserAwesomeBar: Allow consumer to control layouting of suggestions by providing SuggestionLayout implementation. 2019-01-28 14:36:29 -05:00
Christian Sadilek
c369af6e2a [components] Issue https://github.com/mozilla-mobile/android-components/issues/1865: Fixes to upgrade to Kotlin 1.3.20 2019-01-28 18:41:13 +01:00
Arturo Mejia
a4995857f4 [components] Closes https://github.com/mozilla-mobile/android-components/pull/448 R-B:Not allowing text behind the security icon be selectable 2019-01-28 16:33:52 +01:00
Arturo Mejia
b12ceb3930 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1816: Disable not implemented js prompts in SystemEngine. 2019-01-24 12:17:39 +01:00
Sebastian Kaspari
2fde89082c [components] Issue https://github.com/mozilla-mobile/android-components/issues/1779: SearchSuggestionProvider: Add option to show one item per search suggestion. 2019-01-24 12:09:41 +01:00
Arturo Mejia
dadac1d1b0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1473: Adding support for pop-up dialog when opening a new window
for GeckoEngine.
2019-01-23 20:24:44 -05:00
Jonathan Almeida
5482f932d1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1398: Add menu items to Custom Tab Toolbar 2019-01-22 20:27:11 -05:00
Jonathan Almeida
371ef7d6a2 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1401: Add default share menu for CustomTabs 2019-01-22 11:05:11 -05:00
Arturo Mejia
ceaa77c0a7 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1771:Adding support for single choice items with sub-menus group 2019-01-21 13:02:05 -05:00
Jonathan Almeida
aa9c4b389b [components] Closes https://github.com/mozilla-mobile/android-components/issues/1724: Use pixel density to get accurate icon size 2019-01-21 10:27:38 -05:00
Jonathan Almeida
0e83a6cf41 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1400: Handle back button presses 2019-01-21 10:27:38 -05:00
Jonathan Almeida
8b44f50eb0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1400: Add close button to custom tabs
Also makes the toolbar unclickable so it can't be switching into
edit mode, and removes all other actions.

Moved the custom tab back button bitmap checking to the feature from the
CustomTabConfig since we needed to know the DisplayMetrics for the
current screen to properly compare it to the max dp value.
2019-01-21 10:27:38 -05:00
Sebastian Kaspari
89b012ef0f [components] Issue https://github.com/mozilla-mobile/android-components/issues/1744:: BrowserMenu.determineMenuOrientation(): Wrap bit masking. 2019-01-18 19:05:51 +01:00
Arturo Mejia
d9b55396d7 [components] Adding sample code for menu customization to Sample Toolbar app. 2019-01-18 11:35:16 -05:00
Arturo Mejia
4eda4eb706 [components] Refactoring all common text styles in browser text menus into a Style. 2019-01-18 11:35:16 -05:00
Arturo Mejia
02123b559d [components] Closes https://github.com/mozilla-mobile/android-components/issues/1544: Added support for image and text in browser menus. 2019-01-18 11:35:16 -05:00
Sebastian Kaspari
f9b741819b [components] Closes https://github.com/mozilla-mobile/android-components/issues/1744: Support "UP" and "DOWN" orientations in browser-menu (supporting bottom toolbars). 2019-01-18 17:07:50 +01:00
Arturo Mejia
bdb2cdbf59 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1545 - Add support for menu dividers. 2019-01-17 10:29:56 +01:00
Sebastian Kaspari
44296da77d [components] Issue https://github.com/mozilla-mobile/android-components/issues/1604: Add BrowserToolbarBottomBehavior to be used when placing a BrowserToolbar at the bottom of a CoordinatorLayout. 2019-01-17 10:29:16 +01:00
Christian Sadilek
3d2ba10d9e [components] Closes https://github.com/mozilla-mobile/android-components/issues/1714: Support enabling tracking protection for session type 2019-01-16 13:26:32 -05:00
Arturo Mejia
6f7550cbb0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1712: Added docs for customizing BrowserMenu. 2019-01-16 12:10:55 -05:00
Arturo Mejia
d65452df54 [components] Refactoring PromptsFeature 2019-01-16 10:32:29 -05:00
Arturo Mejia
136cfacf1c [components] Closes https://github.com/mozilla-mobile/android-components/issues/1471: Add support for text prompts dialogs. 2019-01-16 10:32:29 -05:00
Sebastian Kaspari
1a971da296 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1681 - Add ClipboardSuggestionProvider for providing URL suggestions from clipboard. 2019-01-15 18:52:17 +01:00