Commit Graph

173 Commits

Author SHA1 Message Date
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