Commit Graph

153 Commits

Author SHA1 Message Date
Jan Henning
696af8e1a4 Bug 1518226 - Request foreground service permission. r=snorp
We use foreground services, so this is necessary in order to be able to target
Android P.

The GeckoView example app needs it for the crash handling service.

Differential Revision: https://phabricator.services.mozilla.com/D16423

--HG--
extra : moz-landing-system : lando
2019-01-28 18:32:20 +00:00
Jan Henning
879d1a037c Bug 1503455 - Part 4: Compile with SDK28. r=nalexander,snorp
android.test.* is no longer part of the main framework, so as per
https://developer.android.com/training/testing/set-up-project,
- we must no longer declare them as a *required* dependency in our manifests
- we must explicitly include a dependency on them in our build config

This will temporarily break running tests depending on android.test.* (i.e.
mainly Robocop) on devices using P or newer until we also start targeting P as
well.

Differential Revision: https://phabricator.services.mozilla.com/D16422

--HG--
extra : moz-landing-system : lando
2019-01-28 18:32:11 +00:00
Jan Henning
c6128fa586 Bug 1518229 - Allow clear-text network traffic in Android manifest. r=nalexander
Needs to be explicitly declared in case we start targeting Android P.
It's unclear to what extent this is really required when *not* using Android's
network stack directly, but at least with Firefox, some things definitively use
it, e.g. favicons. As we're a browser, we need to allow access to arbitrary
pages, so just generally white-list it.

Differential Revision: https://phabricator.services.mozilla.com/D16408

--HG--
extra : moz-landing-system : lando
2019-01-14 18:16:19 +00:00
Emily Toop
e24888e839 Bug 1500155 - Add methods for each setting in GeckoSessionSettings. r=snorp
Part 1 - Add methods for each setting in `GeckoSessionSettings`.
Migrate existing code to use these new methods instead of the exisiting get/set<DataType>(Key, Value) methods.

Part 2 - Make old methods and fields for get/set<DataType> in `GeckoSessionSettings` private.

Part 3 - Migrate existing code to use these new methods instead of the exisiting get/set<DataType>(Key, Value) methods.

Part 4 - Add Builder to `GeckoSessionSettings` to handle setting of init only fields.

* Make setters for init only fields protected.
* Remove tests that ensure that init only fields throw an error when set on the fly as this is no longer possible.
* Update tests to use builder when init-ing settings.
* Update API doc to reflect new public API.

Part 5 - Update `CHANGELOG.md`.

Part 6 - Update `geckoview_example` to use new methods.

Part 7 - Fetch `CHROME_URI` key when calling `getChromeUri` rather than incorrect `USER_AGENT_OVERRIDE`

Differential Revision: https://phabricator.services.mozilla.com/D15651

--HG--
extra : moz-landing-system : lando
2019-01-08 18:06:07 +00:00
Ciure Andrei
71bf47500f Backed out 7 changesets (bug 1500155) for multiple Android fails CLOSED TREE
Backed out changeset 0f66513c5f23 (bug 1500155)
Backed out changeset 85900c298b05 (bug 1500155)
Backed out changeset c4bc2e839a9e (bug 1500155)
Backed out changeset 4dd0b1c3524c (bug 1500155)
Backed out changeset 0d03623732b6 (bug 1500155)
Backed out changeset fcfa609101f8 (bug 1500155)
Backed out changeset a9410d9b3f16 (bug 1500155)
2018-12-12 16:24:36 +02:00
Emily Toop
0fd2d6b7ad Bug 1500155 - Part 8 - Update geckoview_example to use new methods. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D13423

--HG--
extra : moz-landing-system : lando
2018-12-12 13:19:16 +00:00
Emily Toop
5b120fc9e9 Bug 1482725 - Don't call onCreate when device orientation changes. r=geckoview-reviewers,snorp
To prevent the default URI reloading on app rotate, prevent `GeckoViewActivity` from restarting on orientation and screen size changes.

Differential Revision: https://phabricator.services.mozilla.com/D13065

--HG--
extra : moz-landing-system : lando
2018-12-11 14:26:45 +00:00
Eugen Sawin
29cc0db15f Bug 1509266 - [2.0] Update onContextMenu delegate implementations. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D12968

--HG--
extra : moz-landing-system : lando
2018-11-27 20:30:47 +00:00
James Willcox
20a661d1da Bug 1509146 - Remove default implementations in GeckoView interfaces r=nalexander
JaCoCo chokes on default implementations in interfaces, so remove those
for now.

Differential Revision: https://phabricator.services.mozilla.com/D12607

--HG--
extra : moz-landing-system : lando
2018-11-23 19:42:26 +00:00
Matt Brubeck
b059d469bb Bug 1487542 - Change LoadRequest.isUserTriggered to isRedirect. r=snorp,smaug
Differential Revision: https://phabricator.services.mozilla.com/D12370

--HG--
extra : moz-landing-system : lando
2018-11-21 22:35:42 +00:00
Dorel Luca
c9ce5110c2 Backed out changeset 31b5c6b8ef22 (bug 1487542) for apiling. CLOSED TREE 2018-11-21 22:35:24 +02:00
Matt Brubeck
0c8f075f55 Bug 1487542 - Change LoadRequest.isUserTriggered to isRedirect. r=snorp,smaug
Differential Revision: https://phabricator.services.mozilla.com/D12370

--HG--
extra : moz-landing-system : lando
2018-11-21 13:12:42 +00:00
James Willcox
ac32419b2f Bug 1508728 - Handle autoplay permission requests in GeckoView example r=mbrubeck
Differential Revision: https://phabricator.services.mozilla.com/D12452

--HG--
extra : moz-landing-system : lando
2018-11-20 22:02:29 +00:00
Eugen Sawin
31655128ad Bug 1508638 - [1.0] Remove default progress value to avoid stuck progress bar for about: pages. r=droeh 2018-11-20 16:25:33 +01:00
Emily Toop
e4c40c72e8 Bug 1500566 - Change the default URL loaded in geckoview_example on startup to about:blank. r=geckoview-reviewers,snorp
This is to prevent the load of the Mozilla homepage on startup.

Differential Revision: https://phabricator.services.mozilla.com/D12262

--HG--
extra : moz-landing-system : lando
2018-11-19 14:34:42 +00:00
Lina Cambridge
91bb9eef1d Bug 1494713 - Add HistoryDelegate and wire up the Java history handlers. r=jchen,snorp
Differential Revision: https://phabricator.services.mozilla.com/D11291

--HG--
extra : moz-landing-system : lando
2018-11-16 17:32:04 +00:00
Eitan Isaacson
d8aba0bec2 Bug 1506709 - Disable Android full tree accessibility by default. r=snorp
This would mean we would be using the cache exclusively unless otherwise
set. For now, the autofill tests are still set to use full tree a11y.
This is mostly because of kinks in how the test starts, as well as the
inputType that is not stored in the viewport cache. We should have a
followup bug to deal with that.

Differential Revision: https://phabricator.services.mozilla.com/D11704

--HG--
extra : moz-landing-system : lando
2018-11-14 16:35:51 +00:00
Emily Toop
74e1ca6361 Bug 1500560 - Add Resource ID for LocationView URL bar. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D11036

--HG--
extra : moz-landing-system : lando
2018-11-07 17:22:46 +00:00
Eitan Isaacson
d75945e22e Bug 1502187 - Add FULL_ACCESSIBILITY_TREE to GeckoSessionSettings. r=jchen
Defaults now to 'true', when caching is good enough I'll switch it off.

Generally, this would be used for apps/cases when full accessible tree
is needed like UIAutomator.

Depends on D9864

Differential Revision: https://phabricator.services.mozilla.com/D9865

--HG--
extra : moz-landing-system : lando
2018-11-06 17:04:12 +00:00
James Willcox
ae9828a5bc Bug 1405081 - Add WebRequestError and use it in NavigationDelegate.onLoadError r=esawin,jchen
Differential Revision: https://phabricator.services.mozilla.com/D7797
2018-11-01 09:51:50 -05:00
Ehsan Akhgari
54b2e44577 Bug 1502747 - Remove nsIContentPermissionType.access and all of its supporting code r=snorp,baku
This field was originally added for the b2g-only DeviceStorage API,
and isn't used for anything else right now.

This reverts the remaining parts of bug 1043136 and bug 1043136
as well as some support code for mobile.

Differential Revision: https://phabricator.services.mozilla.com/D10014

--HG--
extra : moz-landing-system : lando
2018-10-30 07:48:55 +00:00
Eugen Sawin
6ed8cc4d6c Bug 1499895 - [1.3] Add triggering URI to onLoadRequest. r=snorp,jchen 2018-10-19 02:56:11 +02:00
Dylan Roeh
753cbc969e Bug 1495786 - Replace ambiguous Booleans with AllowOrDeny, an enum with clearly named values. r=snorp,jchen 2018-10-16 12:23:42 -05:00
Agi Sferro
305f478024 Bug 1454444: Add GeckoSession.getUserAgent. r=snorp,esawin
This patch adds a new API to GeckoSession to get the currently used
UserAgent.

Differential Revision: https://phabricator.services.mozilla.com/D8022

--HG--
extra : moz-landing-system : lando
2018-10-11 15:31:15 +00:00
Dylan Roeh
542742751e Bug 1481296 - Add a popup blocking API to PromptDelegate. r=jchen,snorp 2018-09-07 13:39:57 -05:00
James Willcox
e4cfe61ccc Bug 1482227 - Allow apps to specify product name in CrashReporter r=jchen
Reviewers: jchen

Tags: #secure-revision

Bug #: 1482227

Differential Revision: https://phabricator.services.mozilla.com/D4261
2018-09-11 12:04:10 -05:00
James Willcox
61d0175eb4 Bug 1483329 - Hook up geckoview_example to new crash reporting API r=jchen 2018-09-11 12:04:09 -05:00
James Willcox
6d9557476c Bug 1483329 - Remove job id methods from GeckoRuntimeSettings r=jchen 2018-09-11 12:04:08 -05:00
James Willcox
d267e7efee Bug 1483329 - Remove existing crash-related methods in GeckoRuntimeSettings r=jchen 2018-09-11 12:04:07 -05:00
Jan Henning
93115a878a Bug 1485439 - Upgrade to Java 8. r=nalexander,jchen
Doing so allow to use try-with-resources on all API levels supported by us, not
just starting from API19.

Unfortunately this step also introduces some additional ambiguities in overload
resolution, which means that one of GeckoResult's "then" overloads needs to be
renamed.

Differential Revision: https://phabricator.services.mozilla.com/D4887

--HG--
extra : rebase_source : 7173395484a9616ce739e9d2ba3aa0b8410be386
extra : source : 66955d05bb86c25b1fcb81d60b38be95018d09ca
2018-08-22 21:15:42 +02:00
James Willcox
e641866f27 Bug 1480920 - Bump versions for Android test runner packages r=jchen
This also removes the trivial tests for geckoview_example that were
causing problems.

Differential Revision: https://phabricator.services.mozilla.com/D3991

--HG--
extra : moz-landing-system : lando
2018-08-23 13:12:20 +00:00
James Willcox
cd232d5aac Bug 1480095 - Add example custom error page to GeckoView Example r=esawin
MozReview-Commit-ID: HeYOkwNHYXq
2018-08-22 08:48:26 -05:00
Jim Chen
042d95a78e Bug 1330257 - 2. Separate out session focused state from active state; r=droeh
Make a distinction between a session being active (i.e. being visible)
and it being focused. More than one session may be active at a time, but
only one session is focused at a time. This means the focused session is
always active, but an active session may not be focused.

Also, manage setting of active/focused states in GeckoView itself, so
consumers don't generally have to worry about these states.

Differential Revision: https://phabricator.services.mozilla.com/D3251
2018-08-21 15:23:28 -04:00
Gurzau Raul
fce80a532e Backed out 8 changesets (bug 1330257) for Geckoview failures at GeckoSessionTestRuleTest.waitForPageStop_throwOnChangedCallback on a CLOSED TREE
Backed out changeset c26970c767e1 (bug 1330257)
Backed out changeset 53ef69afca69 (bug 1330257)
Backed out changeset 62e53fa35d5b (bug 1330257)
Backed out changeset 7c589fc8621b (bug 1330257)
Backed out changeset 593f9a799d11 (bug 1330257)
Backed out changeset 9085b9fd557c (bug 1330257)
Backed out changeset aa0ef9b0e96a (bug 1330257)
Backed out changeset 7186e64192f7 (bug 1330257)
2018-08-21 06:51:29 +03:00
Jim Chen
fa4ec16cc2 Bug 1330257 - 2. Separate out session focused state from active state; r=droeh
Make a distinction between a session being active (i.e. being visible)
and it being focused. More than one session may be active at a time, but
only one session is focused at a time. This means the focused session is
always active, but an active session may not be focused.

Also, manage setting of active/focused states in GeckoView itself, so
consumers don't generally have to worry about these states.

Differential Revision: https://phabricator.services.mozilla.com/D3251
2018-08-20 22:28:20 -04:00
arthur.iakab
dfb7a82313 Backed out changeset d3978309484a (bug 1480920) For Android build bustages CLOSED TREE 2018-08-09 23:59:05 +03:00
James Willcox
d91e5fd1af Bug 1480920 - Bump versions for Android test runner packages r=jchen
MozReview-Commit-ID: GlC0qJCVl4V
2018-08-09 15:05:30 -05:00
Eugen Sawin
a9fe7d83f0 Bug 1480813 - [1.0] Use non-animated setProgress method to avoid API level 24 dependency. r=snorp 2018-08-09 16:28:14 +02:00
Eugen Sawin
23de33333d Bug 1480460 - [1.1] Add basic progress bar to the example app. r=snorp 2018-08-03 00:29:51 +02:00
Eugen Sawin
80290a1133 Bug 1451476 - [1.2] Add GeckoView page load error API. r=snorp,droeh,smaug 2018-07-31 20:43:33 +02:00
Eugen Sawin
28404bd49d Bug 1437988 - [1.5] Add progress tracking and expose progress via a delegate callback. r=jchen,snorp,droeh 2018-07-26 18:46:50 +02:00
Petru Lingurar
417a481b63 Bug 1467461 - Migrate CrashReportingService to JobIntentService. r=snorp
Use the fact that a JobIntentService is still a Service to keep most of the
previous implementation and method of starting CrashReportingService.
On 26+ devices it will be called with "start-foreground-service".
This ensures it can be started even from background and the crash reporting
process would work as before but ActivityManager will post an ANR error to
logcat after 5 seconds because we aren't calling Service.startForeground()
(which would mean a user visible notification).

Will use different Job Ids depending on if the app is Firefox Release or
Firefox Beta.
The Job Id will be passed to GeckoThread when first initializing and then be
made available to CrashHandler and nsExceptionHandler.cpp to be sent in the
Intent that starts the CrashReporterService.

MozReview-Commit-ID: GATl6Waa9St

--HG--
extra : amend_source : 70bc130b9411df336181e825ebb3e19bdc5a778c
2018-07-02 17:32:10 +03:00
James Willcox
613a4f2d54 Bug 1474454 - Use GeckoResult in GeckoSession.NavigationDelegate.onNewSession() r=jchen,droeh
MozReview-Commit-ID: E59Scu8tnuq
2018-07-13 19:46:24 -05:00
James Willcox
084bc7a336 Bug 1474454 - Use GeckoResult in GeckoSession.NavigationDelegate.onLoadRequest() r=jchen,droeh
MozReview-Commit-ID: CmdjYhqpZcZ
2018-07-13 19:46:23 -05:00
James Willcox
59e96d25e3 Bug 1415318 - Optionally send web console output to logcat in GeckoView r=jchen,rbarker
This adds a GeckoRuntimeSetting that allows apps to direct the web
console to logcat.

MozReview-Commit-ID: 7KgX5Ol6D3E
2018-06-27 12:47:17 -05:00
Eugen Sawin
de5378f790 Bug 1471599 - [2.0] Use per-session tracking protection setting in the example app. r=snorp 2018-06-27 18:54:12 +02:00
James Willcox
a19c471a94 Bug 1455740 - Make GeckoViewExample more useful r=esawin,jchen,droeh
This adds a location bar so you can enter arbitrary URLs, and also
adds a menu for toggling various settings such as usage of E10s or
tracking protection.

MozReview-Commit-ID: FgBPR92dsfm
2018-06-09 20:28:46 -05:00
James Willcox
2a505d2d75 Bug 1465480 - Add ContentDelegate.onCrash() r=jchen,droeh
This will give applications the opportunity to recover from a content
process crash.

MozReview-Commit-ID: IAfVNy3ndS4
2018-06-08 15:34:08 -05:00
Eugen Sawin
c4cfb57d29 Bug 1463772 - [1.4] Move and refactor tracking protection blocklist selection. r=snorp,jchen 2018-05-29 23:54:45 +02:00
Jim Chen
5ac39f4f7b Bug 1461747 - 3. Add missing permissions; r=me
Add missing geolocation permissions in geckoview_example and geckoview
androidTest.
2018-05-18 11:26:37 -04:00