Граф коммитов

23086 Коммитов

Автор SHA1 Сообщение Дата
James Willcox 395ab599a1 Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
The main advantage here is that it works cross-process.

MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-15 09:37:44 -05:00
James Willcox 5de9b3dc5f Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen
This allows us to allocate an Android SurfaceTexture in the compositor process as well
as an accompanying Surface. We can then transfer the Surface back to the content process
via binder, where it can be used for things like WebGL and video decoding.

Each SurfaceTexture/Surface pair has a unique handle. We use this handle in
layer transactions to locate the SurfaceTexture for a given Surface and composite it
appropriately.

MozReview-Commit-ID: 68VSbXdfsMH
2017-05-15 09:37:43 -05:00
Honza Bambas d6d727a69e backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-13 13:55:11 +02:00
Wes Kocher 0a1e1fe23b Backed out changeset 95ff98f1c2e5 (bug 1319111) for talos failures a=backout
MozReview-Commit-ID: Gs09moFm5rQ
2017-05-12 18:24:42 -07:00
Randall Barker 39225e3f07 Bug 1364267 - Prevent Android gamepad from dropping axis values r=ted
MozReview-Commit-ID: 3G5xwPKD4mq
2017-05-12 15:55:32 -07:00
Jonathan Guillotte-Blouin 93c09b12e6 Bug 1270740 - Remove requestAutocomplete from toolkit/. r=mattn
MozReview-Commit-ID: 7cAWbAWZ2if

--HG--
extra : rebase_source : 53242ac9783f4c40e66a0ffd6b4f6f14e1a2dd63
2017-05-11 14:58:10 -07:00
Honza Bambas 70f62bdec1 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-12 22:13:49 +02:00
Iris Hsiao e22349b74b Backed out 11 changesets (bug 1322650) for media test failures on android. a=backout
Backed out changeset 31bd912fba54 (bug 1322650)
Backed out changeset 4d486c7469eb (bug 1322650)
Backed out changeset 4cf8f4d5064c (bug 1322650)
Backed out changeset 3cb108f7492f (bug 1322650)
Backed out changeset bd53533c108e (bug 1322650)
Backed out changeset 3522917d8f10 (bug 1322650)
Backed out changeset 2c2c1e33eccc (bug 1322650)
Backed out changeset 2f19977cd6ab (bug 1322650)
Backed out changeset 4519296a323e (bug 1322650)
Backed out changeset e56e5e1c8786 (bug 1322650)
Backed out changeset 96fe52231b57 (bug 1322650)

--HG--
extra : amend_source : b11d2181d8f545f4ed1074f09986eddab0b637c8
2017-05-12 10:21:14 +08:00
Wes Kocher 3b736de62a Merge m-c to inbound, a=merge
MozReview-Commit-ID: ADbja7mAY4s
2017-05-11 17:41:11 -07:00
Jim Chen 2afb2c2ce7 Bug 1362195 - 6. Implement onFullScreen for geckoview_example; r=me
Follow-up to implement onFullScreen for geckoview_example's
implementation of ContentListener. r=me for trivial patch.
2017-05-11 18:24:32 -04:00
James Willcox 8069ecfcd6 Bug 1322650 - Adjust Android Flash support to API changes r=jchen
MozReview-Commit-ID: CmMINaGcTER
2017-05-11 15:42:44 -05:00
James Willcox 0f332539ae Bug 1322650 - Don't use inout param for Surface in ICodec r=jolin
It's unnecessary, and the serialization goes wrong with GeckoSurface on the return trip.

MozReview-Commit-ID: 9DUMoLQFhlv
2017-05-11 15:42:43 -05:00
James Willcox 31b30cd5c9 Bug 1322650 - Make video decoding work with new SurfaceTexture API r=jolin
MozReview-Commit-ID: EXQ5YDSMMGL
2017-05-11 15:42:43 -05:00
James Willcox ad1995d388 Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
The main advantage here is that it works cross-process.

MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-11 15:42:42 -05:00
James Willcox 2372095708 Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen
This allows us to allocate an Android SurfaceTexture in the compositor process as well
as an accompanying Surface. We can then transfer the Surface back to the content process
via binder, where it can be used for things like WebGL and video decoding.

Each SurfaceTexture/Surface pair has a unique handle. We use this handle in
layer transactions to locate the SurfaceTexture for a given Surface and composite it
appropriately.

MozReview-Commit-ID: 68VSbXdfsMH
2017-05-11 15:42:42 -05:00
Jim Chen 04c08fbf1d Bug 1362195 - 5. Remove GeckoInterface.setFullScreen; r=me
Remove GeckoInterface.setFullScreen now that it's no longer used. r=me
for trivial patch.
2017-05-11 16:40:18 -04:00
Jim Chen 2edd8463c6 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 044b6b9b8c Bug 1362195 - 3. Call onFullScreen for full screen changes; r=snorp
Send an event from nsWindow to GeckoView when we enter/exit full screen
mode, and call ContentListener.onFullScreen to notify the implementer.
2017-05-11 16:40:17 -04:00
Jim Chen 1137640d64 Bug 1362195 - 2. Add onFullScreen to GeckoView.ContentListener; r=snorp
Add the onFullScreen method to GeckoView.ContentListener to handle
entering and exiting full screen mode.
2017-05-11 16:40:17 -04:00
Jim Chen 18c0a5d9ca Bug 1356698 - Use application context in AndroidGamepadManager; r=snorp
Use application context in AndroidGamepadManager to avoid crash when
trying to use GeckoAppShell.getContext() in content process.
2017-05-11 16:39:30 -04:00
Jim Chen 7785e0c15b 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 05c9cfa565 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 2a44ba08f8 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
Jim Chen 87eb61480f Bug 1362191 - 1. Add "restart" flag for "Gecko:Exited" event; r=snorp
In the GeckoBundle data for the "Gecko:Exited" event, indicate whether
we should restart or not through the "restart" flag.
2017-05-11 16:39:29 -04:00
James Cheng 8c2476a913 Bug 1363994 - Use the same implementation of isAdaptivePlaybackSupported in LollipopAsyncCodec and JellyBeanAsyncCodec r=jolin
MozReview-Commit-ID: EWV1t0gdq8V

--HG--
extra : rebase_source : 30abbe44e9563182e4996bf2ec97e50b1b517c22
2017-05-11 16:12:55 +08:00
Alastor Wu ddde8e903b Bug 1351087 - part2 : add tests. r=sebastian
Add test for handling the cases, media with silent audio track and media without audio track.

MozReview-Commit-ID: 5vV9EjIjHQt

--HG--
extra : rebase_source : 37fccc055479a40fd802107ccdc45d11d11c1852
2017-05-09 14:10:46 +08:00
Jan Henning 925872d78e Bug 1360287 - Factor out history/tabs data purging into separate function to reduce session store observer complexity. r=sebastian
MozReview-Commit-ID: IhxMfUKEDgh

--HG--
extra : rebase_source : 4acce54322d85453722ec8a4a4a26f29a0a0252d
2017-05-10 23:55:26 +02:00
Jan Henning cd5c783e09 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

--HG--
extra : rebase_source : 3c11fe19c5cef42226a849b78d554fa846114bfa
2017-05-10 22:24:14 +02:00
Jan Henning 5c67890d3a Bug 1253647 - Part 0 - Clean up imports. r=sebastian
MozReview-Commit-ID: F96sw4Xhn93

--HG--
extra : rebase_source : 94c3bfec96c3d7a1f0c6aa3088766fd345248e47
2017-05-10 22:03:58 +02:00
Jan Henning 3ff6d827ad 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

--HG--
extra : rebase_source : e3100394772bcebb64610dcadfd77676119e1de1
2017-05-09 23:12:54 +02:00
Jan Henning 02495c3a98 Bug 1363321 - Part 1 - Always copy crash restore settings to Java on startup. r=jchen
Those settings need to be stored in our shared preferences since they're needed before Gecko is available, however in order to allow them to be easily configured, we also expose them in about:config and sync them to the shared prefs via a change listener.

This however means that changes in the *default* value of those prefs won't be picked up. Therefore we now simply unconditionally copy the setting state into the shared preferences on startup and omit the change listener instead, as they're exposed in about:config only and there is in fact no pressing need for changes there to immediately take effect.

MozReview-Commit-ID: 7c950F1nkdj

--HG--
extra : rebase_source : 4be6e5124294a71b5d214b9ab10ada4e88aee3bb
2017-05-10 20:20:50 +02:00
Ted Mielczarek 9bcc883e51 bug 1357622 - update sccache to rev d3aa1116844b50c03015266d2f48235509fa7deb to pick up a fix for build failures. r=mshal
MozReview-Commit-ID: 8ixs6rYnE08

--HG--
extra : rebase_source : b4c315007cfb6c03e6534e381f6231d6c9bab54a
2017-05-09 09:12:26 -04:00
Alastor Wu ec04439c81 Bug 1357633 - part2 : add tests. r=sebastian
Based on bug1357639, add new test tasks.

MozReview-Commit-ID: 9k8ZkF00MwG

--HG--
extra : rebase_source : 36d86b23aba376e1c138e06623a9ad5bc8ebec8e
2017-05-10 23:43:14 +08:00
James Cheng b43da59473 Bug 1362918 - Extend the blacklist to cover certain Galaxy S4 models. r=jolin
MozReview-Commit-ID: WZFON3SBvU

--HG--
extra : rebase_source : 36c13d76546ca231a88ebb36d0a3e33c5fbf75dd
2017-05-08 11:56:56 +08:00
Jing-wei Wu 06f1e7cc9f Bug 1329128 - Part 2: Implement create bookmark folder page. r=ahunt,Grisha
MozReview-Commit-ID: JtSklBDUq7L

--HG--
extra : rebase_source : bb59a0974f6b56ff9630181c3d8345ffe5cbfaf1
2017-05-05 00:56:55 +08:00
Jing-wei Wu 88e8de85ed Bug 1329128 - Part 1: Implement the functionality of remove bookmark folder in BrowserProvider. r=Grisha
MozReview-Commit-ID: GQfM4Z9zU2x

--HG--
extra : rebase_source : 41ad92ab139214f900e6b70e8fc9972adb0f0d72
2017-05-02 17:52:55 +08:00
Jing-wei Wu e1fe7cc7e3 Bug 1329131 - Part 2: Implement selecting bookmark folder page. r=Grisha
MozReview-Commit-ID: 6uEC9iauvZj

--HG--
extra : rebase_source : fd022ccdc3841c697aef7e5b2305afd04fd1ab5e
2017-04-24 00:41:46 +08:00
Jing-wei Wu a381669023 Bug 1329131 - Part 1: Implement the functionality of listing all bookmark folders except special folders. r=Grisha
MozReview-Commit-ID: AK79E6kkXFI

--HG--
extra : rebase_source : 2f3730fd29c4d304342e631cb4a4f9289fe15ce5
2017-04-21 18:31:03 +08:00
Alastor Wu c821469fbb Bug 1357639 - part11 : increase the waiting time for notification UI changed. r=sebastian
I observe that sometime it takes longer time for the UI notification changed in
try sever, and it cause the intermittent fail.

Therefore, I would like to increase a little bit time for waiting UI changed.

MozReview-Commit-ID: BnsZq3DObFa

--HG--
extra : rebase_source : 034f38799a2f9722f23bb0a2a139047d21508729
2017-05-09 10:51:52 +08:00
Alastor Wu bf83e1f904 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

--HG--
extra : rebase_source : 9be3ca9a854c25a61bf233a24e7ed7745efacb1a
2017-05-09 10:51:27 +08:00
Alastor Wu 33a5f6f6ea Bug 1357639 - part9 : wait tab event to make sure media started successfully. r=sebastian
Since the robocop tests would run on super slow emulator on try, and then we
can't wait the tab's audible state change within the MAX_WAIT_MS time. It might
need more time.

So, we should check the media has been started by waiting the "Tab:MediaPlaybackChange"
event, and then to check other tab's attribute.

In addition, move the tab attribute checking independently into new functions,
so that we would clearly see that we have four things need to check in function
checkIfMediaPlayingSuccess().
- tab's media playing state
- media notification UI
- tab's audio playing state
- audio focus state

MozReview-Commit-ID: 8S0Ems23iPX

--HG--
extra : rebase_source : 9bbe525ba1dcdf8415d034ced39d9a9a4836f1e9
2017-05-08 14:10:59 +08:00
Alastor Wu 2cd810d300 Bug 1357639 - part8 : add annotiation @RobocopTarget. r=sebastian
To make sure these functions can be used in robocop test.

MozReview-Commit-ID: KPAKOrg5Ows

--HG--
extra : rebase_source : 8ef6dd7c14e8dc0d3219aed0901793a17f945372
2017-05-08 14:10:56 +08:00
Alastor Wu 984b8d5b93 Bug 1357639 - part7 : add check for notification's content. r=sebastian
Add check for media notification's small icon, title and content text.

MozReview-Commit-ID: AOhag8gQVqs

--HG--
extra : rebase_source : 8ad1c7fa0e7796a0d873fba432c646846a0742d3
2017-05-08 14:10:54 +08:00
Alastor Wu 914b4abd82 Bug 1357639 - part6 : list all test tasks in the ctor. r=sebastian
It's easy to know what test tasks we'll run in this test.

MozReview-Commit-ID: DdtFp4pOXlC

--HG--
extra : rebase_source : 5615d2c1169ee0f59c95ab21d3e5e2fd26c99a33
2017-05-08 14:10:51 +08:00
Alastor Wu 99f67571e1 Bug 1357639 - part5 : create new type test class for media playback. r=sebastian
Create new test class for reducing the redundant code and can provide more
flexibility for adding new related test in the future.

MozReview-Commit-ID: 2f3O8vfHo12

--HG--
extra : rebase_source : 2b0d7a337c87afd8e844f435f7e605b881f1aa1b
2017-05-08 14:10:48 +08:00
Alastor Wu 7e133c4d94 Bug 1357639 - part4 : add Fennec test for media control and audio focus. r=sebastian
Add robocop tests and mochitest chrome.

MozReview-Commit-ID: JofkKRSNdB5

--HG--
extra : rebase_source : ffca871a0ea6a041beb4c14b0792dc72b8d2d40d
2017-05-08 14:10:46 +08:00
Alastor Wu 94a68ad4a5 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

--HG--
extra : rebase_source : 362f921e68d795f568816b1c0a23c0f50c5d0790
2017-05-08 14:10:43 +08:00
Alastor Wu f9a25d2f2f Bug 1357639 - part2 : use enum for audio focus states. r=sebastian
MozReview-Commit-ID: LwLxs7WS5XF

--HG--
extra : rebase_source : e220227d7e08fde2731221c34a37c25061bad8c7
2017-05-08 14:10:41 +08:00
Alastor Wu d9cc434862 Bug 1357639 - part1 : change tab's media playing state when the tab is controlled by media control. r=sebastian
MozReview-Commit-ID: HGuMXut29uB

--HG--
extra : rebase_source : fe78344533cb691562e31ce68b382d8e514b349b
2017-05-08 14:10:39 +08:00
Tom Klein 0bfa0260c1 Bug 1363551 - Remove unused TabsLayoutRecyclerAdapter. r=sebastian
MozReview-Commit-ID: EMsVY1Edime

--HG--
extra : source : ae01497c1ed8ee14a7fb26f2f8c7380cc8ee8e24
2017-05-09 17:37:02 -05:00