Commit Graph
2302 Commits
Author SHA1 Message Date
Matthew Wein 0cbf6ec98e Bug 1331742 - Part 4 - Add support for adding and removing browser actions from the main menu r=sebastian,walkingice
MozReview-Commit-ID: ITIan73eIlx
2017-05-16 13:43:35 -04:00
Jim Chen 31d11da47b Bug 1363567 - 3. Remove GeckoInterface.getPluginContainer; r=me
GeckoInterface.getPluginContainer is no longer used anywhere and can be
removed. r=me for trivial patch.

MozReview-Commit-ID: 2IoQPqecWus
2017-05-15 23:11:18 -04:00
Jim Chen 35ee70ae9b Bug 1363567 - 2. Move onFullScreenPluginHidden to GeckoApp; r=rbarker
Move the native call onFullScreenPluginHidden from GeckoAppShell to
GeckoApp itself.

MozReview-Commit-ID: APhGRBTNl0X
2017-05-15 23:11:18 -04:00
Jim Chen ebfed1e849 Bug 1363567 - 1. Remove addPluginView/removePluginView methods; r=rbarker
Remove the addPluginView and removePluginView methods from
GeckoInterface. Instead, move the JNI calls directly to GeckoApp itself.
GeckoApp then uses GeckoActivityMonitor to find the current activity,
instead of using GeckoAppShell.getGeckoInterface().

MozReview-Commit-ID: 7ym8kuElADV
2017-05-15 23:11:17 -04:00
Jim Chen 60e5e1efe7 Bug 1362192 - Remove GeckoInterface.getDefaultUAString; r=snorp
Move GeckoInterface.getDefaultUAString() to GeckoApplication.

MozReview-Commit-ID: FHsRrbiqJ3F
2017-05-15 23:11:17 -04:00
Jim Chen 4a654a63bf Bug 1325112 - 1. Remove GeckoInterface.isOfficial; r=nalexander
There are two callers of isOfficial() in GeckoThread. For purging the
startup cache, the code to add the extra argument is moved to
GeckoApplication/GeckoApp/GeckoService. For logging the arguments, the
"debug" flag is used instead of the "official" flag.

MozReview-Commit-ID: 9atEWY1MVVt
2017-05-15 23:11:17 -04:00
Jim Chen 8d4381582a Bug 1363167 - Remove GeckoInterface.getActivity; r=snorp
Use available Context or GeckoActivityMonitor to derive an Activity
instance, instead of using GeckoInterface.getActivity().

MozReview-Commit-ID: GHLMtnQkr2l
2017-05-15 23:11:11 -04:00
Jim Chen fc07e19755 Bug 1362231 - Remove GeckoInterface.getProfile; r=snorp
Since we only support one profile per process, replace all calls to
GeckoInterface.getProfile() with calls to GeckoThread.getActiveProfile().

MozReview-Commit-ID: 9PZOoBZt7Er
2017-05-15 23:11:10 -04:00
Randall Barker ac850dd756 Bug 1364194 - Refresh static toolbar snapshot when page width changes r=botond,jchen
MozReview-Commit-ID: HaQo66j640g
2017-05-15 11:30:09 -07:00
Jim Chen 7a262c95b9 Bug 1362195 - 4. Implement onFullScreen for GeckoApp/BrowserApp; r=snorp
Use a custom ContentListener for GeckoApp/BrowserApp that implements
onFullScreen to set full screen mode for the Activity.
2017-05-11 16:40:17 -04:00
Jim Chen b477c67eaa Bug 1362191 - 4. Remove GeckoInterface.doRestart; r=me
Remove GeckoInterface.doRestart now that it's no longer used.
2017-05-11 16:39:30 -04:00
Jim Chen 445a84a4fb Bug 1362191 - 3. Remove GeckoAppShell.scheduleRestart; r=snorp
GeckoAppShell.scheduleRestart was called from XPCOM toolkit when we
needed to restart after the Gecko thread exits. But because we made the
"Gecko:Exited" event contain a "restart" flag, we can handle that
entirely in Java now, so we don't need to call
GeckoAppShell.scheduleRestart anymore.
2017-05-11 16:39:30 -04:00
Jim Chen ed8806835d Bug 1362191 - 2. Move shutdown to GeckoApplication; r=snorp
Move the code that actually performs shutdown from BrowserApp to
GeckoApplication, so we can shutdown even without an active BrowserApp.
From inside GeckoApp/BrowserApp, all shutdown now go through
finishAndShutdown(), which destroys the Activity before shutting down.
2017-05-11 16:39:30 -04:00
Jan Henning 44b5f21494 Bug 1253647 - Part 1 - Don't show page URL title on add-on restart doorhanger. r=sebastian
When a non-restartless add-on is (un)installed or updated, we show a doorhanger prompting the user to restart. Currently, the doorhanger's title is using the default logic for choosing its title, that is using the base domain of the tab the doorhanger is being displayed on.

By chance, when the doorhanger is triggered from about:addons there is no domain to display, so the doorhanger is just displaying the restart notification. If however an add-on is automatically updated while the user is browsing, then the restart prompt will show the domain of the currently open tab in conjunction with the restart message. This can be confusing for the user, as it looks like it was in fact the current page that triggered the restart prompt.

Therefore, we change this behaviour and just show a generic "Add-ons" as title for this case.

MozReview-Commit-ID: 3pMwSiLul99
2017-05-10 22:24:14 +02:00
Jan Henning d5008b2ade Bug 1253647 - Part 0 - Clean up imports. r=sebastian
MozReview-Commit-ID: F96sw4Xhn93
2017-05-10 22:03:58 +02:00
Jan Henning b2df20983e Bug 1363321 - Part 2 - Reset crash loop counter after a presumably succesful startup. r=jchen
At the moment, our crash loop counter that turns off session restoring when multiple crashes happen in a row is reset only after a successful background-foreground cycle.

Since its purpose is to break out of startup crash loops caused by the currently loaded tab that is automatically loaded after starting the app, it makes sense to also reset it if we didn't crash soon after starting up. Otherwise, if the user remains within Firefox, another crash long after starting would still count towards the crash loop counter.

Desktop already employs a similar logic for deciding whether to automatically enable safe mode or not after a crash. Therefore, we use the same amount of time (30 s) after starting Gecko for resetting the counter.

We also take the opportunity to make our logic a bit more conservative and only turn off session restoring after two successive crashes in a row (desktop uses 3 by default).

MozReview-Commit-ID: CQDutkDgmfc
2017-05-09 23:12:54 +02:00
Jing-wei Wu 41da378299 Bug 1329128 - Part 2: Implement create bookmark folder page. r=ahunt,Grisha
MozReview-Commit-ID: JtSklBDUq7L
2017-05-05 00:56:55 +08:00
Jing-wei Wu 7fd3f2f2dc Bug 1329128 - Part 1: Implement the functionality of remove bookmark folder in BrowserProvider. r=Grisha
MozReview-Commit-ID: GQfM4Z9zU2x
2017-05-02 17:52:55 +08:00
Jing-wei Wu 4340befe44 Bug 1329131 - Part 2: Implement selecting bookmark folder page. r=Grisha
MozReview-Commit-ID: 6uEC9iauvZj
2017-04-24 00:41:46 +08:00
Jing-wei Wu 6a0ecb7194 Bug 1329131 - Part 1: Implement the functionality of listing all bookmark folders except special folders. r=Grisha
MozReview-Commit-ID: AK79E6kkXFI
2017-04-21 18:31:03 +08:00
Alastor Wu adadbdba45 Bug 1357639 - part10 : check notification id. r=sebastian
Use notification id to check whether the notification is correct is more stable than just checking the
number of system notification.

MozReview-Commit-ID: BVYdMrBsSLR
2017-05-09 10:51:27 +08:00
Alastor Wu 524ac35a9c Bug 1357639 - part8 : add annotiation @RobocopTarget. r=sebastian
To make sure these functions can be used in robocop test.

MozReview-Commit-ID: KPAKOrg5Ows
2017-05-08 14:10:56 +08:00
Alastor Wu e22ae9ffab Bug 1357639 - part3 : change audio focus state before notifying observers. r=sebastian
Notify observer might cause the method (notifyStoppedPlaying) is called by C++ side,
and we should change our internal state before calling the method.

MozReview-Commit-ID: 5xNXhGmAIrR
2017-05-08 14:10:43 +08:00
Alastor Wu ce0485039f Bug 1357639 - part2 : use enum for audio focus states. r=sebastian
MozReview-Commit-ID: LwLxs7WS5XF
2017-05-08 14:10:41 +08:00
Alastor Wu e2205a151d Bug 1357639 - part1 : change tab's media playing state when the tab is controlled by media control. r=sebastian
MozReview-Commit-ID: HGuMXut29uB
2017-05-08 14:10:39 +08:00
Tom Klein 89c821d41f Bug 1363551 - Remove unused TabsLayoutRecyclerAdapter. r=sebastian
MozReview-Commit-ID: EMsVY1Edime
2017-05-09 17:37:02 -05:00
Jan Henning e1ad729f9c Bug 1363074 - Part 2 - When skipping the selected tab during session restore, don't select a replacement if we're also opening an URL from our launch intent. r=walkingice
When starting up, ideally we want to only load the foreground tab, with all other tabs being created as delay-loaded "zombie" tabs that occupy minimal resources. To that extent, when restoring the previous session we need to know whether we're planning to open an additional, external tab for a URL received through the launch intent later on. If we do, we don't want to select any tab while restoring the previous session, as that selection is going to be overridden by the external tab anyway. Not selecting a tab from the previous session at this stage means that it can remain as a delay-loaded tab until it is eventually selected by the user.

MozReview-Commit-ID: 1lWnOx0ZuNl
2017-05-08 21:55:07 +02:00
Jan Henning 7db29fc359 Bug 1363074 - Part 1 - Clarify meaning of "isExternalURL" variable during session restore. r=walkingice
MozReview-Commit-ID: JnUiPSiqEhd
2017-05-08 21:51:34 +02:00
Wes Kocher 0eff4bba2b Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 5kxOZZxjMEl
2017-05-08 16:07:25 -07:00
Dylan Roeh b750f538e4 Bug 1325021 - Reduce reliance on GeckoAppShell.getGeckoInterface to solve some custom tabs crashes. r=jchen 2017-05-08 08:48:16 -05:00
Jonathan Hao 2675a5da96 Bug 1357997 - Use ProxySelector.openConnection instead of url.openConnection. r=sebastian
MozReview-Commit-ID: CAF2Ir81Fq
2017-04-25 12:01:46 +08:00
Andrzej Hunt d537692dda Bug 1299949 - Move omg.home.activitystream into omg.activitystream.homepanel r=sebastian
Parts of ActivityStream already live under omg.activitystream, lets move the UI code there
too to make it easier to actually find AS code.

MozReview-Commit-ID: 6Aa7AZ9cw5n
2017-04-27 15:54:06 +08:00
Andrzej Hunt 7e0d1dc3b2 Bug 1299949 - Pre: rename ActivityStream UI to ActivityStreamPanel r=sebastian
This will avoid conflicts with the ActivityStream helper class.

MozReview-Commit-ID: 5XNmwz4UwJo
2017-04-27 15:47:40 +08:00
Nick Alexander 169f28cd80 Bug 1361418 - Remove Java Addons from Firefox for Android. r=sebastian
The Java Addons mechanism never got traction and is not Web Extensions
compatible.  Removing it simplifies the product and the build system.

MozReview-Commit-ID: ABUxkqqMISa
2017-05-02 11:49:16 -07:00
Sebastian Hengst 5698916753 Backed out changeset ecf487cbca1b (bug 1357639) for frequently failing robocop's testAudioFocus. r=backout 2017-05-02 21:41:45 +02:00
Sebastian Hengst 0d18edb2f3 Backed out changeset 48e901332b4d (bug 1357639) 2017-05-02 21:40:56 +02:00
Sebastian Hengst 911520e887 Backed out changeset 3e7bc9a792c2 (bug 1357639) 2017-05-02 21:40:52 +02:00
Sebastian Hengst fc80525db1 Backed out changeset d37e0ce6c7c9 (bug 1357639) 2017-05-02 21:40:30 +02:00
Nevin Chen fb1decd53f Bug 1356517 - Add deep links to handle events. r=Grisha
MozReview-Commit-ID: 4OQTrbEdVtQ
2017-04-25 18:01:34 +08:00
Alastor Wu baf897cdd3 Bug 1357639 - part8 : add annotiation @RobocopTarget. r=sebastian
To make sure these functions can be used in robocop test.

MozReview-Commit-ID: KPAKOrg5Ows
2017-05-02 18:53:40 +08:00
Alastor Wu acd9d5c058 Bug 1357639 - part3 : change audio focus state before notifying observers. r=sebastian
Notify observer might cause the method (notifyStoppedPlaying) is called by C++ side,
and we should change our internal state before calling the method.

MozReview-Commit-ID: 5xNXhGmAIrR
2017-05-02 18:53:16 +08:00
Alastor Wu 8354247fca Bug 1357639 - part2 : use enum for audio focus states. r=sebastian
MozReview-Commit-ID: AQ2R6zxnONU
2017-05-02 18:53:13 +08:00
Alastor Wu f0f6dc97f0 Bug 1357639 - part1 : change tab's media playing state when the tab is controlled by media control. r=sebastian
MozReview-Commit-ID: 4bXkaYxqtKD
2017-05-02 18:53:05 +08: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
Jan Henning 7c7cb3cb0f Bug 1360743 - Part 1 - Ignore last selected tab in BrowserApp when opening a new tab through an intent. r=walkingice
When there's no more history to go back in an externally opened tab, we background the activity and close that tab. This means that some other tab gets selected instead, which could in theory trigger an activity switch if that tab is of a different type.

Because we're leaving the app, we don't want to actually launch a new activity, so now the currently selected tab might not match the last active GeckoApp (e.g. closing the last open Web App tab will select a normal tab). Therefore if the same activity is subsequently resumed again, we need to run the restoreLastSelectedTab() even if the "last active GeckoApp"-check doesn't trigger.

For BrowserApp however, this can conflict with session restoring/startup tabs/tabs opened from intents, because in that case we're going to select some other tab, anyway. We already ignore the "last selected tab within this activity" check when doing a full startup, so now we extend this behaviour to cover tabs loaded through onNewIntent() as well.

MozReview-Commit-ID: IDistdhwuZ5
2017-04-29 14:30:03 +02:00
Jan Henning afb9aa2df7 Bug 1360743 - Part 0 - Remove unneeded imports. r=walkingice
MozReview-Commit-ID: IfgzeaFmfOw
2017-04-29 14:21:38 +02:00
Jan Henning cd64742f60 Bug 1360699 - Finish CustomTabsActivities when leaving. r=walkingice
Looking again, the original motivation for *not* calling finish(), i.e. avoiding Gecko being unloaded from memory, doesn't quite seem to apply and in any case for custom tabs we *have* to finish() the activity, since we're most probably running within another activity's task.

There's also no point in overriding onDone() in SingleTabActivity any more if
- we just do the same thing as GeckoApp's default behaviour, and
- custom tabs now require a different behaviour anyway.

MozReview-Commit-ID: BsP1tMj5DEe
2017-04-29 15:03:41 +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
Sebastian Hengst e218b79eae Backed out changeset 6fa5520670a3 (bug 1357639) for frequently failing testAudioFocus on Android. r=backout on a CLOSED TREE 2017-05-04 21:26:09 +02:00
Sebastian Hengst 053032b8fb Backed out changeset 608cca1e6059 (bug 1357639) 2017-05-04 21:24:07 +02:00