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

21472 Коммитов

Автор SHA1 Сообщение Дата
Iris Hsiao 767e1e9b11 merge mozilla-inbound to mozilla-central a=merge 2016-09-26 18:34:20 +08:00
Iris Hsiao a95e0164c0 merge fx-team to mozilla-central a=merge 2016-09-26 18:29:38 +08:00
Nick Alexander 1a1eb3493b Bug 1255875 - Complain to treeherder if Android checkstyle, lint, or unittest fails. r=grisha
It's not obvious how to listen to individual errors in most cases, so
we just link to the reports for now.  Progress!

MozReview-Commit-ID: 8nGRJdpzZnO

--HG--
extra : rebase_source : e81c9b29cb03c5ba73e793512525b5c9c68ab655
extra : amend_source : ce1e2368d43d37cab8fe41cd7a978342ad3e2ea6
2016-09-23 13:58:10 -07:00
Carsten "Tomcat" Book a65e4225ef merge mozilla-inbound to mozilla-central a=merge 2016-09-23 12:05:53 +02:00
Jim Chen 7ffb25ebc2 Bug 1304145 - 5. Implement NotificationListener in NotificationClient; r=nalexander
Provide Fennec's implementation of GeckoAppShell.NotificationListener in
NotificationClient. A lot of the code was removed in an earlier patch
from GeckoAppShell, so combined with this patch, we're essentially
moving code from GeckoAppShell to NotificationClient.
2016-09-22 16:38:19 -04:00
Jim Chen ea53af2ebc Bug 1304145 - 4. Use string names instead of integer IDs for notifications; r=nalexander
Use string names instead of integer IDs to identify notifications. The
integer IDs came from the hashes of the string names, so they are not
guaranteed to be unique. Because the names from Gecko are a combination
of the site origin and notification tag, there can be unintentional
collisions, or worse, a site can intentionally make its notification
collide with and replace another site's notification.
2016-09-22 16:38:19 -04:00
Jim Chen 0841d97060 Bug 1304145 - 3. Move GeckoService and notification package to Fennec; r=nalexander
GeckoService and the notification package have some interdependencies,
so if we want to move the notification package, we have to move
GeckoService also. With that said, it's good to move GeckoService in any
case, because it's a Fennec component just like GeckoApp.

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoService.java => mobile/android/base/java/org/mozilla/gecko/GeckoService.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/notifications/AppNotificationClient.java => mobile/android/base/java/org/mozilla/gecko/notifications/AppNotificationClient.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/notifications/NotificationClient.java => mobile/android/base/java/org/mozilla/gecko/notifications/NotificationClient.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/notifications/NotificationHandler.java => mobile/android/base/java/org/mozilla/gecko/notifications/NotificationHandler.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/notifications/NotificationHelper.java => mobile/android/base/java/org/mozilla/gecko/notifications/NotificationHelper.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/notifications/NotificationReceiver.java => mobile/android/base/java/org/mozilla/gecko/notifications/NotificationReceiver.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/notifications/NotificationService.java => mobile/android/base/java/org/mozilla/gecko/notifications/NotificationService.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/notifications/ServiceNotificationClient.java => mobile/android/base/java/org/mozilla/gecko/notifications/ServiceNotificationClient.java
2016-09-22 16:38:19 -04:00
Jim Chen ae3538f775 Bug 1304145 - 2. Change GeckoAppShell's notification interface; r=nalexander
Instead of using NotificationClient directly from GeckoAppShell, add a
NotificationListener interface, which NotificationClient would
implement. This isolates NotificationClient (and the notification
package) from GeckoAppShell and lets us move the notification package to
Fennec. It also makes a cleaner interface for GeckoView consumers to
implement notification support.
2016-09-22 16:38:19 -04:00
Jim Chen a513529b7c Bug 1304145 - 1. Restrict access for GeckoAppShell JNI methods; r=nalexander
General cleanup patch: make JNI methods in GeckoAppShell private if
possible, because they're not meant to be used in Java from outside of
GeckoAppShell.
2016-09-22 16:38:19 -04:00
Rob Wu cbe00aff2e Bug 1296900 - Add test for availability of default WebExtension APIs r=kmag
MozReview-Commit-ID: LIr5Nsv51I3

--HG--
extra : rebase_source : 54e4b9169c545cb6359c7a0273dfaa54369da231
2016-08-20 22:21:45 -07:00
Grigory Kruglov 2d973e1eac Bug 1305182 - Release thumbnailClient in the unittest tearDown r=ahunt
MozReview-Commit-ID: KoW42T57gna

--HG--
extra : rebase_source : 70a80b90e88a4fb679da8c3907d78a645a7b9eaa
2016-09-23 16:43:10 -07:00
Wes Kocher b77ba3eb2a Backed out 2 changesets (bug 1296900) for mochitest failures in test_ext_all_apis.html a=backout
Backed out changeset c37cf3cfd39c (bug 1296900)
Backed out changeset 998ed8336288 (bug 1296900)
2016-09-23 16:15:05 -07:00
Grigory Kruglov 9bc2b883fc Bug 1302601 - Fix broken tests - poor method override r=ahunt
MozReview-Commit-ID: DX2gTqXngiq

--HG--
extra : rebase_source : 506c8ac43b3ab39165614815856e4593fb668e64
2016-09-23 13:27:45 -07:00
Rob Wu e31aa32c80 Bug 1296900 - Add test for availability of default WebExtension APIs r=kmag
MozReview-Commit-ID: LIr5Nsv51I3

--HG--
extra : rebase_source : 00f17e5b9b38b4a658b4b2a011ff6061a3f520b0
2016-08-20 22:21:45 -07:00
Grigory Kruglov 0f27194436 Bug 1300094 - Update robolectric to 3.1.2 r=sebastian
MozReview-Commit-ID: KuvzMbZ2n1q

--HG--
extra : rebase_source : e3e9fde87f69c8aa2c5f74de2c497441962486fd
2016-09-22 13:42:42 -07:00
Grigory Kruglov 1e4e8c6e6e Bug 1300094 - Update Gradle to 2.14.1 and Gradle Plugin to 2.1.3 r=sebastian
MozReview-Commit-ID: KDimL7VeEA2

--HG--
extra : rebase_source : 713c680827562400d814ad32233b96d1a47a101a
2016-09-22 14:31:01 -07:00
Michael Comella d5da1a9162 Bug 1290882 - Remove 'Press back to exit' snackbar when entering fullscreen mode. r=ahunt
We decided to remove it because:
 * Modern video controls include an exit fullscreen button
 * After bug 1031519, you have to swipe down from the top of the screen to
display the soft back button so the copy does not make sense.

Note that the `MozShowFullScreenWarning` event was removed previously in the
platform in [1] so we remove the listener attachment here without replacing it.

[1]: https://hg.mozilla.org/integration/fx-team/rev/a6a5f79e630d

MozReview-Commit-ID: HwyyUkWkUUH

--HG--
extra : rebase_source : 99b81c1f71aca357c3a9ea34e63fc7d20bed994f
2016-09-21 14:47:36 -07:00
Kilik Kuo dc3bf0fbf7 Bug 1302331 - [Part2] Make CryptoInfo as an argument for method CodecProxy.input. r=jchen,jolin
MozReview-Commit-ID: JeqNNixbRvv

--HG--
extra : rebase_source : c99d875c2a992b098dc4e34d0831f4bb6f8ac7e4
2016-09-22 14:07:56 +08:00
Kilik Kuo 892fcf2a09 Bug 1302331 - [Part1] Support MediaCodec.CryptoInfo in Sample class r=jchen,jolin
MozReview-Commit-ID: LT89uvRxm4z

--HG--
extra : rebase_source : f395efbaeca9271d1574588790f9c68fea8e1335
2016-09-17 13:17:33 +08:00
Kartikaya Gupta c0e51bca0a Bug 1301593 - Block versions of the Galaxy Note 4 from using the dynamic toolbar as well. r=sebastian
MozReview-Commit-ID: KOlIwP8xLhy

--HG--
extra : rebase_source : cda002731a14235e52e5d4b6644b3aa1bfe4acf7
2016-09-13 11:42:58 -04:00
Carsten "Tomcat" Book cae9054451 Merge mozilla-central to autoland 2016-09-22 13:44:33 +02:00
Carsten "Tomcat" Book cce863628d merge fx-team to mozilla-central a=merge 2016-09-22 11:54:05 +02:00
Jan Henning 94429143e5 Bug 1304168 - Use correct function name to remove event listener. r=sebastian
MozReview-Commit-ID: HJgrdLstQ3R

--HG--
extra : rebase_source : 422f45586bef02499e59864d3f449e48567bb18d
2016-09-20 22:20:23 +02:00
Carsten "Tomcat" Book dd33962ca2 Merge mozilla-central to fx-team 2016-09-21 12:08:57 +02:00
Carsten "Tomcat" Book 4f900773f5 merge mozilla-inbound to mozilla-central a=merge 2016-09-21 12:03:31 +02:00
Gregory Szorc 08197be0d0 Backed out changeset e6b3befb87a2 (bug 1300807) for eslint bustage 2016-09-20 19:10:41 -07:00
James Cheng afa895be17 Bug 1297556 - Add telemetry to know how many crashes happens in decoding process. r=bsmedberg, r=jolin
MozReview-Commit-ID: 52hhddXOvL3

--HG--
extra : transplant_source : C%B8D%F2%DF%20%91wV%CC%D8b%5D%97%80%9E%93%92FR
2016-09-19 15:47:55 +08:00
Matthew Wein 00866fea33 Bug 1300807 - Switch to using a uuid for the PageAction ID. r=kmag
MozReview-Commit-ID: 4jlz9gdUuQd

--HG--
extra : transplant_source : %7B%96%12%EB%DF%FCvgv%25%15%EA1Z%E9%5BN%0FM%99
2016-09-13 11:13:40 -07:00
Nick Alexander b316681623 Bug 1303468 - Follow-up: Unbust Gradle lint. r=me
MozReview-Commit-ID: IWB0CMVuNPr
2016-09-19 14:54:24 -07:00
Nick Alexander 0714ea6615 Bug 1303468 - Follow-up: Unbust Gradle builds. r=me
MozReview-Commit-ID: IbqnIC4L83A

--HG--
extra : rebase_source : 3af27bf38c5e7ec93ba1835fa3f9c6d26675551e
2016-09-19 14:24:13 -07:00
Nick Alexander 2a72ea59a4 Bug 1303468 - Part 2: Move Fennec- and Gradle-specific file back to base/. r=jchen
This is only there to silence the linter.

MozReview-Commit-ID: 8zEDsrbjyeo

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/UnusedResourcesUtil.java => mobile/android/base/java/org/mozilla/gecko/util/UnusedResourcesUtil.java
extra : rebase_source : be9a886cc2d28a4336690255279f9cf50e9ed047
extra : histedit_source : 43c4512d56f5a01f04ecada6a493107b6ac9581f
2016-09-16 15:55:01 -07:00
Nick Alexander 94886d9a99 Bug 1303468 - Part 1: Move more things into GeckoView. r=jchen
MozReview-Commit-ID: CEjyq0TFn6j

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/SysInfo.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/SysInfo.java
rename : mobile/android/base/java/org/mozilla/gecko/annotation/JNITarget.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/annotation/JNITarget.java
rename : mobile/android/base/java/org/mozilla/gecko/annotation/ReflectionTarget.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/annotation/ReflectionTarget.java
rename : mobile/android/base/java/org/mozilla/gecko/annotation/RobocopTarget.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/annotation/RobocopTarget.java
rename : mobile/android/base/java/org/mozilla/gecko/annotation/WebRTCJNITarget.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/annotation/WebRTCJNITarget.java
rename : mobile/android/base/java/org/mozilla/gecko/annotation/WrapForJNI.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/annotation/WrapForJNI.java
extra : rebase_source : aa34c4b5333ed1db01ae5437946e9e48e136c9e4
extra : histedit_source : 75cc1703f895894c1a5a55f1c5cb94d4cbde5b8e
2016-09-16 15:53:39 -07:00
MDTsai f6383735e1 Bug 1301619 - Update Firefox android User Agent override. r=miket
Remove following domains from ua-update.json.in:
 auctions.yahoo.co.jp
 news.yahoo.co.jp
 shopping.yahoo.co.jp
 travel.yahoo.co.jp
 sports.yahoo.co.jp
 mixi.jp

Update bug number inline
2016-09-12 20:57:00 -04:00
Phil Ringnalda 43631e2cd1 Backed out 2 changesets (bug 1296900) for est_ext_all_apis.html | failures
Backed out changeset fa509c880990 (bug 1296900)
Backed out changeset 06ee8b3640af (bug 1296900)
2016-09-21 18:59:22 -07:00
Rob Wu e081e458f4 Bug 1296900 - Add test for availability of default WebExtension APIs r=kmag
MozReview-Commit-ID: LIr5Nsv51I3

--HG--
extra : rebase_source : 75791499515f797267c397ac2b9e9b0c81339a02
2016-08-20 22:21:45 -07:00
Jim Chen 93c5b51e4a Bug 1303806 - 1. Move classes from geckoview to Fennec; r=nalexander
ANRReporter is a telemetry tool that belongs in Fennec code.

GeckoJavaSampler is a developer tool that belongs in Fennec code.

SwipeDismissListViewTouchListener is only used in FormAssistPopup, which
is no longer referenced in geckoview code.

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/ANRReporter.java => mobile/android/base/java/org/mozilla/gecko/ANRReporter.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoJavaSampler.java => mobile/android/base/java/org/mozilla/gecko/GeckoJavaSampler.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/widget/SwipeDismissListViewTouchListener.java => mobile/android/base/java/org/mozilla/gecko/widget/SwipeDismissListViewTouchListener.java
2016-09-20 17:42:08 -04:00
James Willcox c660f5d482 Bug 1301043 - Remove HLS player if you switch tabs in Fennec r=ahunt 2016-09-20 15:54:00 -05:00
Carsten "Tomcat" Book 17d545681a Merge mozilla-central to mozilla-inbound 2016-09-20 12:02:20 +02:00
Matthew Wein 7c9e612290 Bug 1300807 - Switch to using a uuid for the PageAction ID. r=kmag
MozReview-Commit-ID: 4jlz9gdUuQd

--HG--
extra : rebase_source : e264242501856f7859dd5ca85bc81093d7929a25
2016-09-13 11:13:40 -07:00
James Cheng 8998232dfa Bug 1302336 - Rename ICodecManager into IMediaManager. r=jolin
MozReview-Commit-ID: JGIW3BfAwCI

--HG--
extra : rebase_source : fc520f9badfffaea77d3ed54794ff1c74c453078
2016-09-14 11:07:45 +08:00
Nicholas Hurley 57433e2050 Bug 1296280 (part 3) - Set HPACK receive buffer size appropriately for the platform r=mcmanus
MozReview-Commit-ID: DfckEZfEd10

--HG--
extra : rebase_source : 1c6915382842c35261b8800d73719cd41deb0b8d
2016-09-06 12:48:41 -07:00
Randall Barker 222a065e38 Bug 1294707 - Part 1, Revert Fennec so that it treats mouse clicks as touch events r=kats 2016-09-16 14:37:41 -07:00
Wes Kocher 0677d5dc43 Merge m-c to inbound, a=merge 2016-09-16 14:35:12 -07:00
Wes Kocher 76bf2680e6 Merge inbound to m-c a=merge CLOSED TREE 2016-09-16 14:31:34 -07:00
Jan Henning 9d8c12b79f Bug 1302424 - Check panelStateChangeListener isn't null before using it. r=Grisha
MozReview-Commit-ID: GogUQ4edJvU

--HG--
extra : rebase_source : 9b5072ab2b5b8eea5af4023e3f8de79cafe4b8b5
2016-09-16 17:38:41 +02:00
Jim Chen cabea0c515 Bug 1291375 - 3. Separate Fennec JNI binding generation; r=nalexander r=snorp
Separate compiled JARs into GECKOVIEW_JARS and FENNEC_JARS, and run
AnnotationProcessor separately on each set. The GeckoView bindings are
put into widget/android/GeneratedJNI* (same as before), while the
Fennec-specific bindings are put into widget/android/fennec/FennecJNI*.
2016-09-16 15:13:48 -04:00
Jim Chen 3965c7e895 Bug 1291375 - 1. Compile separate gecko-view.jar; r=nalexander
Compile geckoview sources into a separate gecko-view.jar file, apart
from gecko-browser.jar. This lets us separate JNI binding generation,
among other things.
2016-09-16 15:13:47 -04:00
Dylan Roeh 0a42c7bfec Bug 1300574 - Use the back button for navigation in custom tabs when possible. r=snorp 2016-09-16 09:21:09 -05:00
Dragana Damjanovic 28e47547d6 Bug 1277895 - Remove one new line from http auth prompt message. r=dolske 2016-09-16 09:24:26 +02:00
Wes Kocher 447769a520 Merge fx-team to central, a=merge 2016-09-15 16:35:46 -07:00
Carsten "Tomcat" Book e4ded7fc61 Merge mozilla-central to fx-team 2016-09-15 12:07:34 +02:00
Matthew Wein 56c73ad672 Bug 1300808 - Only load options pages on Android for OPTIONS_TYPE_INLINE. r=kmag
MozReview-Commit-ID: DF739YRjxOb

--HG--
extra : transplant_source : %E4M%DB%A6%CB%DC%40%F5%BC%06%84%A0%CB%E3%05%8E%AAC%2A%16
2016-09-14 13:59:40 -07:00
Jim Chen 13d9bdb41d Bug 1258472 - 2. Move guest mode state management to GeckoProfile; r=nalexander
Because guest mode is intimately tied to the profile, it'd be hard to
keep guest mode out of geckoview code entirely, But we also don't want
any dependency on GuestSession from geckoview code, so this patch moves
the part of GuestSession that manages guest mode state to GeckoProfile.
2016-09-14 13:33:09 -04:00
Jim Chen dd14f982bb Bug 1258472 - 1. Start first-run telemetry session outside of GeckoProfile; r=nalexander
Move the first-run telemetry session from GeckoProfile to BrowserApp, so
there is no longer any dependency on Telemetry from inside GeckoProfile.
2016-09-14 13:33:09 -04:00
Jim Chen 5113e2786e Bug 1291384 - 2. Convert GeckoProfile.getDB calls to BrowserDB.from calls; r=nalexander
Mass convert GeckoProfile.getDB() calls to BrowserDB.from() calls,
whether using Context or GeckoProfile.
2016-09-14 12:46:50 -04:00
Jim Chen fef2725577 Bug 1291384 - 1. Take BrowserDB out of GeckoProfile; r=nalexander
Remove references to BrowserDB and its factory from GeckoProfile.
Instead of keeping the DB in mDB, GeckoProfile now keeps an arbitrary
object in mData. Using a data object lets us avoid needing another map
to map profiles to DBs. This feature could be very useful for GeckoView
consumers as well.

The new way to get a BrowserDB from a profile/context is through
BrowserDB.from(Context) or BrowserDB.from(GeckoProfile), which takes
care of creating a local DB if necessary and associating the DB with the
profile.
2016-09-14 12:46:50 -04:00
Jim Chen 3a8af38a02 Bug 1301515 - Remove FormAssistPopup dependency in geckoview; r=sebastian
Remove the input method change notification that GeckoInputConnection
sends to FormAssistPopup, so there's no dependency on FormAssistPopup
from inside GeckoInputConnection or GeckoInterface. Instead,
FormAssistPopup now actively queries the current input method, and
performs blocklisting based on that.
2016-09-14 12:43:36 -04:00
Jim Chen cbdc48211c Bug 1291385 - 3. Don't send viewport flush message; r=snorp
We used to use it to sync viewport metrics between Gecko and Java, but I
don't think this is needed anymore.
2016-09-14 12:43:36 -04:00
Jim Chen de52df3d2a Bug 1291385 - 2 .Move restrictions package from geckoview to Fennec; r=nalexander
The restrictions package really belongs in Fennec code rather than in
geckoview code. The move also eliminates some dependency errors because
the restrictions package references some classes in Fennec code.

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/DefaultConfiguration.java => mobile/android/base/java/org/mozilla/gecko/restrictions/DefaultConfiguration.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/GuestProfileConfiguration.java => mobile/android/base/java/org/mozilla/gecko/restrictions/GuestProfileConfiguration.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/Restrictable.java => mobile/android/base/java/org/mozilla/gecko/restrictions/Restrictable.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/RestrictedProfileConfiguration.java => mobile/android/base/java/org/mozilla/gecko/restrictions/RestrictedProfileConfiguration.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/RestrictionCache.java => mobile/android/base/java/org/mozilla/gecko/restrictions/RestrictionCache.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/RestrictionConfiguration.java => mobile/android/base/java/org/mozilla/gecko/restrictions/RestrictionConfiguration.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/RestrictionProvider.java => mobile/android/base/java/org/mozilla/gecko/restrictions/RestrictionProvider.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/restrictions/Restrictions.java => mobile/android/base/java/org/mozilla/gecko/restrictions/Restrictions.java
2016-09-14 12:43:36 -04:00
Jim Chen fa1430b7fc Bug 1291385 - 1. Remove geckoview dependency on certain GeckoApp constants; r=sebastian
Code in geckoview depends on several string constants in GeckoApp.
This patch moves PREFS_OOM_EXCEPTION and ACTION_ALERT_CALLBACK from
GeckoApp to GeckoAppShell, to reverse the dependency. Ideally, we'd want
those constants to not be used or used differently in geckoview code,
but this is a quick workaround for now. GeckoThread uses
GeckoApp.ACTION_HOMESCREEN_SHORTCUT, but that block of code is actually
obsolete, so this patch removes the code block and the dependency.
2016-09-14 12:43:36 -04:00
Jim Chen c51900d074 Bug 1258470 - 3. Small optimizations in ThumbnailHelper; r=nalexander
This patch includes a small memory optimization of using ArrayList and
`volatile int` for storing the pending thumbnails list and pending
width, instead of using LinkedList and AtomicInteger, respectively.

The patch also fixes a possible race condition due to calling
processNextThumbnail outside of a lock. Now it must be called inside a
lock and its name is changed to reflect that.
2016-09-14 12:43:36 -04:00
Jim Chen 3013200dba Bug 1258470 - 2. Move thumbnail code out of BitmapUtils; r=nalexander
Move the "thumbnail:" handler out of BitmapUtils and into
ThumbnailHelper and PromptListItem.

The patch adds two overloads of the getAndProcessThumbnailFor method in
ThumbnailHelper, which handle the tasks of getting a thumbnail for a
specific tab and calling a given BitmapLoader.

Because only PromptListItem makes use of the "thumbnail:" convention,
the actual handling of "thumbnail:" is moved to PromptListItem, which
calls ThumbnailHelper to get the thumbnail.
2016-09-14 12:43:36 -04:00
Jim Chen bdb35912c7 Bug 1258470 - 1. Remove RTL and ZoomConstraints variables from gfx; r=rbarker
We no longer send viewport metadata, so we don't actually make use of
the RTL and ZoomConstraints variables we keep in Java. There is a single
usage of an RTL flag in ImmutableViewportMetrics.offsetViewportByAndClamp,
but I think the two branches are equivalent, so the RTL flag is not needed
there either.
2016-09-14 12:43:35 -04:00
Kartikaya Gupta 7522e70f83 Bug 1302452 - Rip out the filler view inside LayerView since we don't support older Android versions any more. r=rbarker
MozReview-Commit-ID: In4imULuo1t
2016-09-14 11:02:37 -04:00
Matthew Noorenberghe d5c4cc5f59 Bug 1298543 - Fix test_prompt_http.html for e10s. r=Dolske
Don't actually test doorhanger notifications since they are only on the desktop browser and browser chrome tests already check them.

The Android notifyObservers additions aren't used in this patch but I added them for consistency and because we should start to use them for cross-platform tests that check if a doorhanger appears.

MozReview-Commit-ID: B5wK8oqu0h7

--HG--
rename : toolkit/components/passwordmgr/test/notification_common.js => toolkit/components/passwordmgr/test/chrome/notification_common.js
extra : rebase_source : 741f45a7dd64a1b7043040bec90bef4e5fd86c0e
2016-09-08 02:12:25 -07:00
Jan Henning 380db6505a Bug 1300647 - Part 2 - Test that the session store correctly handles the "Tab:KeepZombified" notification. r=ahunt
MozReview-Commit-ID: 2x9V4o5iPDg

--HG--
extra : rebase_source : 167366635e7fcd751acf1ed05e9a7c6532f5ad44
2016-09-10 23:01:10 +02:00
Jan Henning d54010ee1f Bug 1300647 - Part 1 - Don't bother reloading a zombified tab if we're about to exit the app. r=ahunt
When pressing the back button reaches the beginning of session history for a tab opened from an external app, we both close the tab and send Firefox into background. Closing the tab leads to some other tab getting selected instead - if that other tab was zombified, this means that we'll then start restoring it.

This behaviour is
- visibly distracting, as that other tab will be visible for a split second while it starts reloading before Firefox finally disappears into the background
- wasteful of resources - while restoring a zombified tab is usually done from cache, at the very least we'll waste some CPU cycles reloading a tab even though we're in background

Therefore, in this situation the UI now alerts the session store that it needn't bother restoring that other tab if it's in a zombie state. Instead, we'll restore it the next time Firefox comes into foreground - if the tab is still selected by then.

MozReview-Commit-ID: 3FcjCZrJ0Ds

--HG--
extra : rebase_source : d071884dd1e78b7da470b042e244093e797dde61
2016-09-13 20:46:03 +02:00
Jan Henning d4e73bbc69 Bug 1301016 - Part 2 - Test scroll position restoring on reader mode pages. r=ahunt
MozReview-Commit-ID: D36u8kUD67g

--HG--
extra : rebase_source : d088ab20975dd1babbe6e7e438c371923e6d7139
2016-09-11 16:03:26 +02:00
Jan Henning eaed42e5c6 Bug 1301016 - Part 1 - Wait for custom event instead of pageshow for scroll position restoring in reader mode. r=ahunt
Some further post-processing happens after loading a page in reader mode, so the pageshow event is too early for restoring the scroll position.

The fix is to do the same thing that desktop does in bug 1153393 and wait for a custom event instead.

MozReview-Commit-ID: DuMA0JxnYEY

--HG--
extra : rebase_source : 4b24fedcea974cef4d916fc7e59768c160728b0c
2016-09-08 23:00:08 +02:00
Sebastian Hengst d3a3614688 Backed out changeset 2b996739ade2 (bug 1302452) for failing test_group_mouseevents.html on Android. r=backout on a CLOSED TREE 2016-09-13 23:57:10 +02:00
Kartikaya Gupta e1247cb010 Bug 1302452 - Rip out the filler view inside LayerView since we don't support older Android versions any more. r=rbarker
MozReview-Commit-ID: 5LrWNHmnUR5

--HG--
extra : rebase_source : 7e262a1c15ea014b646da70c731ec36fd9669dfb
2016-09-13 11:13:35 -04:00
Grigory Kruglov 01023ffde8 Bug 1300222 - Trigger heads-up notification mode for incoming tabs r=ahunt
MozReview-Commit-ID: JvEeWIizQVK

--HG--
extra : rebase_source : 8f4d4c5e07b3e2d3044ca8bcb7e6d00ffecbda45
2016-09-09 16:51:40 -07:00
Jan Henning 6e6cb544cc Bug 1277978 - Part 5 - Once we can access the panelStateChangeListener, use it to retrieve the cached tabs count when initialising the HistoryAdapter. r=liuche
While passing the cached tabs count to the HistoryAdapter in its constructor greatly simplifies getting the cached count into the adapter before the RecyclerView initialises, this relies on the History panel having the panelStateChangeListener available before the HistoryAdapter is created in onCreate().

MozReview-Commit-ID: 64IbAe6SaEq

--HG--
extra : rebase_source : fd6f9a4f1ca92804cd0bca4a355abf17bb784572
extra : source : cb1b540364d1846b58fb5f6ac329935d3f5201bc
2016-08-29 20:51:21 +02:00
Jan Henning a9f09e54eb Bug 1277978 - Part 4 - Actually cache the recent tabs count when it updates. r=liuche
MozReview-Commit-ID: JUsM3qdxhIr

--HG--
extra : rebase_source : 77803ad4760a09088ce96440ef070ce7582673fe
extra : source : cbb19ca2d2454c1d4f938f96e0e34f54d93bf006
2016-09-10 13:51:35 +02:00
Jan Henning 61e7471407 Bug 1277978 - Part 3 - Allow the RecentTabsAdapter to indicate whether the tab count is reliable. r=liuche
After we've set the cached tabs count to display within the history adapter, we don't want to revise that number downwards as long as the RecentTabsAdapter hasn't yet checked all of its data sources.

MozReview-Commit-ID: BMpiaEb3kGQ

--HG--
extra : rebase_source : 433c041f1073fe8aff1b4dfc5620c4544e8478d8
extra : source : ec7d53dea918724ff888db3327186d6b09a5dfac
2016-08-20 17:49:34 +02:00
Jan Henning 077099afe5 Bug 1277978 - Part 2 - Allow saving a cached recent tabs count in BrowserApp. r=liuche
Getting the total number of recently closed tabs involves waiting for Gecko to actually send the closed tabs to the Java UI. This means that (unless there are some "Tabs from last time" present) when showing the history panel we always start out with the Recently closed folder hidden and then unhide (and animate) it once we've finally received the closed tabs.

Because this is visually distracting, we should cache the closed tabs count somewhere, so we can decide on the smart folder visibility as soon as the CombinedHistoryAdapter initialises.

MozReview-Commit-ID: 8uYCbM7eiSt

--HG--
extra : rebase_source : 1afe3c8a0f184272d5d05913ef3af8050b6e5d06
2016-08-29 20:03:12 +02:00
Jan Henning 35dc8e4b0e Bug 1277978 - Part 1 - Hide Recent Tabs smart folder if there aren't any closed tabs to be shown. r=liuche,rnewman
This involves making the number of visible smart folders dynamic, so the history adapter can properly display its contents.

MozReview-Commit-ID: 6b4V6IHB7BE

--HG--
extra : rebase_source : fc2e70f5ed0aa1961ffe464fcf67a1488f8eb91b
extra : source : 2b9260c4018b1005dea01e2b2c4548643db4264d
2016-09-04 15:16:20 +02:00
Jan Henning 329895d83a Bug 1277978 - Part 0b - Add target api annotation in BrowserApp. r=liuche
Otherwise Android Studio complains because it doesn't recognise our version switch.

MozReview-Commit-ID: 2QpD3nNSryK

--HG--
extra : rebase_source : 6b82ccf8c3fedee10688b4078882222cf231cb33
2016-08-20 16:59:59 +02:00
Jan Henning bababef2dd Bug 1277978 - Part 0a - Fix typo. r=liuche
MozReview-Commit-ID: 50wzRmX7iTz

--HG--
extra : rebase_source : 4e93b0aca605427fa8adfe9a179bd93884a9a7c8
2016-08-16 20:42:20 +02:00
Patrick McManus 1d5bcef263 Bug 1301117 - update opportunisitic encryption r=hurley 2016-08-16 15:51:18 -04:00
Carsten "Tomcat" Book 0f2c669a48 merge mozilla-inbound to mozilla-central a=merge 2016-09-09 12:02:43 +02:00
Alastor Wu e9a55e8604 Bug 1290467 - part10 : update audio focus related control operations. r=sebastian
Except controlling audio focus from gecko, the MediaControlService can also
decide whether needs to request or abandon audio focus.

MozReview-Commit-ID: G3iSYwd24JZ

--HG--
extra : rebase_source : dd29207d8c08176cd7a57f08d3361e4f29c4095a
2016-09-09 09:51:12 +08:00
Alastor Wu ff8012b391 Bug 1290467 - part9 : remove 'ACTION_REMOVE_CONTROL'. r=sebastian
Remove 'ACTION_REMOVE_CONTROL' because it's as same as 'ACTION_STOP'.

MozReview-Commit-ID: 6KOj8srEuJA

--HG--
extra : rebase_source : 3b92e0f3d6485af4e9be97b1423804401b1496c7
2016-09-09 09:51:10 +08:00
Alastor Wu b9bcdbf114 Bug 1290467 - part8 : rename 'ACTION_PLAY' to 'ACTION_RESUME'. r=sebastian
'ACTION_RESUME' should be more suit for its operation.

MozReview-Commit-ID: 4FRHaydVKu5

--HG--
extra : rebase_source : 76b405bf0b7a27f2ea7f27283230df146b71ccfc
2016-09-09 09:51:08 +08:00
Alastor Wu 75c540b002 Bug 1290467 - part6 : remove redudant space. r=sebastian
remove one redudant space.

MozReview-Commit-ID: 1PdKL1EALAq

--HG--
extra : rebase_source : 20ab4fd13893b7515a8baebac3df9a06af7bb550
2016-09-09 09:50:32 +08:00
Alastor Wu 97207d40a6 Bug 1290467 - part5 : change service's life time. r=sebastian
Now the life time of the MediaControlService would be as same as the Fennec app.
To make code flow more easily, requesting/abandoning the audio focus wouldn't
affect the media control.

We would mainly communicate with the media control via TabEvents.

MozReview-Commit-ID: KT59bII0HuN

--HG--
extra : rebase_source : d8f2c810f24ef6ea72a274db2b432ca8f8876d8e
2016-09-09 09:50:30 +08:00
Alastor Wu 5c5e340476 Bug 1290467 - part4 : create helper function. r=sebastian
wrap some code into initialize() and shutdown().

MozReview-Commit-ID: AiyABlyDEME

--HG--
extra : rebase_source : e13f4d1eef46207edd9d8d8cc956c2644f3b1e38
2016-09-09 09:50:28 +08:00
Alastor Wu 8b77ea4d53 Bug 1290467 - part3 : notify MediaControlService with event 'MEDIA_PLAYING_CHANGE'. r=sebastian
The 'MEDIA_PLAYING_CHANGE' is used for controling media control interface and
the 'AUDIO_PLAYING_CHANGE' is used for showing the tab sound indicator.

MozReview-Commit-ID: 8hZjC77Ju71

--HG--
extra : rebase_source : 3699ea482e89a5c2535defce8ca2689a180d5c49
2016-09-09 09:50:25 +08:00
Wes Kocher c067786818 Merge m-c to inbound, a=merge CLOSED TREE 2016-09-08 15:28:31 -07:00
Michael Kaply a3ca166bf8 Bug 1298500 - Don't explicitly set the startpane pref. r=liuche 2016-09-08 14:49:19 -05:00
Wes Kocher b916384275 Merge inbound to m-c a=merge 2016-09-08 15:21:19 -07:00
Wes Kocher 8fbe7c895b Merge fx-team to central, a=merge 2016-09-08 15:10:55 -07:00
Carsten "Tomcat" Book e3c2ddf887 Merge mozilla-central to mozilla-inbound 2016-09-08 12:42:45 +02:00
Carsten "Tomcat" Book f4a16a723a merge mozilla-inbound to mozilla-central a=merge 2016-09-08 12:01:17 +02:00
Arseny Malkov 56ceb6506c Bug 1295531 - Change insets of bookmark arrow to look like history arrow. r=sebastian
MozReview-Commit-ID: AVDEnNDXvXX

--HG--
extra : rebase_source : cfca38f394ae75410d2b49d08161533ebd04c1d8
2016-09-08 11:45:33 +02:00
Makoto Kato 57fc90802b Bug 1299755 - Remove updates.properties from APK. r=sebastian
updates.properties uses on Fennec/XUL.  But after bug 786380, we use native version for update service.

MozReview-Commit-ID: CREAeLdlrJH

--HG--
extra : rebase_source : 1412c541e4c4f9e7d1bb98e2466ae6cc60c062e0
extra : histedit_source : 7a431e1ed942d9766fcd690e4b01bc7774203ba7
2016-09-08 13:25:59 +09:00
Benjamin Dahse 831a288828 Bug 961335 - Add ICODecoder Robocop tests r=ahunt
MozReview-Commit-ID: 9jtcfZCjAbd

--HG--
extra : rebase_source : 4a10ebd2cf90c9173a18990682014ee2ee77432a
2016-09-07 15:28:06 -07:00
Kannan Vijayan c06523ac3b Bug 1292639 - Ask user permission before allowing navigator.publishServer. r=mconley r=ehsan r=sebastian 2016-09-08 14:36:53 -04:00
Andrzej Hunt 00e0685ea6 Bug 1300532 - Post: Rename isEnteringReaderMode()'s parameters for more clarity r=sebastian
MozReview-Commit-ID: 7Wub31YLGyS

--HG--
extra : rebase_source : f6a820f6cf2ca030897daad2f6bf215a78d82704
2016-09-06 15:53:06 -07:00
Andrzej Hunt 9590f3241f Bug 1300532 - Ensure old and new URL are ordered correctly to show prompt when entering ReaderView r=sebastian
MozReview-Commit-ID: 4Yql0m3JV6M

--HG--
extra : rebase_source : adde15b6f061c6ca64021416e7d6b09c35e2b301
2016-09-06 15:52:09 -07:00
Wes Kocher ac33516b3c Merge m-c to autoland, a=merge 2016-09-07 18:07:50 -07:00
Wes Kocher 5cbc382303 Merge inbound to m-c a=merge 2016-09-07 17:54:24 -07:00
Carsten "Tomcat" Book 7c6c7db247 Merge mozilla-central to autoland 2016-09-07 17:26:11 +02:00
Carsten "Tomcat" Book 1c61ba654e merge mozilla-inbound to mozilla-central a=merge 2016-09-07 17:20:12 +02:00
Kannan Vijayan f671b30c0f Backout cbe18f181112 for crashes - bug 1292639 2016-09-07 13:43:40 -04:00
Carsten "Tomcat" Book d98e95abb8 Merge mozilla-central to autoland 2016-09-08 12:51:52 +02:00
Matthew Wein cfad685755 Bug 1298178 - Support mozAddonManager on Fennec by importing amWebAPI.js r=rhelmer
MozReview-Commit-ID: GoaYn7oJYAF

--HG--
extra : rebase_source : 3976cf2f2210e4a5c989a806e6f863ec9782547e
2016-09-01 20:50:05 +01:00
Ralph Giles 186cacb131 Bug 1296403 - Update tooltool rustc to 1.11.0. r=mshal
Repacks of upstream builds of rust 1.11.0 stable with std libraries
for the appropriate targets. Remove the separate rust-std package
references since the new repacks include the necessary targets.

Also update clang and hazard builds to the latest toolchain.

MozReview-Commit-ID: K7oBxQZnLPu

--HG--
extra : rebase_source : 9f339ff52e9e2f6c28d4bb7a734b9f0eae43a47a
2016-09-06 13:09:56 -07:00
Andrzej Hunt ceca466475 Bug 1299524 - Disable FaviconView corner rounding in Activity Stream topsites r=sebastian
We use the FaviconView to fill the majority of the card (i.e. full width, and approx 75% of the height)
- in that scenario rounding the corners looks odd.

MozReview-Commit-ID: 1e5HAwfcV5

--HG--
extra : rebase_source : e6c5168025e1ac3ad941e8fd6207960b37442373
2016-09-06 10:48:26 -07:00
Andrzej Hunt 0bee5d51ae Bug 1299524 - Allow disabling FaviconView corner rounding via enableRoundCorners attribute r=sebastian
MozReview-Commit-ID: 1qtt7xlTsHP

--HG--
extra : rebase_source : e24982d035fb3357eb1efd4a5952b968eb7af3dd
2016-09-06 10:46:47 -07:00
Sebastian Kaspari a5a657d556 Bug 1300543 - IconDownloader: Use final keyword where appropriate. r=ahunt
MozReview-Commit-ID: DhWIRPZf7rg

--HG--
extra : rebase_source : 797987c944e445a4ea7e00a2373c83c2003c0c1a
2016-09-06 13:58:35 +02:00
Sebastian Kaspari 58d250abaa Bug 1300543 - IconDownloader.downloadAndDecodeImage(): Correctly assign and close stream. r=ahunt
MozReview-Commit-ID: CYEOCCpraOr

--HG--
extra : rebase_source : f0e05c79c531857d73ca5aea3f1dbabedeed6e23
2016-09-06 13:53:02 +02:00
Sebastian Kaspari 10fdd6498e Bug 1300543 - Use palette library instead of BitmapUtils.getDominantColor(). r=ahunt
MozReview-Commit-ID: LTwarAG5NNm

--HG--
extra : rebase_source : 44165c8f04cc5888147c7b6e0f0996f64f99f810
2016-09-06 10:05:32 +02:00
Sebastian Kaspari e730285a31 Bug 1300543 - FilterMimeTypes: Continue to filter mime types if one of them is empty. r=ahunt
MozReview-Commit-ID: GRFANWF1L2m

--HG--
extra : rebase_source : b4993fdfc01f04397de6c5a2d2729b4de023ce5f
2016-09-05 17:37:13 +02:00
Sebastian Kaspari f0847016ce Bug 1300543 - LegacyLoader: Only load if there's one icon URL left. r=ahunt
Let's try to load from the legacy loader only if there's one icon left and
the other loads have failed. We will ignore the icon URL anyways and try to
receive the legacy icon URL from the database.

MozReview-Commit-ID: Kr7gHXBuAs7

--HG--
extra : rebase_source : 7fbdd507fa2c0a9aa4223db1da6aa5fbc1aa4907
2016-09-05 16:44:33 +02:00
Sebastian Kaspari 80177742b4 Bug 1300543 - LegacyLoader: Skip loading from legacy storage if network download is permitted. r=ahunt
If we are allowed to load the icon from the network then skip loading from the legacy storage and just
load a fresh icon. This will avoid touching the legacy storage (disk) every time before downloading an
icon.

MozReview-Commit-ID: C9hYqISno6U

--HG--
extra : rebase_source : 6f19839c38d37916deb351b3e080e023e532a83f
2016-09-05 15:38:27 +02:00
Sebastian Kaspari 87a7500078 Bug 1300543 - IconRequestExecutor: Resize image before extracting color. r=ahunt
Running the color extraction algorithm on a smaller image will be much faster.

MozReview-Commit-ID: A42rzuQ3FDQ

--HG--
extra : rebase_source : 560e5e1a6711d8f34f12803e5aabf4f09e769706
2016-09-05 15:25:25 +02:00
Sebastian Kaspari 2df61cba23 Bug 1300543 - IconRequestExecutor: Add custom thread pool executor and thread factory. r=ahunt
The custom executor behaves like the one returned by Executors.newSingleThreadExecutor().
However the created thread will have a unique name ("GeckoIconTask") and this will make
tracing the thread much easier.

MozReview-Commit-ID: 7y0EMGmNLkG

--HG--
extra : rebase_source : 517d329df12ff101816c3a3f8e27f28aeffb6821
2016-09-05 15:24:07 +02:00
Andrzej Hunt b79a5e8eec Bug 1298968 - Add comment explaining why TOPSITES is handled outside of switch r=sebastian
MozReview-Commit-ID: BFvz2qTm4vL

--HG--
extra : rebase_source : 8d4e77baf5c629c0d16f97c7135fd4c85bf5a5b5
2016-09-06 10:06:58 -07:00
Jan Henning 6afa573825 Bug 1299576 - Part 2 - Cancel edit mode when restoring a recently closed tab. r=sebastian
When restoring a recently closed tab from the corresponding home panel, we normally directly switch to the freshly recreated tab. However if we've entered the home panels through editing mode (as opposed to opening a new tab with about:home), editing mode takes priority and the restored tab is opened in background instead, because we return to the originally selected tab when exiting editing mode.

To fix this inconsistency, we introduce a new parameter for opening tabs from Gecko that cancels editing mode if necessary to allow for directly switching to the new tab.

MozReview-Commit-ID: 4iqPISmtNIx

--HG--
extra : rebase_source : fab9dc911171deef1a984bd96993287d146b370a
2016-09-02 20:43:08 +02:00
Jan Henning eefcf19c49 Bug 1299576 - Part 1 - Refactor BrowserApp's handleMessage to use a switch statement. r=sebastian
So much nicer than a chain of else ifs.

MozReview-Commit-ID: FbEtD4Odet1

--HG--
extra : rebase_source : 3083434348bdfdfd2e30a5dac212a1993cf40d25
2016-09-02 19:02:16 +02:00
Wes Kocher 819bc41348 Merge m-c to autoland, a=merge 2016-09-08 15:29:04 -07:00
Grigory Kruglov a582ffa65a Bug 1300230 - Queue up incoming FxA push messages until FxAccountsPush is ready r=nalexander
MozReview-Commit-ID: 8BP7eWfdXte

--HG--
extra : rebase_source : a5ff5fdb848796f17389632c2ea479088098aea7
2016-09-08 14:15:34 -07:00
Sebastian Kaspari 479c995830 Bug 1280112 - LauncherActivity: Remove task flags from incoming intent. r=ahunt
MozReview-Commit-ID: 8ufNtiMc1sj

--HG--
extra : rebase_source : afa106835f508b809294a4af096893ea87980851
2016-09-06 17:58:46 +02:00
John Lin 077d1abae1 Bug 1297307 - Add extra video duration element for EOS sample. r=snorp
MozReview-Commit-ID: 4QUTABCNT06

--HG--
extra : rebase_source : db9a186de79d9fe6a307ffb125f980609224dfdc
2016-08-30 17:40:49 +08:00
Farmer Tseng 480caffe1a Bug 846203 - the user activity timer will be reset when the Wakelock is released(for Android). r=snorp
MozReview-Commit-ID: 8GN81YzNjGM

--HG--
extra : rebase_source : 95477c1560d1969b70d4feb8fe1e878dd7d4a9fe
2016-09-05 16:52:18 +08:00
Thomas Wisniewski 2b28c5e2a9 Bug 1069012 - Unprefix ::placeholder pseudo-element. r=bz 2016-09-07 19:38:38 -04:00
Wes Kocher 1989131fea Merge m-c to inbound, a=merge 2016-09-07 18:07:21 -07:00
Zero One 4473369471 Bug 1292191 - Remove unneccesary check for mShouldRestore. r=mkaply
MozReview-Commit-ID: 3amKuifhpfu

--HG--
extra : rebase_source : a4b31adc09f9f685dccdbebe63ba8a9ae30acd8c
2016-09-07 16:35:26 -05:00
Sylvestre Ledru b542b9b41a Bug 1292595 - finalize() should be protected in NativeZip r=?sebastian
MozReview-Commit-ID: JFZCfMM6GAk

--HG--
extra : rebase_source : 12f41b06b5a11056d3345a05bdb9c83a079765fd
2016-08-05 17:43:07 +02:00
Sebastian Kaspari 9b9a3bee93 Bug 1300569 - Add palette-v7 support library to build. r=ahunt
MozReview-Commit-ID: F29cOyHsd8B

--HG--
extra : rebase_source : 0c568158a20ae34687b135ce414ccfb5f710d228
2016-09-06 08:39:16 +02:00
Sebastian Kaspari 3cf54d8f48 Bug 1300155 - IconTask: Disable debug logging. r=ahunt
MozReview-Commit-ID: 51pYsDqicNS

--HG--
extra : rebase_source : 5e8912d87f18bdcf9af48ba07e9dfe121a82c92f
2016-09-05 10:32:07 +02:00
Sebastian Kaspari cde95c1b07 Bug 1300484 - IconResponse: Throw if bitmap is null. r=ahunt
This will crash later anyways but throwing here will allow us to identify code
that creates a response with a null bitmap (This shouldn't happen).

MozReview-Commit-ID: LJMSsW51eXo

--HG--
extra : rebase_source : 22eefdc5ba28d36142b663c03f376045fcc542fd
2016-09-05 11:46:27 +02:00
Sebastian Kaspari c3c4c19eb4 Bug 1300484 - IconDownloader: Check if best bitmap is not null. r=ahunt
MozReview-Commit-ID: 7A1u6EefKt9

--HG--
extra : rebase_source : 36334c8dd49dcdbdf3f34edc633604d058112fb1
2016-09-05 11:43:00 +02:00
Sebastian Kaspari 14c8e61696 Bug 1300485 - DiskStorage: Re-open cache if it is closed (after clearing). r=ahunt
MozReview-Commit-ID: GX3q4YtRsDw

--HG--
extra : rebase_source : 706671be294f2a216d2932d09507abcbafcc2419
2016-09-05 11:21:21 +02:00
Julian_Chu f9a272b954 Bug 1296748 - Do not unregister if target does not exist; r=jchen
in create(), only register listener if anchorHandle exits.
in opposite side, only unregister listener in same condition.

MozReview-Commit-ID: HHN23YcmwS

--HG--
extra : rebase_source : bdaa3e7b2a56e8e8d6a7776ff7caf3581e99ff09
2016-08-29 23:56:41 +09:00
Phil Ringnalda 3786ab03f1 Merge m-c to f-t 2016-09-05 17:05:44 -07:00
Phil Ringnalda 66b3a90750 Merge m-i to m-c, a=merge 2016-09-05 13:05:52 -07:00
Andrzej Hunt 9e859c42fc Bug 1297117 - Add documentation to stripAboutReaderUrl r=sebastian
MozReview-Commit-ID: Ibzhnk7LLmh

--HG--
extra : histedit_source : f8460143a4c00238defb68774e96ac99150779aa
2016-09-02 12:35:47 -07:00
Andrzej Hunt 2f3ba414fe Bug 1297117 - Make getUrlFromAboutReader private to avoid erronous usage r=sebastian
getUrlFromAboutReader can return null. There have been crashes caused by not checking this
result in the past. stripAboutReaderFromUrl is a safer version which returns the input URL
if necessary, and is probably what should be used in new code, hence we can make this method
private.

MozReview-Commit-ID: Lg7QWrpSE8F

--HG--
extra : histedit_source : 0964ebab8e9d66e65fc9c3a296031f720219f529
2016-09-02 12:35:08 -07:00
Andrzej Hunt 5b8fbc92f9 Bug 1297117 - Replace unnecessary usage of getUrlFromAboutReader with stripAboutReaderUrl r=sebastian
In some of these cases we're duplicating the work of stripAboutReaderUrl. In the other cases
there is no effective difference, however switching to stripAboutReaderUrl allows us
to make getUrlFromAboutReader private, which should help prevent future errors.

MozReview-Commit-ID: BLeQkve2XIs

--HG--
extra : histedit_source : 1818137ef447b70ca49a783a85cb1a198415df77
2016-09-05 12:56:49 -07:00
Sebastian Kaspari 7d3cd9e160 Bug 1293710 - Add unit tests for highlights query. r=ahunt
MozReview-Commit-ID: DX1AM9wsCMn

--HG--
extra : rebase_source : a713c8bb6b3c87dbec7b3499acc11226bf85202d
2016-09-02 19:31:49 +02:00
Sebastian Kaspari e8e8706e93 Bug 1293710 - Group activity stream highlights by URL to avoid duplicates. r=ahunt
The same URL could be picked as highlight from history and from bookmarks.

MozReview-Commit-ID: 5vBHluZKfAN

--HG--
extra : rebase_source : 1fee3b2532670d0b9d472518f3648ee5b5bebb8e
2016-09-02 19:52:56 +02:00
Sebastian Kaspari de0e351a2d Bug 1293710 - Activity Stream Highlights: Only select actual bookmarks (no folders and other special types). r=ahunt
MozReview-Commit-ID: A5oV8vIIyhw

--HG--
extra : rebase_source : 124631db505116eeff4caddc61b5e4ae4b914d41
2016-09-02 19:37:05 +02:00
Sebastian Kaspari e0879f0149 Bug 1293710 - Activity Stream Highlights: Consider bookmarks without history too. r=ahunt
MozReview-Commit-ID: If6HmIIp7sT

--HG--
extra : rebase_source : 4925672e9e1e5f99e2f24739388c43e42b546f69
2016-09-02 19:26:55 +02:00
Sebastian Kaspari f8363edb76 Bug 1293710 - Activity Stream Highlights: Load icons and restructured layout. r=ahunt
MozReview-Commit-ID: 1JaFdcFPbIU

--HG--
extra : rebase_source : d9a9e4d15da4c7807d412c234444c530929b0758
2016-09-02 13:10:46 +02:00
Sebastian Kaspari 509e8627f2 Bug 1293710 - Display highlights in activity stream panel. r=ahunt
MozReview-Commit-ID: CnE0Ivq6OXz

--HG--
extra : rebase_source : 5e3431f8a536fba08a4a40c679f83bd07ef97ceb
2016-08-31 19:40:28 +02:00
Sebastian Kaspari 43d2a41065 Bug 1293710 - Obtain a list of "highlights" for the Activity Stream panel. r=ahunt,Grisha
This query resembles how the Activity Stream add-on for desktop Firefox selectes highlights[1].
The desktop version uses the 'rev_host' (reversed host) column to filter the results based
on a blacklist and group results by hostname. This has been omitted here (See bug 1298785 and
bug 1298786).

Additionally the desktop version uses a block list to filter "highlights" that have been removed
manually by the user. This is not added here until needed from the UI side (see bug 1298783).

[1] 9eb9f451b5/addon/PlacesProvider.js (L578)


MozReview-Commit-ID: 9TyIaK21MNJ

--HG--
extra : rebase_source : d6debec1c16b1a1667b0c10fe49e4fcc1dc11bfd
2016-08-29 15:35:17 +02:00
Kershaw Chang 4317633349 Bug 1288297 - Construct PresentationRequest with multiple URLs, r=smaug 2016-09-05 01:17:00 +02:00
Ryan VanderMeulen 1502d18249 Merge inbound to m-c. a=merge 2016-09-03 11:33:28 -04:00
Andrzej Hunt 1c5b9d7220 Bug 1299977 - Add TopSites title to UnusedResourcesUtil r=me 2016-09-02 15:04:10 -07:00
Wes Kocher fa97b52dd9 Merge m-c to fx-team, a=merge 2016-09-02 13:36:24 -07:00
Wes Kocher a77698d3d7 Merge fx-team to central, a=merge 2016-09-02 13:32:41 -07:00
Wes Kocher ee92002ede Merge inbound to m-c a=merge 2016-09-02 13:17:30 -07:00
Andrzej Hunt 253792d078 Bug 1299977 - Update Activity Stream background colour r=sebastian
MozReview-Commit-ID: zyorACyIHe

--HG--
extra : rebase_source : de033f2e3949ec4c5479f199759a3fe70ac00cf8
2016-09-01 16:41:35 -07:00
Andrzej Hunt 9ac761e04f Bug 1299977 - Improve Activity Stream topsites appearance r=sebastian
This patch:
- moves padding, so that the topsites pagers uses the full screen width (otherwise
  topsites cards start disappearing where the padding starts when scrolling,
  which looks odd)
- Adjusts background colour for AS.
- Removes redundant TopSites title
- Adds a divider to the bottom of topsites / above Highlights.

MozReview-Commit-ID: 181COuLECtC

--HG--
extra : rebase_source : d3053e4c0ea31ecb250ddae4448172e4dbaf1e3e
2016-09-01 16:40:33 -07:00
Dylan Roeh 607c18eae8 Bug 1299925 - Override onBackPressed in CustomTabsActivity to finish the activity. r=snorp 2016-09-01 17:17:14 -05:00
Sebastian Kaspari 57614b6b1a Bug 1290014 - Refactor activity stream top sites to use new icon API. r=ahunt
MozReview-Commit-ID: DDzmqNuiqRC

--HG--
extra : rebase_source : 17c247f8a53de782e3626c996847f76081974570
2016-09-01 15:50:31 +02:00
Wes Kocher ba385e02f2 Merge m-c to fx-team, a=merge 2016-09-01 17:55:15 -07:00
Wes Kocher c28fdd5c48 Merge inbound to m-c a=merge 2016-09-01 17:51:22 -07:00
Andrzej Hunt f0f7b67705 Bug 1299224 - pass OnUrlOpenListener into StreamRecyclerAdapter r=sebastian
This has the side effect of enabling click support for topsites.

MozReview-Commit-ID: DW7WX4QDO6n

--HG--
extra : histedit_source : 841fa42364397965d237c36540afc20a86bb2922
2016-08-31 12:53:46 -07:00
Andrzej Hunt b635c55c15 Bug 1299224 - Pre: remove unnecessary LoaderManager reference from StreamAdapter r=sebastian
I think originally I wanted to fiddle the Loaders from the Adapter, but we don't do that
so this code is unused/unnecessary. We should also make sure we only ever create one adapter,
which we can do by initalising it in the constructor.

MozReview-Commit-ID: MCNBXll1ZX

--HG--
extra : histedit_source : 379bcb165906ab3d79d1676617b19589e3add652%2C4a2d8c786192614a798820a641c2368cffb307ac
2016-09-01 14:40:40 -07:00
Nick Alexander 181481663d Bug 1292762 - Set GRADLE_USER_HOME to avoid sdk-manager-plugin intermittent. r=sebastian
MozReview-Commit-ID: 2Ha0B9xelqm

--HG--
extra : rebase_source : 3cc323454ca207296929482625fee1d3224cc1d8
2016-08-31 11:38:13 -07:00
Ryan VanderMeulen 37b200a0c5 Merge autoland to m-c. a=merge 2016-09-01 12:11:51 -04:00
Ryan VanderMeulen 44f02640c6 Merge fx-team to m-c. a=merge 2016-09-01 11:48:45 -04:00
James Willcox a34bf3d3ee Bug 1299622 - Delete bogus browser[pending] CSS rule for Fennec r=sebastian a=cherry-pick to fix Fennec tab restore
MozReview-Commit-ID: KdSBXbfYTn1

--HG--
extra : amend_source : d068c0e65f0bad6cd7a0247d09c35d43dbc2ee4f
extra : transplant_source : 1%B4%11vV%B2%D8d%7F%12%B9%9D%C5%EATa%C9%3D%C9%B0
2016-09-01 09:26:25 -05:00
Ryan VanderMeulen 3611a7607d Merge inbound to m-c. a=merge 2016-08-31 22:33:17 -04:00
Kannan Vijayan e7cae3eb49 Bug 1292639 - Ask user permission before allowing navigator.publishServer. r=mconley r=ehsan r=sebastian 2016-08-31 18:14:24 -04:00
Michael Kaply 42530c3be1 Bug 1299162 - Pass preferences.json to browser.js to avoid disk read. r=rnewman 2016-08-31 15:54:23 -05:00
Michael Kaply 480b0a40c7 Bug 1299350 - If there is a homepage, show it at the end of the wizard. r=rnewman 2016-08-31 15:48:13 -05:00
Sebastian Hengst 77b5bc12c3 Backed out changeset c60fb4ea2674 (bug 1299162) for Android 4.0 build bustage. r=backout 2016-08-31 18:46:01 +02:00
Ryan VanderMeulen d9f7626454 Merge m-c to inbound. a=merge 2016-09-01 12:15:35 -04:00
James Willcox e942c4cc04 Bug 1299622 - Delete bogus browser[pending] CSS rule for Fennec r=sebastian 2016-09-01 09:43:56 -05:00
Michael Kaply 25a478327c Bug 1299162 - Pass preferences.json to browser.js to avoid disk read. r=rnewman 2016-08-31 11:17:21 -05:00
Sebastian Kaspari 95fd11b02c Bug 1290014 - DiskStorage: Do not use StandardCharsets.UTF_8. It's only support on API level 19+. r=ahunt
MozReview-Commit-ID: 5wvR4dgiPoJ

--HG--
extra : rebase_source : 863ca9ca14eb7647d2dac314fe4b45deb87da0e6
2016-08-18 18:15:15 +02:00
Sebastian Kaspari daaeb912aa Bug 1290014 - ResizingProcessor: Do not resize icons loaded from memory. r=ahunt,Grisha
Icons loaded from memory have already gone through the resizing process and have either
the requested size or are resized up to a limit. Without this check a small icon
could be resized multiple times until it matches the target size; even though the icon
is too small. In addition to that we would recycle a bitmap that might still be in use.

MozReview-Commit-ID: K51aBhBcAnj

--HG--
extra : rebase_source : 771c0a88b69e5d3688293ddf27955e01717c8931
2016-08-18 15:52:20 +02:00
Sebastian Kaspari b05071f783 Bug 1290014 - Add additional unit tests. r=ahunt,Grisha
MozReview-Commit-ID: Ib5OI7eb2sq

--HG--
extra : rebase_source : 03b754f45a92952533e7fe935a30bc97df678bf7
2016-08-18 14:10:49 +02:00
Sebastian Kaspari fb80b68a08 Bug 1290014 - Move code from the FaviconGenerator class to the IconGenerator in the icons package. r=ahunt,Grisha
The FaviconGenerator is the last class in the old favicons package. As this class is only used by the IconGenerator
let's move the code inside the new class and remove FaviconGenerator.

MozReview-Commit-ID: 7NsJRGdoUWv

--HG--
extra : rebase_source : 703b80560f47220d094de0049cd9b92f8cd524eb
2016-08-17 18:08:51 +02:00
Sebastian Kaspari 2a9ce08987 Bug 1290014 - Move decoders from the favicons to the icons package. r=ahunt,Grisha
The decoders are used by the code in the icons package exclusively. Let's move it
to the new package now.

MozReview-Commit-ID: AAybHpeA71V

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/favicons/decoders/FaviconDecoder.java => mobile/android/base/java/org/mozilla/gecko/icons/decoders/FaviconDecoder.java
rename : mobile/android/base/java/org/mozilla/gecko/favicons/decoders/ICODecoder.java => mobile/android/base/java/org/mozilla/gecko/icons/decoders/ICODecoder.java
rename : mobile/android/base/java/org/mozilla/gecko/favicons/decoders/IconDirectoryEntry.java => mobile/android/base/java/org/mozilla/gecko/icons/decoders/IconDirectoryEntry.java
rename : mobile/android/base/java/org/mozilla/gecko/favicons/decoders/LoadFaviconResult.java => mobile/android/base/java/org/mozilla/gecko/icons/decoders/LoadFaviconResult.java
extra : rebase_source : 3166604d46fcd4736404cc1aa69a98dfbd736072
2016-08-17 17:36:42 +02:00
Sebastian Kaspari 750710c9ca Bug 1290014 - Remove obsolete code. r=ahunt,Grisha
Most of the code in the favicons package is now obsolete and can be
removed. Most of this code still exists in the icons package (in smaller
chunks).

MozReview-Commit-ID: 6J4pgd5doNt

--HG--
extra : rebase_source : fa04223a758483d8440167fb63fe852ea3bde3f8
2016-08-17 17:27:06 +02:00
Rob Wu 73811a0f67 Bug 1298716 - Unify use of ExtensionTestUtils.loadExtension r=billm
MozReview-Commit-ID: DT6rx6KYODl

--HG--
extra : rebase_source : b37924fe255993006fc9a7dfa115d0527d6d0e10
2016-08-28 17:22:03 -07:00
Edouard Oger 7d54172fb4 Bug 1295348 - Send/Handle push messages for send tab to device on Fennec. r=Grisha,sebastian
MozReview-Commit-ID: 1NSMPLQdoXv

--HG--
extra : rebase_source : 4a350317a15d3649a966d8bc4bcd762259cc059a
2016-08-25 16:25:58 -07:00
Ryan VanderMeulen f2ae8f9bce Merge m-c to autoland. a=merge 2016-08-31 22:34:02 -04:00
Makoto Kato 650d82dba8 Bug 1299400 - Remove WebActivities Android Backend. r=sebastian
WebActivities API has removed by bug 1284455, so we should remove Android backend.

MozReview-Commit-ID: IOYs1bM2u06

--HG--
extra : rebase_source : c6c701159817fe8595c20205c2fc3a2253ffd39f
2016-08-31 17:16:22 +09:00
Sebastian Kaspari b8f20b1a60 Bug 1290014 - Use new icon framework in UI code. r=ahunt,Grisha
This patch replaces the old favicon code with the new icon code
in the UI code.

MozReview-Commit-ID: 2YdDpYUhb0M

--HG--
extra : rebase_source : 1c07eebdd4d9d873040a60a19b2aa30efc712cb7
2016-08-16 11:44:21 +02:00
Sebastian Kaspari c7c1345db5 Bug 1290014 - Restructure icon code and use disk lru cache. r=ahunt,Grisha
This patch does multiple things:

1) It restructures the icon code to follow a preparer, loader, processor pattern.
Instead of very long procedures we now have a lot of small components. This patch
includes 90+ tests for those components.

2) It replaces the database storage with the disk lru cache. We still keep the
tables around because we will still load from it as fallback to avoid needing
to migrate all data.

This patch is pretty big but a lot of it is moving code around and breaking it
into smaller chunks. A later commit will remove now obsolete components.

By creating a consistent mapping page URL -> icon URL -> icon data this change
fixes the linked bugs (bug 1269821 and bug 1271634).

MozReview-Commit-ID: 1nkrZn286Gv

--HG--
extra : rebase_source : e8d2902dc8553e43297e9e3f0fd96bf04f28ba3a
2016-08-16 11:36:22 +02:00
Dylan Roeh d056325bfe Bug 1293299 - Create a class, GeckoViewFragment, which passes GeckoView state between different activities. r=jchen 2016-08-09 21:00:24 -05:00
Ryan VanderMeulen 435c0addca Merge autoland to m-c. a=merge 2016-08-31 09:52:43 -04:00
Wes Kocher 73f495435e Merge m-c to inbound a=merge 2016-08-30 18:14:57 -07:00
Wes Kocher 6536590412 Merge fx-team to central, a=merge 2016-08-30 17:51:54 -07:00
Andrzej Hunt 6651f424e4 Bug 1297127 - show ActivityStream as a HomePanel, replacing TopSites r=sebastian
To avoid having to mess around with the HomePanel configuration machinery, we simply
override the class being loaded for top_sites in HomeAdapter: this is hacky, but
provides a simple temporary solution for showing ActivityStream as a homepanel.

MozReview-Commit-ID: Ga9qUTP3xxA

--HG--
extra : rebase_source : 004e5648ccf74d70f56e66c3ae228bb8071e9756
extra : source : e2d2895a0e678b58336f66fdae01efcd6264954e
2016-08-30 12:18:57 -07:00
Andrzej Hunt 7baca5adbe Bug 1297127 - add ActivityStream.isHomePanel() fake-pref for switching from HomeScreen to HomePanel r=sebastian
This will allow us to more easily switch ActivityStream from being a HomePanel to being a complete
HomePager replacement - this could potentially be extended to read from a preference, but hardcoding
is probably sufficient for now.

MozReview-Commit-ID: HxQg5bOTmdh

--HG--
extra : rebase_source : 99048a0477214c2030cd9072a3e50bb041a18fff
extra : source : 41e5922460ccb2ded3d4e00975eb45f15c1ac4a0
2016-08-30 12:18:36 -07:00
Andrzej Hunt 1eb30f2d16 Bug 1297127 - Move HomeScreen specific code into ActivityStreamHomeScreen r=sebastian
We can keep the general ActivityStream code in the ActivityStream class/widget, allowing
reuse inside a HomePanel (for use in the HomePager). ActivityStreamHomeScreen then
wraps this for use as a HomePager replacement (which is the long-term goal for AS).

MozReview-Commit-ID: 1aWBh1YyARY

--HG--
extra : rebase_source : 8101f445b2aa106a2e06afc097247e849338b95e
extra : source : 155d6001460854ebff20bd1287fcb11c055cea66
2016-08-29 15:33:32 -07:00
Jim Chen d2272de7cb Bug 1298161 - d. Use application context to prevent BrowserApp leaks; r=sebastian
Use application context for delayed callbacks to prevent leaking the
BrowserApp instance. Also, use application context for accessing
Distribution, to prevent leaking old BrowserApp instances, and to avoid
using a destroyed Context. Finally, attach AudioFocusAgent to the
application context instead of the BrowserApp context to avoid leaking
BrowserApp.
2016-08-30 14:49:38 -04:00
Jim Chen e6e2011d34 Bug 1298161 - c. Properly remove pref handler in NativePanZoomController; r=rbarker
Properly remove pref handler on destroy to prevent leaking BrowserApp.
2016-08-30 14:49:38 -04:00
Jim Chen 9fe8d04e65 Bug 1298161 - b. Fix BrowserApp leaks in event registration; r=sebastian
Unregister certain events in BrowserApp and GeckoApp to prevent
BrowserApp from leaking. Also, properly unregister event listeners in
PageActionLayout to prevent BrowserApp leaks, because
PageActionLayout.onDestroy never got called before.
2016-08-30 14:49:38 -04:00
Jim Chen b3038be914 Bug 1298161 - a. Fix BrowserApp leak in GeckoAccessibility; r=sebastian
Move registration of AccessibilityManager listeners to GeckoApplication,
and change all Context references to the application context, so that
GeckoAccessibility doesn't leak old BrowserApp instances as new
BrowserApp instances are created.
2016-08-30 14:49:38 -04:00
Sebastian Kaspari c9c4bd2110 Bug 1296712 - Move tab strip resources into main resource directory. r=ahunt
MozReview-Commit-ID: KBq6XPEufPj

--HG--
rename : mobile/android/base/resources/color-large-v11/tab_new_tab_strip_colors.xml => mobile/android/base/resources/color/tab_new_tab_strip_colors.xml
rename : mobile/android/base/resources/color-large-v11/tab_strip_item_bg.xml => mobile/android/base/resources/color/tab_strip_item_bg.xml
rename : mobile/android/base/resources/color-large-v11/tab_strip_item_title.xml => mobile/android/base/resources/color/tab_strip_item_title.xml
rename : mobile/android/base/resources/color-large-v11/tabs_counter_text_color.xml => mobile/android/base/resources/color/tabs_counter_text_color.xml
rename : mobile/android/base/resources/drawable-large-v11/tab_strip_button.xml => mobile/android/base/resources/drawable/tab_strip_button.xml
rename : mobile/android/base/resources/drawable-large-v11/tab_strip_divider.xml => mobile/android/base/resources/drawable/tab_strip_divider.xml
rename : mobile/android/base/resources/layout-large-v11/tab_strip.xml => mobile/android/base/resources/layout/tab_strip.xml
rename : mobile/android/base/resources/layout-large-v11/tab_strip_inner.xml => mobile/android/base/resources/layout/tab_strip_inner.xml
rename : mobile/android/base/resources/layout-large-v11/tab_strip_item.xml => mobile/android/base/resources/layout/tab_strip_item.xml
rename : mobile/android/base/resources/layout-large-v11/tab_strip_item_view.xml => mobile/android/base/resources/layout/tab_strip_item_view.xml
extra : rebase_source : 6d4e5fe40d27d43db10956c4491c976c975cea15
2016-08-25 12:34:17 +02:00
Sebastian Kaspari 69f7e10710 Bug 1293650 - NotificationHelper: Create broadcast intent instead of activity intent. r=ahunt
The patches in bug 1075476 refactored our notificaiton code to use broadcasts instead of
bringing the app to the front. However notification actions created via Notifications.jsm
still used activity intents (without any activity listening).

MozReview-Commit-ID: 7ZFMkgBitqw

--HG--
extra : rebase_source : 624538827df97f05657aaf99bc935c9fa7c5d785
2016-08-30 16:52:47 +02:00
James Cheng 42a68e4966 Bug 1299386 - Fix checkstyle error in RemoteManager.java. r=jolin
MozReview-Commit-ID: 4Vh5Kd9YJN6

--HG--
extra : rebase_source : b6c51724c5b7aed8ef5b9b57f737c44e41caab4c
2016-08-31 14:34:43 +08:00
Wes Kocher 81db6ce036 Merge m-c to autoland, a=merge 2016-08-30 18:15:33 -07:00
Grigory Kruglov 14a454f556 Bug 1253111 - Part 2: Add support for batching uploads r=rnewman
- Introduce a new BatchingUploader class to handle storing records and keep track of batches/payloads
- Refactor upload runnable and upload delegate into their own classes
- Introduce Last-Modified and X-I-U-S handling into non-batching mode

MozReview-Commit-ID: 3JLExwQvYzM

--HG--
extra : rebase_source : 4a6a2db595fe72473b033acd4f3180fa799319d4
2016-08-26 14:05:47 -07:00
Andrzej Hunt 3ad7bd7314 Bug 1293790 - Add indicator to topsites pager r=sebastian
MozReview-Commit-ID: 4jhRga5FWLi

--HG--
extra : rebase_source : 8286eebfe672ae563170ac1d9a9b6e928d7a6b0c
2016-08-24 11:25:49 -07:00
Andrzej Hunt 5587b4f363 Bug 1293790 - Increase separation between circles in indicator r=sebastian
MozReview-Commit-ID: 5Ovn3wi4qAr

--HG--
extra : rebase_source : d916ef5fb67924daa32a9fb4fab2739efea6def4
2016-08-24 11:23:27 -07:00
Andrzej Hunt 0c77ca2b74 Bug 1293790 - Import CirclePageIndicator from ViewPagerIndicator library r=sebastian
We only require the CirclePageIndicator, hence I've only imported that portion
of the library. The two resource files have been trimmed to only include values
that are relevant to the CirclepageIndicator.

MozReview-Commit-ID: EPyIf7OJHpe

--HG--
extra : rebase_source : b0a0fac13b619add96ec9d89281f5cec2ca6d51c
2016-08-30 09:42:59 -07:00
Andrzej Hunt aab7c8b4f0 Bug 1293790 - Implement Paged TopSites View r=sebastian
This uses a ViewPager, with each page containing a grid managed by a separate RecyclerView.
One main adapter splits the data into appropriately sized groups for each RecyclerView
to handle.

MozReview-Commit-ID: 9XGuw0NckD4

--HG--
rename : mobile/android/base/resources/layout/activity_stream_card_top_sites_item.xml => mobile/android/base/resources/layout/activity_stream_topsites_card.xml
extra : rebase_source : cc6ad23ae223b01ab59071d986ab4ad2d41c929c
2016-08-30 09:59:08 -07:00
Andrzej Hunt 8de90ea489 Bug 1293790 - Pre: Extract UpdateViewFaviconLoadedListener to allow reuse r=sebastian
MozReview-Commit-ID: 6ud4pRemi0s

--HG--
extra : rebase_source : 54b41fe13154ec6118af2192b41cf62d8e741784
2016-08-17 10:57:08 -07:00
Andrzej Hunt d2547754e6 Bug 1293790 - Pre: extract CardView corner workaround into FilledCardView r=sebastian
We'll need this workaround for all the other CardView's we use.

MozReview-Commit-ID: 1B96Y2ZNKrY

--HG--
extra : rebase_source : e32e410045349f3afb7d5766b6dbb2cd80c0fc34
2016-08-23 13:35:46 -07:00
Andrzej Hunt 086e5d1059 Bug 1293790 - Pre: implement AS topsites access r=grisha
MozReview-Commit-ID: 1z30naErciE

--HG--
extra : rebase_source : 5734af99f443a8a040117a02cbe4c582212a051c
2016-08-23 14:04:01 -07:00
Andrzej Hunt 8132366cce Bug 1293790 - Implement getPlainTopSites query r=grisha
ActivityStream's topsites won't support pinned sites for now,
this allows us to use a simpler query that only retrieves topsites
without the complexity of a temporary table to merge pinned sites.

This results in some duplication between the old and new topsites
queries, however eventually we're going to want to get rid
of one of these queries (we don't know whether ActivityStream will
support pinned sites in the future yet, so we definitely want to keep
the pinned query for now - it's also needed for the old topsites panel).

MozReview-Commit-ID: AQyzXHGl3Cf

--HG--
extra : rebase_source : 6830c50d30a326dc7080ce720d4c1890dbab8e32
2016-08-25 12:05:22 -07:00
James Cheng 01f39797f5 Bug 1297969 - Extract class RemoteManager from CodecProxy.java to RemoteManager.java for further usage. r=jolin
MozReview-Commit-ID: Hqm6ZEzv3v1

--HG--
extra : transplant_source : f%B6%AB%92%A6%D8%B1%CA%9D%98%C9%BC1%0Em%7EJ%24c%0A
2016-08-25 15:16:50 +08:00
James Willcox 0e59cdf029 Bug 1296298 - Don't try to add a presentation surface unless Gecko is running r=jchen 2016-08-30 13:26:37 -05:00
James Willcox 3460c674d5 Bug 1294823 - Don't use fullscreen mode for the HLS video view on Android r=sebastian 2016-08-30 13:26:37 -05:00
Grigory Kruglov 29e4dd5c85 Bug 1253111 - Part 1: Introduce new sync stage to handle info/configuration r=rnewman
MozReview-Commit-ID: 7MOgR7A5SOF

--HG--
extra : rebase_source : e029d60a063b2e1dd9061362c4d4a647263dd3ec
2016-08-15 18:35:17 -07:00
Andrzej Hunt b673568c2b Bug 1293595 - Make doorhanger overlay visible by default, and retrieve it during onCreate r=sebastian
Retrieving the doorhanger during onAttachedToWindow seems to be unreliable, resulting in NPE's when
it doesn't work (the only logical explanation would be that onCreate hasn't been called yet, meaning
we don't have a layout yet). We should instead findViewById() it during onCreate, where the layout
is guaranteed to exist.

Since we show the overlay on all devices now, we can make it visible by default, whereas in the past
we had a condition to only enable it on > 2.3 devices.

MozReview-Commit-ID: 1DGVAPSX0mi

--HG--
extra : rebase_source : 025eb790e3b6c2d27ce10e04d624eb19b889d88d
2016-08-19 10:24:15 -07:00
Sebastian Kaspari 4b882652fe Bug 1281220 - Remove about:accounts telemetry on Fennec. r=liuche
MozReview-Commit-ID: GTKaauQIDKo

--HG--
extra : rebase_source : 8547ccf947b45d23de77e61018ec4de45cc3e329
2016-08-23 16:25:19 +02:00
Ryan VanderMeulen 8880c22504 Merge m-c to autoland. a=merge 2016-08-31 09:55:10 -04:00
Sebastian Kaspari 6e8d16fcc6 Bug 1290014 - Add DiskLruCache library. r=ahunt,Grisha
This patch adds the known and widely used disk LRU cache library by Jake Wharton [1].
It's a standalone version of the disk LRU cache found in the AOSP tree.

The goal is to use a flat file disk cache to avoid the overhead of storing blobs
in a database [2] (and some bugs like bug 1108084).

[1] https://github.com/JakeWharton/DiskLruCache
[2] https://wiki.mozilla.org/Performance/Avoid_SQLite_In_Your_Next_Firefox_Feature

MozReview-Commit-ID: 2ayN7SYVe4W

--HG--
extra : rebase_source : d24907e9ab5563999754bb1f554ed31e5c90d47d
2016-07-27 16:20:00 +02:00
Grigory Kruglov 55435220f1 Bug 1299939 - Use SafeIntent throughout BrowserApp and delegates r=rnewman
MozReview-Commit-ID: gW2gXVWji1

--HG--
extra : rebase_source : 854235b1a3e507cd634b487e500f670cac150bb5
2016-09-01 18:25:05 -07:00
Grigory Kruglov 98ac404dd2 Bug 1299939 - Use SafeIntent to handle incoming intents in the LauncherActivity r=rnewman
MozReview-Commit-ID: 49zDp3A4dnG

--HG--
extra : rebase_source : 4e2828504c97edc3de958758fdd1a1c97d31668e
2016-09-01 16:35:59 -07:00
Kartikaya Gupta 32379a1d17 Bug 1296887 - Prevent a second call to shiftLayerView with the same destination as the first from clearing the resize state prematurely. r=rbarker
MozReview-Commit-ID: 4iMfJ8tsweR

--HG--
extra : rebase_source : 054cb98cddf279f38a4fbea034f8643f3f53e417
2016-09-01 17:27:15 -04:00
Grigory Kruglov a49ef7731d Bug 1299997 - Can't use API19+ StandardCharsets r=rnewman
MozReview-Commit-ID: 7UH2bJT3re1

--HG--
extra : rebase_source : 0aed7716ae70808ffa03980c318bf37dd93a987f
2016-09-01 18:48:35 -07:00
Wes Kocher 44d99ecda5 Merge m-c to autoland, a=merge 2016-09-01 17:54:52 -07:00
Grigory Kruglov d2bf1d650a Bug 1294438 - Do not store metadata for private tabs r=sebastian
MozReview-Commit-ID: 6afE9DWmyK7

--HG--
extra : rebase_source : 239b8d8c09a427ce72efafaedc0d6089289dcb0c
2016-08-31 23:02:23 -07:00
Johann Hofmann f1547c7e17 Bug 1266836 - Part 1 - Fix password manager handling of popup windows in e10s. r=MattN r=liuche
MozReview-Commit-ID: OVsgkHhyg9

--HG--
extra : rebase_source : fb5a56c5e31967636112ae8ce3dcca25d5ebefec
extra : histedit_source : abbb3d0cafc96bf925773443cc28ff26d5895f0f
2016-08-30 15:47:38 +02:00
Ryan VanderMeulen 60c3cb1548 Merge m-c to fx-team. a=merge 2016-08-31 22:37:49 -04:00
Jared Wein 97e69eb233 Bug 336290 - remove --enable-safe-browsing from configure since its used everywhere. r=gcp
MozReview-Commit-ID: Duwu5vZOhtF

--HG--
extra : rebase_source : 564542010fd854c92978defba889b18a73f398f9
2016-08-31 19:28:29 -04:00
Jim Chen cf1e61cb8d Bug 1291383 - Move Distribution initialization out of GeckoProfile; r=nalexander
Move Distribution initialization (on profile directory creation) from
GeckoProfile to GeckoApplication, by listening to the Profile:Create
event.
2016-09-02 16:49:11 -04:00
Jim Chen 8f665ca47e Bug 1291383 - Dispatch Profile:Create event when creating profile directory; r=nalexander
Dispatch a Profile:Create event when creating a profile directory, so we
can use it to initialize distributions.
2016-09-02 16:49:11 -04:00
Jim Chen d7ccc9771a Bug 1291383 - Let Java code dispatch events through EventDispatcher; r=sebastian
Add dispatch() methods to EventDispatcher that allow Java code to
dispatch events to Bundle listeners (currently either UI or background
thread listeners).
2016-09-02 16:49:11 -04:00
Ryan VanderMeulen c0412a3515 Backed out changeset 4542cf942dab (bug 1297969) for Android checkstyle bustage. 2016-08-29 21:32:38 -04:00
Makoto Kato 86b9904afa Bug 1298743 - Remove unused localize resource into mobile/android. r=sebastian
Some resource data is for Fennec/XUL era.  Since these files is unused now, we should remove these from our package.

MozReview-Commit-ID: Dsx3qrSD01h

--HG--
extra : rebase_source : 66b416bcf7933327242bf6b74b88f81d5aac123a
2016-08-29 16:45:37 +09:00
Wes Kocher 08fbeaaf2e Merge m-c to autoland, a=merge 2016-08-29 17:57:01 -07:00
Edouard Oger 3bc966a2e2 Bug 1298727 - Bump FxA device registration version on Fennec. r=eoger
MozReview-Commit-ID: 8NzADM5P7Zc

--HG--
extra : transplant_source : %CENG%8A%FA%8E%CD%D0%9CG%C0%11%10%3B0%D7%EE%89G%ED
2016-08-28 18:05:08 -07:00
James Willcox f55f874788 Bug 1297751 - Allow E10S to be enabled on Fennec via browser.tabs.remote.force-enable r=sebastian 2016-08-26 16:57:27 -05:00
Geoff Brown c686d38861 Bug 1271264 - Populate clipboard earlier to avoid intermittent failure in testAccessibleCarets; r=sebastian 2016-08-26 14:34:55 -06:00
Jim Chen 984436a532 Bug 1297807 - Remove old JNI stubs; r=snorp 2016-08-26 12:26:46 -04:00
Jim Chen ab92abb418 Bug 1296744 - Make cameraCallbackBridge use new native JNI bindings; r=snorp
Make the GeckoAppShell.cameraCallbackBridge callback use the new native
JNI bindings. Also refactor the relevant code in GeckoAppShell and
CameraStreamImpl.
2016-08-26 12:26:46 -04:00
Jim Chen d924b1c615 Bug 1297836 - Get surface when creating or resuming compositor; r=snorp
Get rid of LayerView.Compositor.getSurface and just pass in the surface
when creating or resuming the compositor. That also lets us get rid of
some synchronization required for getSurface.
2016-08-26 12:25:57 -04:00
Jim Chen 4c8cec0df5 Bug 1297836 - Don't use WindowEvent for LayerViewSupport; r=snorp
Now that nsWindow doesn't own LayerViewSupport, we shouldn't be using
WindowEvent for LayerViewSupport calls. This patch converts the calls
that dispatch to proxy to dispatch directly to Gecko. For
SyncResumeResizeCompositor, it used a proxy to call OnResumedCompositor
on the Gecko thread; this patch makes SyncResumeResizeCompositor post an
event to call OnResumedCompositor directly, without going through the
proxy.
2016-08-26 12:25:57 -04:00
Jim Chen da50d1a62c Bug 1297462 - Combine Java exception stack code paths; r=snorp
Right now we report Java exception stacks through two code paths:
- GeckoAppShell.reportJavaCrash for exceptions caught by Java code
- jni::HandleUncaughtException for exceptions caught by native code

This patch combines the code for reporting the Java stack trace into
ReportException, to make it easier to add new features such as reporting
OOM exceptions.
2016-08-26 12:25:57 -04:00
Jim Chen c25482dbd4 Bug 1297462 - Always handle uncaught Java exception in native code if possible; r=snorp
We used to only handle certain exceptions in native code, and otherwise
forward the exception to Java handling code. Handling exceptions in
native code gives us better native stack traces in crash reports, so
this patch makes us always handle uncaught Java exceptions in native
code if possible, and only forward to Java as a fallback.
2016-08-26 12:25:57 -04:00
Michael Kaply 5f7726a793 Bug 1294730 - Send distribution referrers to Adjust. r=rnewman 2016-08-26 09:26:42 -05:00
Ryan VanderMeulen e1fdfb3b73 Merge inbound to m-c. a=merge 2016-08-26 09:37:03 -04:00
Ryan VanderMeulen aec08e3182 Merge fx-team to m-c. a=merge 2016-08-26 09:26:49 -04:00
Shih-Chiang Chien 1a2dc51208 Bug 1228526 - Part 2, show devices supported request URL in selection prompt dialog. r=chunmin
MozReview-Commit-ID: FYR2ruFsyGy

--HG--
extra : rebase_source : f0ffe43b6c0f24df6ed55750c7113e758a66710c
2016-08-23 17:57:33 +08:00
Matthew Noorenberghe 3803d21cec Bug 1297905 - Remove usage of getAllDisabledHosts in sanitize implementations. r=liuche,markh
Bug 1058438 moved disabled hosts to the permission manager which are already cleared by these modules.

MozReview-Commit-ID: InprrYLvjMR

--HG--
extra : rebase_source : 806c2542cbab953b74ad82611501ecac32400930
2016-08-24 17:41:10 -07:00
Wes Kocher f78f2d693b Merge inbound to central, a=merge 2016-08-25 16:59:00 -07:00
Rob Wu be3652cd57 Bug 1287010 - Make environment of Context explicit. r=billm
- Add `envType` to BaseContext.
 - Pass an explicit envType to all `registerSchemaAPI` invocations.
 - The factories passed to `registerSchemaAPI` will be split up later, so
   that content scripts (`content_child`) and addon pages can share
   common implementations.
 - The factories that implement the addon API will also be split up,
   to separate code running in the main process (`addon_parent`) from
   code running in a child process (`addon_child`).
 - Remove the use of a hardcoded list of `namespaces` from ProxyContext.
   Now `envType` is used to specify whether an API should be activated.

MozReview-Commit-ID: Jiff8HIwG92

--HG--
extra : rebase_source : 946a3c0009a4e3223c2d10044b3099a94c845394
2016-08-16 15:51:50 -07:00
Ryan VanderMeulen e5adfbffe6 Merge m-c to autoland. a=merge
--HG--
rename : accessible/tests/browser/browser_caching_attributes.js => accessible/tests/browser/e10s/browser_caching_attributes.js
rename : accessible/tests/browser/browser_caching_description.js => accessible/tests/browser/e10s/browser_caching_description.js
rename : accessible/tests/browser/browser_caching_name.js => accessible/tests/browser/e10s/browser_caching_name.js
rename : accessible/tests/browser/browser_caching_relations.js => accessible/tests/browser/e10s/browser_caching_relations.js
rename : accessible/tests/browser/browser_caching_states.js => accessible/tests/browser/e10s/browser_caching_states.js
rename : accessible/tests/browser/browser_caching_value.js => accessible/tests/browser/e10s/browser_caching_value.js
rename : accessible/tests/browser/browser_events_caretmove.js => accessible/tests/browser/e10s/browser_events_caretmove.js
rename : accessible/tests/browser/browser_events_hide.js => accessible/tests/browser/e10s/browser_events_hide.js
rename : accessible/tests/browser/browser_events_show.js => accessible/tests/browser/e10s/browser_events_show.js
rename : accessible/tests/browser/browser_events_statechange.js => accessible/tests/browser/e10s/browser_events_statechange.js
rename : accessible/tests/browser/browser_events_textchange.js => accessible/tests/browser/e10s/browser_events_textchange.js
rename : accessible/tests/browser/browser_treeupdate_ariadialog.js => accessible/tests/browser/e10s/browser_treeupdate_ariadialog.js
rename : accessible/tests/browser/browser_treeupdate_ariaowns.js => accessible/tests/browser/e10s/browser_treeupdate_ariaowns.js
rename : accessible/tests/browser/browser_treeupdate_canvas.js => accessible/tests/browser/e10s/browser_treeupdate_canvas.js
rename : accessible/tests/browser/browser_treeupdate_cssoverflow.js => accessible/tests/browser/e10s/browser_treeupdate_cssoverflow.js
rename : accessible/tests/browser/browser_treeupdate_doc.js => accessible/tests/browser/e10s/browser_treeupdate_doc.js
rename : accessible/tests/browser/browser_treeupdate_gencontent.js => accessible/tests/browser/e10s/browser_treeupdate_gencontent.js
rename : accessible/tests/browser/browser_treeupdate_hidden.js => accessible/tests/browser/e10s/browser_treeupdate_hidden.js
rename : accessible/tests/browser/browser_treeupdate_imagemap.js => accessible/tests/browser/e10s/browser_treeupdate_imagemap.js
rename : accessible/tests/browser/browser_treeupdate_list.js => accessible/tests/browser/e10s/browser_treeupdate_list.js
rename : accessible/tests/browser/browser_treeupdate_list_editabledoc.js => accessible/tests/browser/e10s/browser_treeupdate_list_editabledoc.js
rename : accessible/tests/browser/browser_treeupdate_listener.js => accessible/tests/browser/e10s/browser_treeupdate_listener.js
rename : accessible/tests/browser/browser_treeupdate_optgroup.js => accessible/tests/browser/e10s/browser_treeupdate_optgroup.js
rename : accessible/tests/browser/browser_treeupdate_removal.js => accessible/tests/browser/e10s/browser_treeupdate_removal.js
rename : accessible/tests/browser/browser_treeupdate_table.js => accessible/tests/browser/e10s/browser_treeupdate_table.js
rename : accessible/tests/browser/browser_treeupdate_textleaf.js => accessible/tests/browser/e10s/browser_treeupdate_textleaf.js
rename : accessible/tests/browser/browser_treeupdate_visibility.js => accessible/tests/browser/e10s/browser_treeupdate_visibility.js
rename : accessible/tests/browser/browser_treeupdate_whitespace.js => accessible/tests/browser/e10s/browser_treeupdate_whitespace.js
rename : accessible/tests/browser/doc_treeupdate_ariadialog.html => accessible/tests/browser/e10s/doc_treeupdate_ariadialog.html
rename : accessible/tests/browser/doc_treeupdate_ariaowns.html => accessible/tests/browser/e10s/doc_treeupdate_ariaowns.html
rename : accessible/tests/browser/doc_treeupdate_imagemap.html => accessible/tests/browser/e10s/doc_treeupdate_imagemap.html
rename : accessible/tests/browser/doc_treeupdate_removal.xhtml => accessible/tests/browser/e10s/doc_treeupdate_removal.xhtml
rename : accessible/tests/browser/doc_treeupdate_visibility.html => accessible/tests/browser/e10s/doc_treeupdate_visibility.html
rename : accessible/tests/browser/doc_treeupdate_whitespace.html => accessible/tests/browser/e10s/doc_treeupdate_whitespace.html
rename : accessible/tests/browser/events.js => accessible/tests/browser/e10s/events.js
rename : browser/components/extensions/test/browser/browser_ext_pageAction_context.js => browser/components/extensions/test/browser/browser_ext_pageAction_title.js
rename : browser/components/extensions/test/browser/browser_ext_pageAction_context.js => browser/components/extensions/test/browser/head_pageAction.js
rename : dom/events/test/pointerevents/pointerevent_element_haspointercapture.html => dom/events/test/pointerevents/pointerevent_element_haspointercapture-manual.html
rename : dom/events/test/pointerevents/test_pointerevent_element_haspointercapture.html => dom/events/test/pointerevents/test_pointerevent_element_haspointercapture-manual.html
rename : gfx/thebes/DeviceManagerD3D11.cpp => gfx/thebes/DeviceManagerDx.cpp
rename : gfx/thebes/DeviceManagerD3D11.h => gfx/thebes/DeviceManagerDx.h
rename : media/webrtc/trunk/tools/gyp/test/compiler-override/compiler.gyp => media/webrtc/trunk/tools/gyp/test/compiler-override/compiler-exe.gyp
rename : media/webrtc/trunk/tools/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist.strings => media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings
rename : media/webrtc/trunk/tools/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist.strings => media/webrtc/trunk/tools/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist-error.strings
rename : media/webrtc/trunk/tools/gyp/test/mac/gyptest-postbuild-static-library.gyp => media/webrtc/trunk/tools/gyp/test/mac/gyptest-postbuild-static-library.py
rename : media/webrtc/trunk/tools/gyp/test/rules/src/subdir4/asm-function.asm => media/webrtc/trunk/tools/gyp/test/rules/src/subdir4/asm-function.assem
rename : mfbt/unused.h => mfbt/Unused.h
rename : testing/web-platform/tests/pointerevents/pointerevent_element_haspointercapture.html => testing/web-platform/tests/pointerevents/pointerevent_element_haspointercapture-manual.html
extra : rebase_source : a3de7d91a61df9b14fe07a89f5b0184a067549cf
2016-08-25 08:14:36 -04:00