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

23111 Коммитов

Автор SHA1 Сообщение Дата
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
Wes Kocher e2902f93a3 Merge inbound to m-c a=merge
MozReview-Commit-ID: Fp2oBAcru51
2017-05-09 14:34:34 -07:00
Mark Banner 0ae981d837 Bug 1363353 - Apply mozilla/recommended ESLint rules to mobile/android. r=sebastian
MozReview-Commit-ID: D0oCUcq3KNB

--HG--
extra : rebase_source : 4fbfa8a79e3f311ee5332ed207600ce94b829df1
2017-05-09 13:55:49 +01:00
Mark Banner b0c63f1126 Bug 1363353 - Rename the .eslintrc files for mobile to .eslintrc.js to match the rest of the tree. r=sebastian
MozReview-Commit-ID: 8XkJGyGkOW8

--HG--
rename : mobile/android/.eslintrc => mobile/android/.eslintrc.js
rename : mobile/android/chrome/content/.eslintrc => mobile/android/chrome/content/.eslintrc.js
extra : rebase_source : 8d6a5f6fa071be4e62738075f69d15f14ec42a68
2017-05-09 13:55:21 +01:00
Dale Harvey 1857d4538d Bug 1357438 - Add form assist popup to custom tabs / webapps. r=walkingice 2017-05-09 09:01:08 -04:00
Carsten "Tomcat" Book 76ca853e3e Merge mozilla-central to mozilla-inbound 2017-05-09 14:40:11 +02:00
Gijs Kruitbosch 70316b8ea8 Bug 1358248, r=nechen,evanxd
MozReview-Commit-ID: 1EBZFcyvmY1

--HG--
extra : histedit_source : 62066947ec5c3eb6218869be6131dcae15159d74
2017-04-22 15:00:22 +01:00
Jan Henning d5d0cff6cf 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

--HG--
extra : rebase_source : 03a286ec3e1c66856d2ffb526cd4277c89b29594
2017-05-08 21:55:07 +02:00
Jan Henning 3e994206e0 Bug 1363074 - Part 1 - Clarify meaning of "isExternalURL" variable during session restore. r=walkingice
MozReview-Commit-ID: JnUiPSiqEhd

--HG--
extra : rebase_source : b66b395271bff0c33585789eb87116bca2d4d864
2017-05-08 21:51:34 +02:00
John Lin cd8259e1ee Bug 1361679 - use MediaCodec async API on supported devices. r=esawin
MediaCodec supports async callbacks since Lollipop. Buffer polling is no longer needed.

MozReview-Commit-ID: Iov65JI86i8

--HG--
extra : rebase_source : c3b0ed330e46ee2328de4d031c96f9792895c3b5
2016-12-30 13:52:08 +08:00
Wes Kocher cbfdaf8fb2 Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 5kxOZZxjMEl
2017-05-08 16:07:25 -07:00
Paolo Amadini eddc9033bf Bug 1254558 - Remove about:config preferences only used by the legacy nsIDownloadManager code. r=mak
MozReview-Commit-ID: 7XSnNdirh8s

--HG--
extra : rebase_source : 9b475be16843af7c3dd2244ef43cd34b1c8e5ea3
2017-05-05 11:51:09 +01:00
Dylan Roeh 54cf076aa4 Bug 1325021 - Reduce reliance on GeckoAppShell.getGeckoInterface to solve some custom tabs crashes. r=jchen 2017-05-08 08:48:16 -05:00
Mats Palmgren ab81bf6d9e Bug 1359411 - Backout bug 1328030 since it caused a hang which is strictly worse than the original problem. r=smaug
MozReview-Commit-ID: C12Tajtc7Vy
2017-05-07 22:54:18 +02:00
Carsten "Tomcat" Book 3e473f5e15 Merge mozilla-central to autoland 2017-05-08 10:31:16 +02:00
Jonathan Hao 6a8a4ca331 Bug 1357997 - Use ProxySelector.openConnection instead of url.openConnection. r=sebastian
MozReview-Commit-ID: CAF2Ir81Fq

--HG--
extra : rebase_source : 3e360c067f8033bf072e1f608ce531628ae493cb
2017-04-25 12:01:46 +08:00
Sebastian Hengst 6ff84ee171 Backed out changeset b50714bd8d10 (bug 1322650) for failing chrome's test_video_discovery.html and mda's test_Eviction_mp4.html, both on Android. r=backout 2017-05-05 18:55:11 +02:00
Sebastian Hengst 087bd41f0f Backed out changeset 9badb2705567 (bug 1322650) 2017-05-05 18:54:09 +02:00
Sebastian Hengst eb6ea2b139 Backed out changeset 4135178bae2b (bug 1322650) 2017-05-05 18:53:55 +02:00
Sebastian Hengst 258857a6e9 Backed out changeset b79cbaa5cf1a (bug 1322650) 2017-05-05 18:53:50 +02:00
Sebastian Hengst f3bfd1e1da Backed out changeset d6516a10c808 (bug 1322650) 2017-05-05 18:53:40 +02:00
Sebastian Hengst b66276dd92 Backed out changeset 698a25fb6e01 2017-05-05 18:53:21 +02:00
James Willcox 5d0885869a No bug, fix up checkstyle failure NOBUILD
MozReview-Commit-ID: 3itUJgA2AKg
2017-05-05 09:14:35 -05:00
James Willcox 9392b1227a Bug 1322650 - Adjust Android Flash support to API changes r=jchen
MozReview-Commit-ID: CmMINaGcTER
2017-05-05 08:56:36 -05:00
James Willcox 086a858585 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-05 08:56:34 -05:00
James Willcox e92f96eef9 Bug 1322650 - Make video decoding work with new SurfaceTexture API r=jolin
MozReview-Commit-ID: EXQ5YDSMMGL
2017-05-05 08:56:32 -05:00
James Willcox a7f7a7b630 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-05 08:56:28 -05:00
James Willcox 6b95623eac 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-05 08:56:27 -05:00
Carsten "Tomcat" Book fdc689ba16 merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
Jim Chen 8d537c0b39 Bug 1360629 - Update NDK on builders to include AArch64/ARM64 support; r=nalexander
Use a new version of the packaged NDK that includes AArch64/ARM64
support and includes the 'source.properties' file, so we can detect the
NDK version.
2017-05-04 19:19:30 -04:00
Honza Bambas a1b64b4694 Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Michael Kaply 50f2aad9c2 Bug 1320072 - Backout intent change - broke partner Google test. r=snorp 2017-05-04 12:27:35 -05:00
John Lin 89eafb3c7e Bug 1350279 - try other codecs when first one failed to create. r=esawin
Video fails to play on Sony Z3C when the media server is in a state that no hardware codec can be created unless reboot. Fallback to software codec when that happens to workaround the issue.

MozReview-Commit-ID: AaRIw7KPaF3

--HG--
extra : rebase_source : d5106d5c75c4430450a81bbe9cfd536f01ef4df9
2017-05-02 15:52:45 +08:00
Wes Kocher 4e89a77541 Merge m-c to autoland, a=merge
MozReview-Commit-ID: F7qkNALe0WT
2017-05-03 13:52:24 -07:00
Wes Kocher 21203b47b5 Merge inbound to m-c a=merge
MozReview-Commit-ID: JgXkqrOwl3N
2017-05-03 13:40:24 -07:00
Nick Alexander 0bfebf0c87 Bug 1361545 - Add "skin" flavorDimension for Photon mobile work. r=sebastian,bustage-fix
This is pretty straight-forward.

Sadly, this will require local developers to add a "skin" product
flavor to their invocations, like:

./mach gradle app:assembleLocalAustralisDebug

In addition, this shows how many different variants of the Gradle
product flavor are embedded into our automation configurations.  I
can't solve that at this time.

Since I was here, I took the time to rename "automation" to
"official", which makes "localAustralis" the default in Android
Studio, avoiding a common issue with new builders producing an APK
that doesn't include omni.ja in the IDE.

MozReview-Commit-ID: CtU7zFpNCob
2017-05-03 19:20:58 +02:00
Sebastian Hengst fcaaea05db Backed out changeset 289c6a3f7886 (bug 1361545) for busting Android gradle builds. r=backout 2017-05-03 19:19:52 +02:00
Nick Alexander 571de094b3 Bug 1361545 - Add "skin" flavorDimension for Photon mobile work. r=sebastian
This is pretty straight-forward.

Sadly, this will require local developers to add a "skin" product
flavor to their invocations, like:

./mach gradle app:assembleLocalAustralisDebug

In addition, this shows how many different variants of the Gradle
product flavor are embedded into our automation configurations.  I
can't solve that at this time.

Since I was here, I took the time to rename "automation" to
"official", which makes "localAustralis" the default in Android
Studio, avoiding a common issue with new builders producing an APK
that doesn't include omni.ja in the IDE.

MozReview-Commit-ID: CtU7zFpNCob

--HG--
extra : rebase_source : 477ef683f850ff11cfa128e17855666bb7758a7a
2017-05-02 15:27:37 -07:00
Jim Chen f915e1bd65 Bug 1352177 - 1. Add a "noLiteral" option for WrapForJNI; r=snorp
For static final fields, generate a getter instead of a literal when
specified. Used to generate bindings for runtime constants whose values
are unknown at compile time.
2017-05-03 11:36:18 -04:00
Nick Alexander 744e5386aa 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

--HG--
extra : rebase_source : 346f88882774f072316714cf637a54d771d81a9a
2017-05-02 11:49:16 -07:00
Andrzej Hunt 245eb8de9b 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

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/ActivityStreamHomeFragment.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/ActivityStreamHomeFragment.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/ActivityStreamHomeScreen.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/ActivityStreamHomeScreen.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/ActivityStreamPanel.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/ActivityStreamPanel.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/HighlightsLoader.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/HighlightsLoader.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/StreamItemAnimator.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/StreamItemAnimator.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/StreamRecyclerAdapter.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/StreamRecyclerAdapter.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/menu/ActivityStreamContextMenu.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/menu/BottomSheetContextMenu.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/menu/BottomSheetContextMenu.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/menu/PopupContextMenu.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/menu/PopupContextMenu.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/model/Highlight.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/model/Highlight.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/model/Item.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/model/Item.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/model/Metadata.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/model/Metadata.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/model/TopSite.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/model/TopSite.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/stream/HighlightItem.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/HighlightItem.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/stream/HighlightsTitle.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/HighlightsTitle.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/stream/StreamItem.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/StreamItem.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/stream/TopPanel.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/TopPanel.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/stream/WelcomePanel.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/stream/WelcomePanel.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/topsites/CirclePageIndicator.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/topsites/CirclePageIndicator.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/topsites/TopSitesCard.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/topsites/TopSitesCard.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/topsites/TopSitesPage.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/topsites/TopSitesPage.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/topsites/TopSitesPageAdapter.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/topsites/TopSitesPageAdapter.java
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/topsites/TopSitesPagerAdapter.java => mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/topsites/TopSitesPagerAdapter.java
extra : rebase_source : 517272e4feb41af8c0aec08be8d1e1bbfed93e01
2017-04-27 15:54:06 +08:00
Andrzej Hunt 9bb9ee4a8d Bug 1299949 - Pre: rename ActivityStream UI to ActivityStreamPanel r=sebastian
This will avoid conflicts with the ActivityStream helper class.

MozReview-Commit-ID: 5XNmwz4UwJo

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/home/activitystream/ActivityStream.java => mobile/android/base/java/org/mozilla/gecko/home/activitystream/ActivityStreamPanel.java
extra : rebase_source : 23000ae152f776de874053c712fb6e1a4b1ab546
2017-04-27 15:47:40 +08:00
Edouard Oger 37008cf22a Bug 1361534 - Fix typo in AndroidFxAccount. r=eoger
MozReview-Commit-ID: EhMWO9jmLJ8

--HG--
extra : rebase_source : 1ebf2aa1d3b51a53377f5c4e42c6ce2ed8cd8b26
2017-05-02 18:52:21 -04:00
Sebastian Hengst f1ec56016e Backed out changeset ecf487cbca1b (bug 1357639) for frequently failing robocop's testAudioFocus. r=backout 2017-05-02 21:41:45 +02:00
Sebastian Hengst 9c1e09ea8a Backed out changeset 48e901332b4d (bug 1357639) 2017-05-02 21:40:56 +02:00
Sebastian Hengst ca8090b07a Backed out changeset 3e7bc9a792c2 (bug 1357639) 2017-05-02 21:40:52 +02:00
Sebastian Hengst 89d2fc612c Backed out changeset acb72bf2db09 (bug 1357639) 2017-05-02 21:40:47 +02:00
Sebastian Hengst 940cadeda0 Backed out changeset 916edbdfece6 (bug 1357639) 2017-05-02 21:40:43 +02:00
Sebastian Hengst 590d539454 Backed out changeset 4b332b74aba6 (bug 1357639) 2017-05-02 21:40:39 +02:00
Sebastian Hengst 47a5a1d2e6 Backed out changeset 99c71dd11632 (bug 1357639) 2017-05-02 21:40:35 +02:00
Sebastian Hengst 1fe0046fb3 Backed out changeset d37e0ce6c7c9 (bug 1357639) 2017-05-02 21:40:30 +02:00
Nevin Chen fa7b7e4d28 Bug 1356517 - Add deep links to handle events. r=Grisha
MozReview-Commit-ID: 4OQTrbEdVtQ

--HG--
extra : rebase_source : 2d42f89cf4b0f5a4de1e5ff700c6c5229a0c6278
2017-04-25 18:01:34 +08:00
Alastor Wu b281dab7c7 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 : 13632cef16c96457ce77c01bc4330a9793ab83ad
2017-05-02 18:53:40 +08:00
Alastor Wu a947a01211 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 : 2be27f95b2bc48b998734d8e702fc084b5b93683
2017-05-02 18:53:26 +08:00
Alastor Wu 310fb8528b 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 : 9c986e6104528cb66cc6ca3b468fe49031e637db
2017-05-02 18:53:23 +08:00
Alastor Wu 56ef3aba49 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 : 02e081dbac6e91bcac92bea1dbfc5abf07293e40
2017-05-02 18:53:21 +08:00
Alastor Wu af1774e465 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 : f8a5315927cf7e10a96337468fa2dec9871b7147
2017-05-02 18:53:18 +08:00
Alastor Wu 59a4e31527 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 : 23fb8bef4066cad5238f49bb692445d9b684a84e
2017-05-02 18:53:16 +08:00
Alastor Wu fcd83aadc6 Bug 1357639 - part2 : use enum for audio focus states. r=sebastian
MozReview-Commit-ID: AQ2R6zxnONU

--HG--
extra : rebase_source : 9196ed522fee8eadbf1cfcaa77f1680f01f7f434
2017-05-02 18:53:13 +08:00
Alastor Wu a539ce2e23 Bug 1357639 - part1 : change tab's media playing state when the tab is controlled by media control. r=sebastian
MozReview-Commit-ID: 4bXkaYxqtKD

--HG--
extra : rebase_source : a0b4a378c2a0bcb04be1f0f77d25501e8d0fad57
2017-05-02 18:53:05 +08:00
Jan Henning 5161ec32f8 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

--HG--
extra : rebase_source : 71fe7c966513772701cd792c0bec1211c0d9e5e6
2017-04-28 20:48:08 +02:00
Jan Henning 28ef983d1e 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

--HG--
extra : rebase_source : d5404326e2cd4ce44a14340883dd338d14a18c05
2017-04-29 14:30:03 +02:00
Jan Henning 8409fc1a41 Bug 1360743 - Part 0 - Remove unneeded imports. r=walkingice
MozReview-Commit-ID: IfgzeaFmfOw

--HG--
extra : rebase_source : a775145310f70f9067197b934678516dca470386
2017-04-29 14:21:38 +02:00
Jan Henning 71df722cc8 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

--HG--
extra : rebase_source : bd3dc71ec1a5d4dcbf83e6c00630e0d8ab04f611
2017-04-29 15:03:41 +02:00
Nevin Chen d7fa0adb51 Bug 1355852 - Show Text selection toolbar before Android 5. r=walkingice
MozReview-Commit-ID: 9fnTXxOitag

--HG--
extra : rebase_source : 53679659da37b60e91d833cfcb70f05a0390ccc6
2017-04-28 18:38:13 +08:00
Jim Chen 49768eb480 Bug 1357874 - Disable RegExp JIT for AArch64; r=snorp
I encountered crashes in jitted regexp code in my AArch64 Fennec build.
This patch disables that for now, but obviously we want to look into the
crashes and eventually turn this back on.
2017-05-01 14:46:00 -04:00
Sebastian Hengst 42fd33ff9c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ELENTh08Be7
2017-04-29 11:10:31 +02:00
Eugen Sawin 7d8b2ff4e0 Bug 1360599 - [1.0] Add multiprocess setting intent extra to the GeckoView example app. r=snorp 2017-04-28 22:18:18 +02:00
Ralph Giles 819141aa38 Bug 1360364 - Update builders to rust 1.17.0. r=mshal
Update tooltool manifests for official builds to use repacks
of the upstream rustc 1.17.0 (56124baa9 2017-04-24) stable release.

These repacks include cargo 0.19.0-beta.1 (03efb7fc8 2017-04-23)
to include support for the RUSTC_WRAPPER environment variable
needed for use of sccache with rust code.

MozReview-Commit-ID: L9Nq2iK4GK8

--HG--
extra : rebase_source : 882b201282a0e13ed77ec5876972657eab81a562
2017-04-27 15:24:57 -07:00
Randall Barker dd168bca55 Bug 1359618 - Prevent LayerView from accessing the compositor until UiCompositorControllerChild is open r=jchen
MozReview-Commit-ID: 3SmdJx0QXW8
2017-04-28 08:37:41 -07:00
Carsten "Tomcat" Book 1045b9730a merge mozilla-inbound to mozilla-central a=merge 2017-04-28 10:36:11 +02:00
Jim Chen 7c13eebba6 Bug 1353799 - 4. Add composition event tests to testInputConnection; r=esawin
Add two tests to testInputConnection that record the sequence of
composition events during editing, and check that the sequence is what
we expected.

The first test makes sure that we reuse the current composition on the
Gecko side when setting composing text; otherwise the Facebook comment
box behaves incorrectly.

The second test makes sure that we can move the cursor inside the
current composition, to fix this particular bug.
2017-04-27 20:59:42 -04:00
Jim Chen 7c1bd4a073 Bug 1353799 - 3. Add types and timestamps in testInputConnection; r=esawin
* Include the type of the editor (input, textarea, contentEditable,
  designMode) in BasicInputConnectionTest, so we can work around the
  differences in behavior among the different editor types.

* Add timestamps to key events, because lack of timestamps was
  triggering a crash when running testInputConnection.
2017-04-27 20:59:42 -04:00
Jim Chen c3aa7c74d4 Bug 1353799 - 2. Update current composition when setting/removing spans; r=esawin
Update the composition when setting/removing spans, so that we update
the selection/cursor during a composition. However, we must limit any
updating to the current composition only (as indicated by the
keep-current-composition flag), because the Facebook comment box behaves
incorrectly if we repeatedly start and end new compositions.
2017-04-27 20:59:42 -04:00
Jim Chen faae209c85 Bug 1353799 - 1. Make icMaybeSendComposition accept a flag parameter; r=esawin
Use a flag parameter instead of individual boolean parameters to make
it more convenient to add more options.
2017-04-27 20:59:42 -04:00
Sebastian Hengst 0936d33fb8 Backed out changeset 88c2a0b2dde5 (bug 1319111) for crashing Talos. r=backout 2017-04-28 00:16:39 +02:00