Commit graph

246 commits

Author SHA1 Message Date
Mozilla L10n Automation Bot
177b318814 [components] Import l10n. 2020-03-04 00:03:47 +00:00
Simon Chae
100239143b [components] Closes https://github.com/mozilla-mobile/android-components/issues/6018: Do not load url during link if session is restored 2020-03-02 14:28:48 -05:00
Mozilla L10n Automation Bot
64d8390123 [components] Import l10n. 2020-02-24 00:04:07 +00:00
Mozilla L10n Automation Bot
d9d2a27483 [components] Import l10n. 2020-02-21 00:04:28 +00:00
Severin Rudie
5b868c9ca0 [components] For https://github.com/mozilla-mobile/fenix/issues/5695: adds '{app} Search' to text selection context menu 2020-02-14 08:40:46 -08:00
Mozilla L10n Automation Bot
8d4b0c5d27 [components] Import l10n. 2020-02-07 00:05:20 +00:00
Mozilla L10n Automation Bot
8bf1ef2fa8 [components] Import l10n. 2020-01-22 00:04:26 +00:00
Sawyer Blatz
f0f6d47247 [components] For https://github.com/mozilla-mobile/android-components/issues/2689: Refactors Error Pages to allow images
Co-authored-by: James Willcox <snorp@snorp.net>
Co-authored-by: Agi Sferro <agi@sferro.dev>
2020-01-21 11:18:14 -08:00
Mozilla L10n Automation Bot
437b0e4885 [components] Import l10n. 2020-01-20 00:03:35 +00:00
Mozilla L10n Automation Bot
6ef542faa4 [components] Import l10n. 2020-01-15 00:07:29 +00:00
Mozilla L10n Automation Bot
8872798070 [components] Import l10n. 2020-01-09 00:01:43 +00:00
Mozilla L10n Automation Bot
ac58483f3b [components] Import l10n. 2020-01-07 00:02:02 +00:00
Mozilla L10n Automation Bot
2c4948084b [components] Import l10n. 2020-01-06 00:03:46 +00:00
Mozilla L10n Automation Bot
fdee5b8b3e [components] Import l10n. 2020-01-03 00:06:56 +00:00
Mozilla L10n Automation Bot
d591b6bfc8 [components] Import l10n. 2019-12-27 00:08:43 +00:00
Roger Yang
7aca9473f1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5243: Split AppLinksFeature into feature and interceptor 2019-12-17 15:57:16 -05:00
Mozilla L10n Automation Bot
933e9d5f97 [components] Import l10n. 2019-12-17 18:39:45 +00:00
Gabriel Luong
5a7f12c152 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4240 - Clear the selection on back press
- Adds a reference to the current session's BasicSelectionActionDelegate in GeckoEngineView
2019-12-13 20:39:11 -05:00
Roger Yang
60e1084ff7 [components] For https://github.com/mozilla-mobile/android-components/issues/5127: Add Debugging Code to Help Determine Crash Cause 2019-11-29 14:52:48 -05:00
Sawyer Blatz
191d379ff9 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/5046: Updates guessFileName to use uniqueFileName 2019-11-22 11:40:29 -08:00
MozLando
d09d5c0e09 [components] Merge https://github.com/mozilla-mobile/android-components/pull/5066
5066: Add setDynamicToolbarMaxHeight API r=pocmo a=hiikezoe



Co-authored-by: Hiroyuki Ikezoe <hiroyuki.ikezoe@gmail.com>
2019-11-20 10:00:39 +00:00
Roger Yang
ac7d92a5f9 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4950: Enable Launching URL in Third Party Application 2019-11-16 22:12:58 -05:00
Hiroyuki Ikezoe
97f3a75121 [components] Add setDynamicToolbarMaxHeight API 2019-11-15 07:31:54 +09:00
Christian Sadilek
8777fc0c62 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4553: Migrate WindowFeature to browser-state 2019-10-31 15:31:50 -04:00
Christian Sadilek
a5cc73dd18 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4749: Fix for bug 1522829 2019-10-17 18:44:40 -04:00
Lina Cambridge
c64f248f76 [components] Pass redirect source and target flags to history tracking delegates.
There's some confusion in `GeckoEngineSession` about redirect flags.
The `VISIT_REDIRECT_SOURCE` and `VISIT_REDIRECT_SOURCE_PERMANENT` flags
that we get from GeckoView's history delegate are for the redirect
_source_, not the visit type. They indicate if the URL passed to
`onVisited` is redirecting _to_ another URL, most likely because the
server returned an HTTP 3xy status code with a `Location` header.
Rust Places decides whether to mark the URL as hidden based on
these flags.

`VISIT_REDIRECT_{PERMANENT, TEMPORARY}`, however, indicate if the
URL passed to `onVisited` is the _target_ of a redirect (in other
words, the page that's _in_ the `Location` header). These get
translated into `VisitType` flags, which Rust Places stores as the
visit transition type. These two flags don't affect whether a URL
is hidden.

Note that, in a redirect chain, the middle links are both sources and
targets. For example, in "mozilla.org" -> "www.mozilla.org" ->
"www.mozilla.org/en-US", "www.mozilla.org" is both a redirect target
(since "mozilla.org" redirected to it), and a source (it redirected
to "www.mozilla.org/en-US").

See https://github.com/mozilla-mobile/fenix/issues/3526.
2019-10-11 21:41:40 -07:00
Axel Hecht
600937dc4a [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@97355ffcdc
2019-09-25 13:58:27 +02:00
Denys M
b95c932f81 [components] For https://github.com/mozilla-mobile/android-components/issues/4460. Fix detekt warning about license in project files. 2019-09-24 01:01:03 +04:00
Daniela Arcese
b3d5a23ee8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1388: Update tracking protection lists
domain_blacklist.json commit(shavar-prod-lists)
ba54e81585a68ec7662629b69e7ebd805f0bda78

domain_whitelist.json commit(shavar-prod-lists)
ba54e81585a68ec7662629b69e7ebd805f0bda78
2019-09-17 08:41:09 -04:00
Axel Hecht
1b48aa9e31 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@e78d5868c7
2019-09-13 14:42:51 +02:00
Arturo Mejia
f90f380cbc [components] Closes https://github.com/mozilla-mobile/android-components/issues/4349: Align default tracking protection policies with
Firefox Desktop policies.
2019-09-10 01:45:14 -04:00
Arturo Mejia
6e7ef89243 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4190: Decouple safe browsing api from the tracking protection. 2019-08-26 21:44:53 -04:00
Arturo Mejia
a618ea15ec [components] Closes https://github.com/mozilla-mobile/android-components/issues/4191: Fixed the recommended() tracking category on SystemEngine 2019-08-24 02:16:25 -04:00
Axel Hecht
a893d1f5e7 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@90a28fd458
2019-08-23 12:33:53 +02:00
Arturo Mejia
044628b17d [components] Closes https://github.com/mozilla-mobile/android-components/issues/4098, https://github.com/mozilla-mobile/android-components/issues/4110: Exposing new categories of content blocking. 2019-08-14 12:28:25 -04:00
Arturo Mejia
b14d8b5bd2 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4079: Manually updating GeckoView nightly 70.0.20190809095611. 2019-08-13 00:12:32 -04:00
Axel Hecht
222835e01b [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@ab580f757c
2019-08-12 12:45:49 +02:00
Christian Sadilek
ce24bae766 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1503: Add support for window requests to engine-gecko 2019-07-30 13:49:51 -04:00
Axel Hecht
e9e8e4a440 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@1412258878
2019-07-30 15:09:47 +02:00
Tiger Oakes
708e1dd908 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/3516 - Use response to determine file name 2019-07-19 14:09:49 -04:00
Arturo Mejia
773f9e92a2 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3788: Expose to which category a blocked tracker belongs. 2019-07-19 08:31:31 -07:00
Axel Hecht
96447ce446 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@e521a2aab2
2019-07-17 17:37:25 +02:00
Tiger Oakes
0099bac510 [components] Turn on MagicNumber ignoreEnums rule 2019-07-15 11:41:43 -04:00
Simon Chae
46cb134dd8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3666: Add useWideView=false desktopMode test case 2019-07-12 13:57:26 -04:00
Simon Chae
27cc28bd6c [components] Issue https://github.com/mozilla-mobile/android-components/issues/3666: Set desktopMode toggle against settings.useWideViewPort
For toggleDesktopMode()
2019-07-12 13:57:26 -04:00
Simon Chae
d0e8cbc06e [components] Issue https://github.com/mozilla-mobile/android-components/issues/3666: Make Settings.useWideViewPort nullable 2019-07-12 13:57:26 -04:00
Simon Chae
f0e777c486 [components] Issue https://github.com/mozilla-mobile/android-components/issues/3666: Apply useWideViewPort to WebSetting 2019-07-12 13:57:26 -04:00
Simon Chae
03fe096b30 [components] Issue https://github.com/mozilla-mobile/android-components/issues/3666: Add useWideViewPort setting and SystemEngineSession 2019-07-12 13:57:26 -04:00
Tiger Oakes
967bc87a29 [components] Replace String.toUri with Android KTX 2019-07-08 14:25:18 -04:00
Tiger Oakes
241c0462c7 [components] Fixes https://github.com/mozilla-mobile/android-components/pull/2587 - Show camera inside file prompt 2019-07-08 10:28:23 -04:00
Sebastian Kaspari
18af01ecbe [components] Issue https://github.com/mozilla-mobile/android-components/pull/3602: Add EngineView.release() for manually releasing session from view. 2019-07-03 14:44:40 +02:00
Tiger Oakes
d97e53bc16 [components] Reduce refs to Context in browser-engine-system 2019-07-02 16:19:31 -04:00
Christian Sadilek
8e73284828 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3521: Expose GeckoView load flags for loadUrl calls 2019-07-01 13:54:56 +02:00
Tiger Oakes
b248451666 [components] Issue https://github.com/mozilla-mobile/android-components/issues/3481 - Fix null checks before Android Q 2019-06-25 10:38:03 +02:00
Axel Hecht
0483091029 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@4c73402212
2019-06-24 07:39:01 -07:00
Sebastian Kaspari
d9cd74ad98 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2349: concept-engine: Add "version" property to Engine. 2019-06-14 14:30:07 +02:00
Denys M
1f8fc3fa5b [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Enable unit test binary resources globally.
Excluded few modules.
2019-06-13 09:29:52 +02:00
Denys M
eeab8c137e [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Use androidx runner in browser-engine-system. 2019-06-12 15:19:42 +02:00
James Hugman
8768f56b97 [components] Fix https://github.com/mozilla-mobile/android-components/issues/3293 Feed request URL to session observer from different engines
This allows the slack:// (and other custom schemes).
2019-06-07 18:15:13 +01:00
Tiger Oakes
e7fdd7b70d [components] Turn on ComplexMethod ignore when expression lint 2019-06-07 10:18:31 +02:00
Denis Buzmakov
9f4c8b9e01 [components] Closes https://github.com/mozilla-mobile/android-components/issues/888: Use PixelCopy API on Oreo+ 2019-05-30 14:40:31 -07:00
Denis Buzmakov
0f6aa54106 [components] Closes https://github.com/mozilla-mobile/android-components/issues/888: Draw View on canvas instead of using drawing cache 2019-05-30 14:40:31 -07:00
James Hugman
6a99c552f1 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/2976 Introduce feature-app-links
This includes UI in private tabs.

Squashed commits:
[180e515e8] Connect to Session Observer and thence to AppLinksFeature.
[77922dcc0] browser-engine-system tests passing
[045717868] lint etc
[6f7b44cad] Thread another Boolean through EngineObserver -> Session onLoadRequest
[18693cad0] Start testing the feature.
[5e0a93556] Fixup tests to use shadow package manager, and catch some new bugs.
[3a5976dde] Split use cases up for menu and intercepting cases.
[f7eae96dd] Address reviewer comments re: dead code and docs
[b15ffb88c] Rename triggeredByUserInteraction to loadRequestTriggeredByUserInteraction
[edc49b573] Move session observer into member of feature
[91ed1f5ac] Add changelog entry
[098dc5067] Add boolean flag to prevent interception of links
[f92731a44] Add load request/trigger by user interaction to session.observer
[46385577d] Move opening to another use case, with test
[56da7e7c1] Change into using feature
[643c9f453] Remove duplicate copyright
[6b3f80bbc] Add testing of get and a fragment for open use cases
[669c84567] Add AppLinksRedirectConfig and supporting use cases.

There is a url redirect creation use case, a load URL use case and an interceptor.
[72896a567] AppLinksUseCases detects if a URL can be opened with another non-browser app
[939eb62fa] Initial commit of empty feature-app-links
2019-05-30 16:36:16 +01:00
Tiger Oakes
c9500fd185 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1824 - Pull to Refresh 2019-05-29 13:04:55 -07:00
Christian Sadilek
04de05e949 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1798: Add clear data functionality to Gecko engine 2019-05-29 09:10:00 -04:00
Axel Hecht
a0bfba5cab [components] Import strings from android-l10n
Status: mozilla-l10n/android-l10n@edd6b0e79f
2019-05-21 10:18:16 -04:00
Denys M
82c19e96c7 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1628. Hide built-in WebView zoom controls in engine-system. 2019-05-16 14:31:48 -04:00
Sebastian Kaspari
8bd0491d94 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2675: Add EngineViewBottomBehavior to dynamically update vertical clipping when toolbar scrolls away.
This patch fixes issues with bottom-aligned web content that is drawn behind the toolbar, as described in:
- https://github.com/mozilla-mobile/fenix/issues/552
- https://github.com/mozilla-mobile/reference-browser/issues/464
2019-05-13 18:01:53 -04:00
Axel Hecht
646f870c78 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@4e63500774
2019-05-13 16:26:09 -04:00
Axel Hecht
f97de4a835 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@5fd2e49ca4
2019-05-08 08:49:54 -04:00
Stas Parshin
86325367a9 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1740: Add support for authentication alerts for SystemEngineView. 2019-05-07 09:08:05 -04:00
Axel Hecht
367c8dded3 [components] Import strings from android-l10n
Status: mozilla-l10n/android-l10n@68b2689e48
2019-05-06 10:15:22 -04:00
Sebastian Kaspari
5c54ec453d [components] Closes https://github.com/mozilla-mobile/android-components/issues/842: Migrate from support libraries to AndroidX. 2019-05-02 16:08:55 +02:00
Grisha Kruglov
66d17ffe07 [components] Update and expand Engine(Session) tests 2019-04-30 13:38:33 -07:00
Grisha Kruglov
b898bb7ef3 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2862: Make VisitType a requirement for HistoryTrackingDelegate's onVisited method
This shifts responsibility of constructing a VisitType for any given visit on the
caller of HistoryTrackingDelegate implementation, which is normally the engine.

This is generally what we want: engine is normally best suited to determine a visit type
for a URI that's currently being opened.
2019-04-30 13:38:33 -07:00
Grisha Kruglov
1afe4410dd [components] Closes https://github.com/mozilla-mobile/android-components/issues/2606: Blacklist URI schemas in the HistoryDelegate 2019-04-30 13:38:33 -07:00
Sebastian Kaspari
f4e9c9cf08 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2428: Update strings after L10N review. 2019-04-22 16:05:32 -04:00
Sebastian Kaspari
feffcaa2b1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2771: Only clear Session.searchTerms after request initiated by the user. 2019-04-22 11:28:43 -04:00
Axel Hecht
1932da6b13 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@3d40a22318
2019-04-16 19:10:28 +02:00
Sebastian Kaspari
a46127d2cc [components] Update ktlint to 0.31.0. 2019-04-15 12:30:52 -04:00
Axel Hecht
b2feda5856 [components] Import strings from android-l10n
Status: mozilla-l10n/android-l10n@55d144eb8e
2019-04-15 10:39:54 +02:00
Axel Hecht
bc83b84756 [components] Import l10n from android-l10n
State: mozilla-l10n/android-l10n@932938a1ca
2019-04-05 10:44:34 +02:00
Axel Hecht
5ba3493451 [components] Import l10n from android-l10n
State: mozilla-l10n/android-l10n@7724298c8c
2019-04-04 10:56:14 +02:00
Sebastian Kaspari
a1aa6eb4b3 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2571: Add option to recover from crashed sessions. 2019-04-01 20:12:25 +02:00
Stas Parshin
77447f27a2 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2346: Fix Kotlin compiler warnings in browser-engine-system. 2019-03-25 13:14:55 +01:00
Axel Hecht
5c24536313 [components] Import localizations from mozilla-l10n/android-l10n 2019-03-22 16:06:44 +01:00
Arturo Mejia
65c64cc989 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1382: Add implementation for capture thumbnail of websites
on GeckoEngineView.
2019-03-13 10:33:47 -04:00
Arturo Mejia
509556dee9 [components] Moving captureThumbnail from EngineSession to EngineView. 2019-03-13 10:33:47 -04:00
Simon Chae
5ed63f3cb8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2210: Allow setting custom webview instance 2019-02-27 16:58:29 -05:00
Sebastian Kaspari
c5c482eb26 [components] Update Robolectric to 4.2. 2019-02-20 19:20:42 -05:00
Arturo Mejia
c9b6d63781 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1814: Adding support for onJsConfirm dialogs in SystemEngine 2019-02-15 13:16:48 +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
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
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
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
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
d65452df54 [components] Refactoring PromptsFeature 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
Mitchell Hentges
8fd19cdf3a [components] Moves description to be part of project.ext 2019-01-11 10:08:32 +01:00