Commit Graph

146 Commits

Author SHA1 Message Date
Christian Sadilek
c59be790ad [components] Closes https://github.com/mozilla-mobile/android-components/issues/4682: Add support for browser.tabs.remove 2019-11-05 13:04:30 -05: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
Arturo Mejia
dbba062375 [components] Close issue https://github.com/mozilla-mobile/android-components/issues/4876: Fix tracking protection not working properly on
gecko-beta and gecko-stable.
2019-10-29 11:50:44 -04:00
Arturo Mejia
1907b7b929 [components] For issue https://github.com/mozilla-mobile/android-components/issues/4839: Update tracking protection policies. 2019-10-26 10:48:57 -04:00
Arturo Mejia
a1571c8c9c [components] Issue https://github.com/mozilla-mobile/android-components/issues/4781: (Merge day) browser-engine-gecko-beta (70) ->
browser-engine-gecko (70)
2019-10-24 14:51:52 -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
Christian Sadilek
115a665afc [components] Closes https://github.com/mozilla-mobile/android-components/issues/4681: Support observing engine state changes for web extensions 2019-10-09 16:57:40 -04: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
Christian Sadilek
40088163c6 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4297: Make web extension feature logic reusable 2019-09-18 16:05:48 -04: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
Mihai Adrian
ce30121287 [components] Merge branch 'master' into 1444 2019-09-05 18:55:27 +03:00
Sebastian Kaspari
d31f9dfaa5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4280: Use universal GeckoView build in browser-engine-gecko. 2019-09-04 15:42:12 +02:00
Sebastian Kaspari
d64c979432 [components] Issue https://github.com/mozilla-mobile/android-components/issues/4278: (Merge day) browser-engine-gecko-beta (69) -> browser-engine-gecko-release (69) 2019-09-03 19:22:10 +02: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
mihai-adrian
57df66a628 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/4118 added String function for conversion to date for
minDateString and maxDateString of unknown date formats.
2019-08-22 21:14:14 -04:00
Sebastian Kaspari
87d86f5cef [components] Closes https://github.com/mozilla-mobile/android-components/issues/4116: Introduce simplified media state derived from playbackState. 2019-08-21 19:56:21 +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
mihai-adrian
0ae03bc87c [components] fixes https://github.com/mozilla-mobile/android-components/issues/1444 exposed title in HitResult.
added title in class Image & added title param in all usages. made it optional, with default null value, to keep WebView-based implementation of EngineView unchanged (SystemEngineView.kt)
added title param in handleLongClick from 'element.title', as it is exposed by element information from gecko
in ContextMenuCandidate added case for IMAGE. returning src string when title is null, blank or starting with http
2019-08-14 18:34:23 +03:00
Sebastian Kaspari
f3686a4933 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2454: Expose "duration" of media. 2019-08-12 11:06:33 +02:00
Tiger Oakes
5377ef2f1a [components] Closes https://github.com/mozilla-mobile/android-components/issues/4004 - Increase limit for LongMethod rule 2019-08-02 13:34:17 -04:00
Sebastian Kaspari
65eb041b7f [components] Closes https://github.com/mozilla-mobile/android-components/issues/3310: browser-engine-gecko-nightly: Automatically recover and restore if content process is killed. 2019-07-23 18:06:08 +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
Sebastian Kaspari
e435a2f994 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3738: Depend on "fat" GeckoView build from browser-engine-gecko-beta. 2019-07-15 12:12:10 +02:00
Arturo Mejia
c9e335fe22 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3743: Adding TrackingProtectionPolicy.CookiePolicy 2019-07-12 12:09:02 -04:00
Sebastian Kaspari
01e39db4d9 [components] Issue https://github.com/mozilla-mobile/android-components/issues/3616: (Merge day) browser-engine-gecko-beta (68) -> browser-engine-gecko-release (68) 2019-07-12 09:31:29 +02: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
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
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
2c2b976ad0 [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Use androidx runner in browser-engine-gecko. 2019-06-11 15:12:21 +02:00
James Hugman
fc5877991a [components] Closes https://github.com/mozilla-mobile/android-components/issues/3217 Add extra reset of requestFromWebContent flag so app-links detection is less sensitive. 2019-06-04 15:57:42 +01:00
James Hugman
e42ec7e563 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/3205 - Track whether or not a loadRequest comes from web content. 2019-05-31 14:30:33 -04: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
James Hugman
e033430a5f [components] Ensure page reload is available after error pages are displayed 2019-05-23 20:49:47 +01:00
Sebastian Kaspari
2612b3bd2d [components] (Merge day) browser-engine-gecko-beta (67) -> browser-engine-gecko-release (67). 2019-05-22 10:35:30 -04:00
Sawyer Blatz
2c44078c95 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2982: Enables desktop viewport when requesting desktop 2019-05-14 17:46:42 -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
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
f4bf46d4dc [components] Improve onVisited comments 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
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
Sebastian Kaspari
64ae21d78b [components] Issue https://github.com/mozilla-mobile/android-components/issues/2374: (Merge day) browser-engine-gecko-beta (66) -> browser-engine-gecko-release (66). 2019-03-21 10:00:53 +01:00
Arturo Mejia
2f7fa2366d [components] Closes https://github.com/mozilla-mobile/android-components/issues/2127 and https://github.com/mozilla-mobile/android-components/issues/2351: Integrating store to site permissions
feature flow.
2019-03-19 14:49:43 -04:00
Arturo Mejia
509556dee9 [components] Moving captureThumbnail from EngineSession to EngineView. 2019-03-13 10:33:47 -04:00
Sebastian Kaspari
f3bce57be0 [components] browser-engine-gecko-*: Explicitly set autofill flag. 2019-02-21 12:50:47 -05:00
Sebastian Kaspari
0e221d7f88 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2087: Update to GeckoView Nightly 67.0.20190220040540. 2019-02-20 13:50:04 -05:00