Commit Graph
48 Commits
Author SHA1 Message Date
James Willcox 8ade88318b Bug 1405021 - Use web app origin as default scope r=droeh
MozReview-Commit-ID: EwxR6mQITmy
2017-10-02 13:34:54 -05:00
James Willcox 109dde5502 Bug 1400334 - Guard against no theme color in standalone webapp r=nechen
MozReview-Commit-ID: C9LfdSvujS9
2017-10-02 13:24:45 -05:00
Dylan Roeh 6a49ef0c72 Bug 1388750 - Add setActive() to GeckoView to make the DocShell active/inactive. r=snorp 2017-09-22 15:57:46 -05:00
James Willcox 00b10d7bd6 Bug 1401208 - Change default web app scope to the start_url r=esawin
MozReview-Commit-ID: Jvbru5oRYDH
2017-09-19 09:45:04 -05:00
Jim Chen aa5d7a77bc Bug 1367079 - 5. Add TextSelection support in custom tabs and PWA; r=snorp
Add TextSelection support in custom tabs and PWA.

MozReview-Commit-ID: AcHjMfJ8onU
2017-09-14 17:50:58 -04:00
James Willcox 4e1fb372ea Bug 1394552 - UI improvements for Custom Tabs launched from PWA r=esawin
MozReview-Commit-ID: LVAQN9Tp9DN
2017-08-29 10:31:41 -05:00
James Willcox 6e74f29748 Bug 1353868 - Split out web app manifest handling and fix scope handling r=esawin
MozReview-Commit-ID: 7MpeqitYRW8
2017-08-29 10:31:41 -05:00
James Willcox 0a87baf69c Bug 1393188 - Go back in history when back button pressed if able in PWA r=droeh
MozReview-Commit-ID: 3iyOTEIKe46
2017-08-23 14:42:27 -05:00
James Willcox 12d33a69fb Bug 1126479 - Support fullscreen display mode for webapps on Android r=droeh
MozReview-Commit-ID: 8GfeYqLQqGC
2017-08-22 09:09:37 -05:00
James Willcox e67f23c587 Bug 1389269 - Clean up the UI layout for standalone webapps r=droeh
MozReview-Commit-ID: 7NikFByIH7B
2017-08-22 09:08:41 -05:00
James Willcox f13302b946 Bug 1369815 - Set the display mode for standalone PWA r=droeh
MozReview-Commit-ID: EGCskj6pwkC
2017-08-22 09:08:39 -05:00
James Willcox c6cb914c59 Bug 1369817 - Clean up webapp manifest handling r=droeh
MozReview-Commit-ID: 4ImLBrlGzBc
2017-08-22 09:08:38 -05:00
James Willcox 4558a5cc53 Bug 1369817 - Set screen orientation according to webapp manifest r=droeh
MozReview-Commit-ID: KvuPsYSalVN
2017-08-22 09:08:38 -05:00
Eugen Sawin 25a897a811 Bug 1389236 - [5.0] Fix rebase. r=me 2017-08-21 16:31:14 +02:00
Eugen Sawin eca67b6ad7 Bug 1389236 - [3.1] Launch a custom tabs intent for out-of-scope URIs in the PWA's onLoadUri handler. r=snorp 2017-08-21 16:10:08 +02:00
Jim Chen 8fa323d837 Bug 1388724 - 5. Make RuntimePermissions not depend on GeckoApp; r=sebastian
Move the check permission event from `GeckoApp` to `GeckoApplication`,
and use the current activity if possible, so that we can use
`RuntimePermissions` in custom tabs and PWA. Also implement
`onRequestPermissionsResult` for custom tabs and PWA, in order to
forward the result back to `RuntimePermissions`.

MozReview-Commit-ID: Bg4BoXAUCz6
2017-08-18 14:27:31 -04:00
Jim Chen 1a96738feb Bug 1388724 - 3. Add DoorHangerPopup to custom tabs and PWA; r=droeh
Add a DoorHangerPopup to CustomTabsActivity and WebAppActivity, so we
can show doorhangers for custom tabs and PWA.

MozReview-Commit-ID: L34Ow7yeZWV
2017-08-18 14:27:31 -04:00
Eugen Sawin ade377b508 Bug 1377580 - [4.1] Implement external URI loading for standalone progressive web apps. r=snorp 2017-08-14 14:57:25 +02:00
Jan Henning d9fee4c45f Bug 1366098 - Part 0 - Clean up imports. r=walkingice
MozReview-Commit-ID: Ig89BxFoINR
2017-07-08 11:25:58 -07:00
Dylan Roeh ce8ed47544 Bug 1377320 - Add prompts support to PWAs. r=jchen 2017-06-30 10:33:59 -07:00
Teng-pao Yu 56939f3aaf Bug 1369650 - Fix lint: NewApi issues in WebAppActivity.java; r=maliu
MozReview-Commit-ID: ERmh2IMTh0X
2017-05-16 17:11:41 +08:00
Dylan Roeh 4b9c36a13e Bug 1360068 - Overhaul WebAppActivity to use GeckoView rather than GeckoApp. r=jchen,daleharvey 2017-06-16 14:50:49 -05:00
Jim Chen f8e6426536 Bug 1369107 - 1. Remove usages of GeckoAppShell.getContext(); r=droeh
Replace usages of GeckoAppShell.getContext() with
getApplicationContext() if possible, or the current Activity if the
usage expects an Activity context.

MozReview-Commit-ID: 9GOWszgEsQu
2017-06-02 16:13:41 -04:00
Dylan Roeh 11f96ed230 Bug 1369393 - Backout GV-based custom tabs, PWAs, and Tabs.java changes. r=me 2017-06-01 09:28:31 -05:00
Dylan Roeh db93a66019 Bug 1360068 - Overhaul WebAppActivity to use GeckoView rather than GeckoApp. r=jchen,daleharvey 2017-05-31 16:59:50 -05:00
Jan Henning 4285a06d0c Bug 1359531 - Part 1 - Call GeckoApp's tab event handler from web apps/custom tabs, too. r=sebastian,walkingice
We want to move the activity switching code into the activity (i.e. GeckoApp) itself and run it from its onTabChanged handler in response to the appropriate events (at the moment that's only SELECTED), so we need to ensure that this will actually be called within custom tabs/web apps as well.

Additionally, there's no need to separately register the tab events listener from the CustomTabs/WebAppActivity as well if our parent class already does it for us.

MozReview-Commit-ID: 6PIq1KncDcA
2017-04-28 20:16:19 +02:00
Jan Henning 3e97185255 Bug 1360658 - Forward BundleEvents from WebAppActivity to GeckoApp. r=daleharvey
Otherwise random stuff handled by GeckoApp (e.g. snack bars) won't work inside a WebAppActivity.

MozReview-Commit-ID: ElGOPQcqFJS
2017-04-28 20:48:08 +02:00
Nevin Chen d6230ea792 Bug 1355852 - Show Text selection toolbar before Android 5. r=walkingice
MozReview-Commit-ID: 9fnTXxOitag
2017-04-28 18:38:13 +08:00
Jan Henning 709a12546b Bug 1353857 - Include the tab ID when notifying about leaving/entering a web app's scope. r=daleharvey,walkingice
We only want to process the AppEntered/Left message if it actually concerns our currently displayed tab.

MozReview-Commit-ID: EJ8RzRzDNAz
2017-04-17 16:37:58 +02:00
Jan Henning 8903beb338 Bug 1352997 - Part 6 - Switch over web apps and implement additional startup logic for them. r=sebastian,walkingice
Web Apps are single task activities, but Android's task switcher will only ever return the intent that originally created the activity and will never ever update its stored intent for subsequent launches via onNewIntent, so we have to do this ourselves.

Additionally, web apps have some additional logic when being launched via a new intent that checks whether the currently loaded page matches the scope of the web app intent and then resets it if necessary. We now hook up this logic to the new SingleTabActivity wiring.

MozReview-Commit-ID: 9bo4gXbfPNg
2017-04-04 21:50:33 +02:00
Jan Henning 74fc2fe768 Bug 1351739 - Part 6 - Finish the WebAppActivity when closing via onDone. r=sebastian,walkingice
Custom and web app tabs behave as any other externally launched URLs, that is pressing the back button closes not only the activity, but the tab as well when reaching the beginning of session history. Therefore, we should finish the activity in this case (just as the CustomTabsActivity already does), so the next launch runs through the onCreate code path and opens a new tab again.

MozReview-Commit-ID: 14AhWkmb5O7
2017-04-02 15:43:31 +02:00
Jan Henning 23d92edb83 Bug 1351739 - Part 5 - Implement activity switching for web apps. r=sebastian,walkingice
Differences to custom tabs:
- We don't have to store the full intent, just storing the manifest path is enough.
- Akin to the LauncherActivity we have to route the request to the correct WebAppActivity instance depending on the manifest path.

We also have to modify the intent handling when GeckoApp is starting up - the intent handling of the GeckoApp + BrowserApp combo requires "nulling" out (by setting it to ACTION_MAIN) the current intent if it's not a fresh intent (e.g. the activity is recreated after having been destroyed or relaunched from the task switcher).

For web apps on the other hand we want to keep the intent around even in those cases, as it contains state we need even later on. Additionally, we want to make use of GeckoApp's startup code for either selecting the tab from the intent or loading a new tab. Therefore we save the launch intent and restore it once GeckoApp's onCreate() has run.

Note that this solution is not entirely correct either, because with this each onCreate() call will open a new tab, even when this is not necessary when only the activity (but not Firefox and Gecko as a whole) had been destroyed. This behaviour will be fixed as part of bug 1352997.

This approach is also a bit different than the one chosen in bug 1351605 for custom tabs, which was independently developed in parallel. Bug 1352997 will unify this, too.

MozReview-Commit-ID: 94uZ3c8CUVD
2017-04-02 18:26:45 +02:00
Jan Henning 4f418c3e10 Bug 1351739 - Part -1 - Housekeeping. r=sebastian,walkingice
MozReview-Commit-ID: Ev6jl4N3K0g
2017-04-07 20:51:41 +02:00
Wes Kocher e8b333b815 Backed out changeset 9ce0883ffd62 (bug 1353857) because a dependent bug failed to land a=backout
MozReview-Commit-ID: GuGF9G3KmS6
2017-04-27 11:25:22 -07:00
Jan Henning 46ece69a8f Bug 1353857 - Include the tab ID when notifying about leaving/entering a web app's scope. r=daleharvey,walkingice
We only want to process the AppEntered/Left message if it actually concerns our currently displayed tab.

MozReview-Commit-ID: EJ8RzRzDNAz
2017-04-17 16:37:58 +02:00
Dale Harvey 6e14aa23b9 Bug 1355676 - Check for nulls when decoding icons. r=sebastian 2017-04-25 16:53:29 +01:00
Nevin Chen 0ef3091202 Bug 1352004 - Fix doorhangers missing background. r=sebastian
MozReview-Commit-ID: 6vrY17fYXD6
2017-04-10 18:13:47 +08:00
Nevin Chen b3aa59745a Bug 1351556 - Collect information on the number of users using PWA. r=sebastian
MozReview-Commit-ID: CyVFQUtd5Aw
2017-04-06 17:29:53 +08:00
Dale Harvey 4689c7c209 Bug 1353714 - Only setTaskDescription on supported android. r=janh 2017-04-07 16:43:12 +01:00
Wes Kocher 06260c1036 Merge inbound to central, a=merge 2017-04-03 14:50:18 -07:00
Dale Harvey b8c724d6ef Bug 1352099 - Ensure manifest can be read on resume. r=sebastian 2017-04-03 14:26:17 +01:00
Dale Harvey 9365707153 Bug 1352726 - Ensure missing fields dont halt theming. r=sebastian 2017-04-03 14:26:03 +01:00
Dale Harvey 59b96c4d92 Bug 1351834 - Give webapp tabs correct type when launched. r=janh 2017-04-01 15:23:18 +01:00
Dale Harvey 4aab6bbde1 Bug 1337341 - Show url when navigating out the scope of pwa. r=walkingice 2017-04-01 09:34:23 +01:00
Jan Henning 640e6e9cf7 Bug 1352433 - Part 1 - Don't clear all preferences when all you need to remove is a few keys. r=sebastian
MozReview-Commit-ID: DELmDbTHNLk
2017-04-01 23:02:54 +02:00
Jan Henning 5d72a705a8 Bug 1352433 - Part 0 - Change variable name casing for constants. r=sebastian
The shared preferences keys used for storing/retrieving the activity list data are constants, so it is a bit disconcerting to see them named like normal member variables.

MozReview-Commit-ID: GivVloU0pFv
2017-04-01 22:51:51 +02:00
Dale Harvey d541b55459 Bug 1347605 - Ensure standalone pwa's are singletons 2017-03-29 18:44:30 +01:00
Dale Harvey 09dba93fdd Bug 1336355 - Open webapps in new activity. r=sebastian 2017-03-15 15:39:01 +00:00