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

19952 Коммитов

Автор SHA1 Сообщение Дата
Michael Comella 90ec31ddaa Bug 1258794 - Add trailing whitespace checkstyle check & fix issues. r=nalexander
MozReview-Commit-ID: IUslNabcTHO

--HG--
extra : rebase_source : 2981fa4d68dfde41159ab5f987dfcab0b28ef0ec
2016-04-06 10:08:46 -07:00
Michael Comella 669f79e139 Bug 1258794 - Pre: Add GenericWhitespace and fix single issue. r=nalexander
MozReview-Commit-ID: DVO9zFQCRzZ

--HG--
extra : rebase_source : 039b10bfc53dd5fa4130d73a3cb09fb1ad6f9437
2016-04-06 09:57:26 -07:00
Michael Comella a287898b62 Bug 1246816 - Add unit tests for profile creation date. r=sebastian
MozReview-Commit-ID: 5ONkG2MzHfc

--HG--
extra : rebase_source : ee19c1c7027b4e7cba9946567c06b638155f6653
2016-03-31 15:22:09 -07:00
Michael Comella fd7c1ea0b3 Bug 1246816 - Get core ping profile creation date from application install time. r=sebastian
MozReview-Commit-ID: Bo07XuqQDWl

--HG--
extra : rebase_source : 865ca66991eb6baeb7fa4ed15f638e38f3ae1a91
2016-03-31 15:30:39 -07:00
Michael Comella 41ebdd9152 Bug 1246816 - Add ContextUtils.getPackageInstallTime. r=sebastian
MozReview-Commit-ID: JjGcoSwahUF

--HG--
extra : rebase_source : 90c41e6ff4dd75b02a92b9b7522f54c33ceaabf2
2016-03-31 14:32:12 -07:00
Sebastian Kaspari f6c1191b1f Bug 1171110 - Add support for floating text selection toolbar for Android 6.0+. r=capella
MozReview-Commit-ID: 7FLGgrT5gDg

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/TextSelection.java => mobile/android/base/java/org/mozilla/gecko/ActionBarTextSelection.java
extra : rebase_source : 3df632e7a04816ea29fde8c9f214afe39608b173
2016-03-14 11:57:05 +01:00
Sebastian Kaspari 2f901f061a Bug 1261819 - Follow-up (lint bustage): Remove unused resource: android_package_name. r=me
MozReview-Commit-ID: HXs7BNCswRb

--HG--
extra : amend_source : c21b40ef9b5696efa4470ab5af2f99025843b70f
2016-04-06 13:27:04 +02:00
Sebastian Kaspari 2bc5787d71 Bug 1261808 - Re-add telemetry for unsubscribing from feeds. r=margaret
MozReview-Commit-ID: 3aHIujRBXcQ

--HG--
extra : rebase_source : e9c9e9be3daa194001c663d4a691948579874c55
extra : amend_source : dbd4b4c6fe5b75e48525eb69f274a7d34689202a
2016-04-05 13:18:35 +02:00
Sebastian Kaspari 821e2be1b8 Bug 1261819 - Add summary to "Notifications" setting. r=grisha
MozReview-Commit-ID: 5zLWKNlMNVr

--HG--
extra : rebase_source : 5c6c3fc35ab67e419e6dbb6db0ea58db48a0924e
2016-04-05 13:13:56 +02:00
Sebastian Kaspari 35237156a4 Bug 1261819 - (Pre) Move and replace: xml-v11/preferences.xml -> preferences.xml. r=grisha
MozReview-Commit-ID: LiFy3HcxYMw

--HG--
extra : rebase_source : 2e172635a57be42e2f69776c82cc227b7e879153
2016-04-05 12:51:43 +02:00
Carsten "Tomcat" Book 1a78cc422f Merge mozilla-central to fx-team 2016-04-06 12:20:37 +02:00
Carsten "Tomcat" Book dddbd2f44f merge fx-team to mozilla-central a=merge 2016-04-06 11:59:25 +02:00
Sebastian Kaspari a11703305a Bug 1261811 - Send LOAD_URL telemetry for content notifications. r=margaret
MozReview-Commit-ID: W3ANFsjvvS

--HG--
extra : rebase_source : b45b080dfcf338e69f89bb00d394e1a8e2b0563d
extra : histedit_source : ec6d7585274b02651bd1c53d1af98b51c5547b2f
2016-04-05 13:23:19 +02:00
Kyle Huey b98d3ef86c Bug 1259581: Remove MOZ_MEDIA_NAVIGATOR. r=jesup 2016-04-05 20:12:03 -07:00
Jim Chen 3fca182cf1 Bug 1222889 - Ignore selection change notifications when auto-completing; r=margaret
Adding the auto-completion text in the URL bar triggers selection change
notifications on Android 5.0 and above. That led us to think the user
changed the selection, and in turn commit the auto-completion. This
patch makes us ignore this edge case and preserve the auto-completion.
2016-04-05 21:54:12 -04:00
Jim Chen 8af38dfebc Bug 1260243 - Remove sendEventToGeckoSync and related code; r=me
We can remove GeckoAppShell.sendEventToGeckoSync and related code
because GeckoThread.waitOnGecko is replacing it.
2016-04-05 21:43:41 -04:00
Jim Chen a8db6b0407 Bug 1260243 - Call GeckoThread.onPause/onResume in GeckoService; r=snorp
Inform Gecko of the Android process lifecycle by calling
GeckoThread.onPause and onResume, so that Gecko is more likely to be in
a consistent state if Android kills our process.
2016-04-05 21:43:41 -04:00
Jim Chen 2bb3a5b2e1 Bug 1260243 - Convert backgrounding/foregrounding GeckoEvent to native calls; r=snorp
Convert APP_BACKGROUNDING and APP_FOREGROUNDING events in GeckoEvent to
native calls onPause and onResume in GeckoThread, respectively.
2016-04-05 21:43:41 -04:00
Jim Chen 8318ca75b7 Bug 1260243 - Add GeckoThread.waitOnGecko; r=snorp
GeckoThread.waitOnGecko blocks the current thread and waits for previous
events on the Gecko thread to finish executing before continuing. This
is implemented by synchronously running a dummy event on the Gecko
thread. This patch also lets us get rid of sendEventToGeckoSync in
GeckoAppShell.
2016-04-05 21:43:40 -04:00
Jim Chen 2503738abf Bug 1259653 - Update Robocop tests; r=gbrown
This bug changed the meaning of profiles with empty names (""). It used
to mean the same thing as a null name, which represents the default
profile. However, the new behavior is that an empty name indicates a
custom profile. So the tests involving empty names are removed from
testGeckoProfile.
2016-04-05 21:43:40 -04:00
Jim Chen c8b12009a6 Bug 1259653 - Respect the profile when starting GeckoService; r=snorp
In GeckoService, wait until we get an Intent before starting GeckoThread
using the profile information contained in the Intent.
2016-04-05 21:43:40 -04:00
Jim Chen ef1800c548 Bug 1259653 - Support initializing GeckoThread with a specific profile; r=snorp
Add GeckoThread.initWithProfile that make it easy to target a particular
profile. The method succeeds when GeckoThread has not been initialized
or is already using the specified profile. It fails when the current
profile does not match the specified profile.
2016-04-05 21:43:40 -04:00
Jim Chen d255ddc8dc Bug 1259653 - Make sure GeckoThread handles custom profiles; r=snorp
Make sure GeckoThread adds the appropriate profile arguments even for
custom profiles.
2016-04-05 21:43:40 -04:00
Jim Chen 04640791c8 Bug 1259653 - Treat custom profiles differently in GeckoProfile; r=margaret
Make sure we treat profiles under a custom directory differently. To
simplify things, custom profiles must already exist, and we don't
attempt to cache instances of GeckoProfile containing custom profiles.

Custom profiles are an edge use case (must be passed in via Intent
arguments) so I think it's reasonable to have this behavior change.
2016-04-05 21:43:40 -04:00
Jim Chen d918431f74 Bug 1258554 - Only determine GeckoThread arguments when needed; r=snorp
Only determine GeckoThread arguments when GeckoThread has not been
started in GeckoApp. Otherwise, if GeckoThread has already started, we
don't need those arguments.
2016-04-05 21:43:40 -04:00
Jim Chen c94ed37f77 Bug 1258554 - Don't touch GeckoApp from GeckoProfile; r=margaret
GeckoProfile.get() was reaching into GeckoApp to get and set the current
profile. I think now that GeckoThread is managing the profile, we don't
need that anymore. Also move the GuestSession check to getFromArgs, and
get rid of GeckoApp.getDefaultProfileName and
GeckoProfile.sIsUsingCustomProfile, which are redundant now.
2016-04-05 21:43:40 -04:00
Jim Chen 29cda83fe1 Bug 1258554 - Remove GeckoApp.mProfile; r=margaret
GeckoApp should not be caching the current profile.
2016-04-05 21:43:40 -04:00
Jim Chen 97eeab23f1 Bug 1258554 - Let GeckoThread manage the active profile; r=snorp r=margaret
Because Gecko itself can only handle one profile per process, we should
let the GeckoThread singleton manage our GeckoProfile instance on the
Java side, instead of using GeckoApp.
2016-04-05 21:43:39 -04:00
Nick Alexander 40af75617d No bug - Ensure Robocop can find GeckoProfile.getDB. r=me
MozReview-Commit-ID: 3KdDRXnsfHv

--HG--
extra : rebase_source : bc199c0f7d31d8079f7236a24f86ab99c7bbcb49
2016-04-05 16:10:52 -07:00
Michael Comella 351865c710 Bug 1258787 - Update tooltool manifests with checkstyle gradle deps. r=nalexander
Deps produced with gradle-dependencies task:
  https://treeherder.mozilla.org/#/jobs?repo=try&revision=05e799f77ff3

MozReview-Commit-ID: GySU3SuAU6G

--HG--
extra : rebase_source : ac025656d7f80b1ccc0dd7c308f3f0ed35ca6abe
2016-04-05 15:23:54 -07:00
Margaret Leibovic 7ba9a0bb9e Bug 1254225 - Add a more descriptive text/description to "Show web fonts". r=sebastian
MozReview-Commit-ID: JlxTsmaGTv

--HG--
extra : rebase_source : f287a9b1f0e21f19ce119e67457e5eeccf0ac172
2016-03-23 15:22:11 -04:00
Margaret Leibovic 32a300b74b Bug 1251749 - Use UI telemetry to tell if settings are enabled or not. r=sebastian
MozReview-Commit-ID: B9CkxWYSi4y

--HG--
extra : rebase_source : ee8fef687f1e0e25c2da49b6cfaa19100383eaa3
2016-03-31 16:28:22 -04:00
Margaret Leibovic ebeae9ab62 Bug 1261713 - (Part 4) Add test for getActiveExperiments. r=sebastian
MozReview-Commit-ID: 4VwUR1GXFcg

--HG--
extra : rebase_source : 1d7d05e6dc9434b2d20f4acb3682027045018e0d
2016-04-03 18:27:00 -04:00
Margaret Leibovic 2fd4a808bd Bug 1261713 - (Part 3) Refactor and add tests for extra experiment values support. r=sebastian
MozReview-Commit-ID: A1enTZO7f9X

--HG--
extra : rebase_source : f920ca1f172fd6f01af932c3fc1291e093f864a3
2016-04-03 18:24:29 -04:00
Margaret Leibovic 7a3cebb5ed Bug 1261713 - (Part 2) Refactor isInExperiment and add unit test. r=sebastian
MozReview-Commit-ID: 7etdTcolf26

--HG--
extra : rebase_source : cefe9029a8b6d14cdcd969be7556aa677da9e546
2016-04-03 18:08:15 -04:00
Margaret Leibovic 895ef3571e Bug 1261713 - (Part 1) Add unit test for DeviceUuidFactory.java. r=sebastian
MozReview-Commit-ID: 16iy9tvgg8x

--HG--
extra : rebase_source : 2a10ae27b90738da6e39ec449c24590478302625
2016-04-03 17:58:12 -04:00
Margaret Leibovic c7d8ce7715 Bug 1207719 - (Part 2) Change Switchboard to combine network requests for experiments and server configurations into a single network fetch. r=sebastian
MozReview-Commit-ID: c38pPvDrT8

--HG--
extra : rebase_source : 48d3d3539e53df41a1155aed8998a841c8330411
2016-04-03 17:20:44 -04:00
Margaret Leibovic 9762541092 Bug 1207719 - (Part 1) Convert tabs to spaces. r=sebastian
MozReview-Commit-ID: EyzXCnv1Nnk

--HG--
extra : rebase_source : 3fd530cfcc6762ecf4aa8cb13d351766bfde9f89
2016-04-01 18:23:13 -04:00
Alexandre Poirot d85fa6d2c0 Bug 1258985 - Remove menuitem and pref related to the "Error Console". r=jryans 2016-04-05 07:16:48 -07:00
Carsten "Tomcat" Book 8f42935451 Merge mozilla-central to fx-team to fix 2 perma failures 2016-04-05 10:36:40 +02:00
Carsten "Tomcat" Book fad84a5168 Backed out changeset 864320b75e76 (bug 1259466) for suspicion this caused bc 7 test failures on m-c 2016-04-05 08:54:01 +02:00
Ryan VanderMeulen 26094430c0 Merge inbound to m-c. a=merge 2016-04-04 23:34:14 -04:00
Jeff Muizelaar 328e2a6882 Bug 1259466. Rename layers.offmainthreadcomposition.enabled. r=milan
We would rather people not use this pref.
2016-04-04 17:15:00 -04:00
Michael Comella d0a151fdf5 Bug 1258769 - Add checkstyle gradle task. r=nalexander
Run checkstyle via:
 ./mach gradle app:checkstyle

This is intended to be added to automation in bug 1258787 and made more robust
in bug 1261486.

For the addition of future checks, it's worth noting Google's config is
available:
  3e4367941c/src/main/resources/google_checks.xml

And this version contains links with descriptions of each of the tasks:
  http://checkstyle.sourceforge.net/google_style.html

MozReview-Commit-ID: 5HvtQsyY2JQ

--HG--
extra : rebase_source : ea45bcfb88ec302e9f6e6526d9afdbf2c9c93f01
2016-04-01 14:20:45 -07:00
Margaret Leibovic 3feed5868e Bug 1259158 - Update tab queues prompt telemetry to use UI telemetry instead of histograms. r=sebastian r=mfinkle
MozReview-Commit-ID: 4aws9Rcy5W1

--HG--
extra : transplant_source : %FE%F4%1A%A8%E0Y%D7%0Dzq%60%DF%D0%A7%B1%D8v%84oh
2016-04-01 10:59:03 -04:00
Sebastian Kaspari d66497c13b Bug 1260930 - Settings: Add "Logins" group in Settings > Privacy. r=ahunt
MozReview-Commit-ID: 41cljy2E1pV

--HG--
extra : rebase_source : 503eeb4bce9a969f6be2ace77b50c7a02be771eb
2016-03-31 20:14:06 +02:00
Jan Henning d252cc0e5c Bug 1044556 - Part 4 - Unify audio playback indication handling. r=sebastian
Since we're now triggering zombification events, we can easily handle resetting the audio playback indicator upon zombifciation by having the tab object listen for the appropriate TabPreZombify event and handle it alongside the normal DOMAudioPlayback events instead of duplicating that functionality within the memory observer.

MozReview-Commit-ID: JSgGyw9g6Lm

--HG--
extra : transplant_source : 1%0D%E5%D2d%E2%23%87%60%96%86m%F1%FA%C8%7E.r%B5%8C
2016-03-30 20:41:37 +02:00
Jan Henning 03f1ea26a2 Bug 1044556 - Part 3 - Add a test for verifying that the session store successfully continues recording tab history even after zombification. r=sebastian
MozReview-Commit-ID: 1zSn6QXrR9a

--HG--
extra : transplant_source : uc%D9%A8%C2%D9N%CA%29%D8cWt%E0%29%8B%8D%93%00u
2016-03-31 19:49:00 +02:00
Jan Henning 9e986ae0b4 Bug 1044556 - Part 2 - Move promiseTabEvent to head.js. r=sebastian
MozReview-Commit-ID: 5sLe2nl4v2u

--HG--
extra : transplant_source : %91%5D%DFQ%B7%D0%AF%0D%7B%0FC%B8%13%A6%A4%1B%FF%7B%E2f
2016-03-31 18:03:21 +02:00
Dinesh Polathula b5265b4bba Bug 1257217 - Remove unused method GeckoPreferences.broadcastPrefAction(). r=sebastian
MozReview-Commit-ID: FHJqGzyACiF

--HG--
extra : amend_source : 33a11366abe40d62740ef2f90af6818f843e656f
2016-04-04 13:59:52 +02:00
Randall Barker 3eeb55a5ff Bug 1257269 - Panning up in a scrollable element should not hide the toolbar r=kats,jchen 2016-04-01 16:07:29 -07:00
Wes Kocher 56b7127be0 Merge fx-team to central, a=merge
MozReview-Commit-ID: 8rupfWq5Wa6
2016-04-01 15:43:36 -07:00
Jan Henning 13436d1f56 Bug 1044556 - Part 1 - Notify the session store about tab zombifications. r=sebastian
The session store relies on a few event listeners to track the history and life cycle of a tab. Under memory pressure, background tabs are zombified in order to reduce our memory usage. This involves destroying the original tab object and then recreating it as a delay loaded tab.

As the session store is never told about this, it will keep the event listeners for the old tab objects - which have now been destroyed - alive and won't receive any future events for the new tab objects. This means that once a zombification has been triggered, the session history for those tabs will become effectively frozen, so after the next zombification or a session restore, the tab will reload the wrong page.

Therefore this patch introduces two new events which are sent during the tab zombification process and allow the session store to detach its event listeners from the old tab object before it is going to be destroyed and subsequently reattach its listeners to the new tab object.

MozReview-Commit-ID: 6xZtsCNZbQY

--HG--
extra : transplant_source : %7D%BB%D6%BA%D9%F6%B8%0E%7D%F6%0A%26%A0Y%3E%1Dr%7B%F1%C5
2016-03-18 11:40:26 +01:00
Margaret Leibovic 0137da4b04 Bug 1256415 - Replace FENNEC_GECKOAPP_STARTUP_ACTION histogram with UI telemetry. r=mfinkle
MozReview-Commit-ID: ElmELmp7baV

--HG--
extra : transplant_source : %9B%E2%FF%23p%0C%EF6%12%F3%27%16%C2%E6%1E%2A%C3c%04J
2016-03-18 19:07:18 -04:00
Jan Henning bab59d0585 Bug 852267 - Part 2 - Add a null check before restoring history. r=margaret
Normally we shouldn't get into a situation where aTabData will be null/empty when trying to restore history, but bug 1229259 comment 10 shows that this can somehow still happen, most probably because we zombified a tab before it had any chance to build some session data.

MozReview-Commit-ID: 9Mw55NTiVTP

--HG--
extra : transplant_source : %F5%CE%C5%89%E0%3F%3E%F3%23e%AE%1C%DE%117%B4eE%D0%3B
2016-03-31 21:05:02 +02:00
Jan Henning 968c7b3e8c Bug 852267 - Part 1 - Always attach session store data to restored tabs. r=margaret
Up till now, when restoring tabs, the previous session store data was only attached to the tab object where necessary to make delay loaded tabs work. In all other cases, the session store data was left empty and recreated only once page loading had progressed sufficiently far to fire the DOMTitleChanged event. This means that a tab could get lost if the session was saved before this point and Firefox then subsequently killed. In conjunction with bug 1044556, a memory pressure event could also prevent the session store data from being recreated for a tab, because the session store wouldn't recieve any new events for tabs that had been zombified.

Therefore, with this patch we always attach the previous session store data to a freshly restored tab, so it will always be included in a session save even if the save is triggered before tab loading has progressed far enough.

MozReview-Commit-ID: GVupnXwuRDV

--HG--
extra : transplant_source : %AAsbW%B6%10%3A%E9%F1.J%9D%E8W%40%AD%CCkI%1D
2016-03-31 20:53:06 +02:00
Ryan VanderMeulen 8f64ef0960 Merge m-c to fx-team. a=merge 2016-04-04 23:37:40 -04:00
Nick Alexander ec8debfd7f Bug 1261742 - Fix l10n single locale repacks by correcting dependency. r=mshal
MozReview-Commit-ID: IJaM2SoyxTK

--HG--
extra : rebase_source : 1b1ceb13c71bc836c2460e92ff6c637f95fd7d39
extra : amend_source : bac8deed39884ca4f386cc8193df58c330f01346
2016-04-04 13:25:43 -07:00
Nick Alexander 677ef9e6c6 Bug 1261302 - Decouple the push permission from MOZ_ANDROID_GCM. r=sebastian
MozReview-Commit-ID: 2enIZSm4FuF

--HG--
extra : rebase_source : 7bb0310c4f18fb8871c204b9ac31efe03d56c245
2016-04-04 10:38:04 -07:00
Mike Shal b9c1391091 Bug 1259555 - Remove many PP_TARGETS / INSTALL_TARGETS from mobile/android; r=nalexander
The remaining android PP_TARGETS are for l10n or require support for
passing flags to the preprocessor (bug 1259530).


MozReview-Commit-ID: InnQF3e0DZ1
2016-03-23 15:14:12 -04:00
James Willcox 0391aa89f2 Bug 1222098 - Devicemotion event timestamp should return values from Android sensor API and not Gecko. r:smaug 2016-04-04 12:22:59 -05:00
Eugen Sawin 1faf7f7ecd Bug 1257304 - [1.3] Cache screen size and update only on orientation change. r=jchen 2016-04-04 14:59:14 +02:00
Mouaad f3c1e51f7d Bug 1255394 - Restrictions: Fix java package. r=sebastian
MozReview-Commit-ID: XzS7bSaXhW

--HG--
extra : rebase_source : 65844d0e0e381fc54da4f678b5dcf7257c2322e0
2016-03-31 17:30:43 +02:00
Sebastian Kaspari d756d1c6ca Bug 1244722 - TabQueueHelper.canDrawOverlays(): Implement workaround for Android bug. r=ahunt
Android's Settings.canDrawOverlays() returns true/false for one of the packages with the same
sharedUserId. There's no guarantee that this is actually the current package.

Instead of relying on Settings.canDrawOverlays() we just try to add and remove an invisible
view through WindowManger. If this succeeds then we obviously can draw overlays and if this
fails then we seem to not have the permission.

MozReview-Commit-ID: 1jdrQ7iV3ek

--HG--
extra : rebase_source : cc3161ad659c20c6a6c4fcb1bb1548b4f7a5ca5c
2016-03-30 12:58:27 +02:00
Carsten "Tomcat" Book e873a45f68 Merge mozilla-central to fx-team 2016-04-01 11:49:37 +02:00
Sebastian Kaspari 1288190541 Bug 1247788 - Add setting for "What's new?" notification. r=margaret
MozReview-Commit-ID: 3eewsc0ILDM

--HG--
extra : rebase_source : 442cee5cd68429bdae568f8f2673643f4dc5dde9
2016-03-31 12:43:13 +02:00
Aleksander 968af42358 Bug 1227321 - Padding fix, r=mcomella
MozReview-Commit-ID: ARYZ6LOHZvA

--HG--
extra : transplant_source : %20%9A%94%DD%85%9C%0Ea%D1k%07%04%9CZtQ%D3%07c%89
2016-03-30 19:25:46 +03:00
Sebastian Kaspari ac3e0aa5a1 Bug 1258971 - Preferences: Replace some checkboxes with switches. r=grisha
MozReview-Commit-ID: Fjam9Dn20sY

--HG--
extra : rebase_source : 9c2424e1308b83a4dd31296351b599c04c9af24c
2016-03-31 14:13:10 +02:00
Sebastian Kaspari 078bc5cec4 Bug 1258971 - Pre: Replace preferrences_general(_tablet).xml with v11 version. r=grisha
xml/preferences_general.xml isn't used anymore. Replace it with the xml-v11 version
and then remove it from the xml-v11 folder.

MozReview-Commit-ID: G6OHnSZ3cKc

--HG--
extra : rebase_source : b752312e1a2111dbf3895b550fcbc8a92f1ca7aa
2016-03-31 14:05:03 +02:00
Sebastian Kaspari de3f5b9261 Bug 1260390 - Add localization note to 'content_notification_title_plural' string. r=grisha
MozReview-Commit-ID: 96f8bQoF5bL

--HG--
extra : rebase_source : d7543edbcbbb091e393b2f6e6234d2e71c4facf2
2016-03-31 11:47:52 +02:00
Chenxia Liu 9df804e1c9 Bug 1220928 - Update test references to old history panel. r=sebastian
MozReview-Commit-ID: 6A2ukiEcBO8

--HG--
extra : rebase_source : cfce253f4a68b8cf64a3975b2619154c402ca7d2
2016-03-30 17:32:11 -07:00
Chenxia Liu 7ccf1799c8 Bug 1220928 - Handle configuration changes. r=sebastian
MozReview-Commit-ID: E5MoWlcMCdj

--HG--
extra : rebase_source : a662d2908e7de5b8a6394a2746539ac8e195de95
extra : source : c1a1079daea1be3b0beb8e63e6d41956a1f5642d
2016-03-28 17:02:16 -07:00
Chenxia Liu 54b500d5b6 Bug 1220928 - Remove old History and Synced Tabs panel for uncustomized home panels. r=sebastian
MozReview-Commit-ID: G3hIeoiiNs5

--HG--
extra : rebase_source : b2f69a7d2d3f64e56bf50d329e8319a44d76eca4
extra : source : ac7d8d5ec09e45261cc73392e65f996fed4df909
2016-03-28 15:58:16 -07:00
Chenxia Liu 34f574da45 Bug 1220928 - Handle back button when in client's child view. r=sebastian
MozReview-Commit-ID: BDiyR5JCHQD

--HG--
extra : rebase_source : df21d3937f540e9aa8e22e6fba7c79a6cca24a6f
extra : source : 916fb74ed491c4f492d97bb4bbc5b8f786cd223f
2016-03-28 12:04:03 -07:00
Chenxia Liu 4ed44674ba Bug 1220928 - Add client hiding/showing. r=sebastian
MozReview-Commit-ID: IvyrslMqTOT

--HG--
rename : mobile/android/base/resources/layout/home_remote_tabs_hidden_devices_footer.xml => mobile/android/base/resources/layout/home_remote_tabs_hidden_devices.xml
extra : rebase_source : 0090df7352b4378040cef9c2288d28452e7aadea
extra : source : 81b90ed9ff464c38667488a5d4892728a802bdb0
2016-03-29 17:10:33 -07:00
Chenxia Liu 959ca283cb Bug 1220928 - Add context menu. r=sebastian
MozReview-Commit-ID: CQ01edJs3vP

--HG--
extra : rebase_source : dcd7b5ed6f48b422cf106f64b6ce9c827c387eca
extra : source : b2828872f3e78911798083fde9b196e7206aaf19
2016-03-23 18:36:13 -07:00
Chenxia Liu 145a10dc43 Bug 1220928 - Add section headers. r=sebastian
MozReview-Commit-ID: ItbC1yEJY4D

--HG--
extra : rebase_source : 2536ce23a789c1e75b50584fa5dc0e5ad3ce42fb
extra : source : 671ce80172a02706f96b033d188d308e9e369b14
2016-03-17 00:18:37 -07:00
Chenxia Liu fe6095df60 Bug 1220928 - Add empty state. r=sebastian
MozReview-Commit-ID: Ger04bA0aaC

--HG--
extra : rebase_source : 5b0f9876f5bfd857a04b120d8c787e6ae7db23b4
extra : source : 4fc2017aee7551aa582577445d9448462f4f7837
2016-03-15 11:45:21 -07:00
Chenxia Liu 0e4e8ab57a Bug 1220928 - Align synced clients with history items. r=sebastian
MozReview-Commit-ID: KDz13cm8okc

--HG--
extra : rebase_source : 3049c938226efcc38aeb9da06cc9ba6582d8f731
extra : source : f2a5f6a248ed41b7313a27662c223ed801e0b13c
2016-03-10 17:29:22 -08:00
Chenxia Liu 8aa3a5eaeb Bug 1220928 - Add dividers. r=sebastian
MozReview-Commit-ID: KYzvrB1YEsA

--HG--
extra : rebase_source : 8e3770f69de890ddaf7aa4cbf33a096217b37f8d
extra : source : 4502901213737dd4a9a6373347b0e396602a4da1
2016-03-09 17:49:08 -08:00
Chenxia Liu e5ae99114c Bug 1220928 - Add footerbar button. r=sebastian
MozReview-Commit-ID: 6R0RWsSljji

--HG--
extra : rebase_source : ccd840ddba473511ad4c3015ad6b7817d6687ac9
extra : source : 297774d61b596cb1fd55bed9de2ba7578f9c81e7
2016-02-25 18:25:55 -08:00
Chenxia Liu 6b0f5b6bfc Bug 1220928 - Add remote client children. r=sebastian
MozReview-Commit-ID: F5DYHrR5p99

--HG--
extra : rebase_source : 45031585da6ad7bca4d7d3fa6b04d3d14d0b83ca
extra : source : 875fbe8190d373075e85eaf5dd692f707cdcdcfa
2016-03-15 15:51:56 -07:00
Chenxia Liu df5f443116 Bug 1220928 - Open links for history. r=sebastian
MozReview-Commit-ID: KCXDHb3UEy9

--HG--
extra : rebase_source : b0b7bf667b79af12dfc04634d1881416d1f32726
extra : source : 6220841fe652e4711e0a31b4bd0f5f7a358b7a6b
2016-03-29 17:17:08 -07:00
Chenxia Liu a72bac67ca Bug 1220928 - Make static viewType to ItemType converter. r=sebastian
MozReview-Commit-ID: CIOxLFaQIIo

--HG--
extra : rebase_source : 575a718316fc1edc08ccdcffb2aa602c5f484178
extra : source : f464c44bf88255e4aafe3fa64900aa13c0905339
2016-02-24 16:13:18 -08:00
Chenxia Liu 728c83a3ea Bug 1220928 - Clients and history loading. r=sebastian
MozReview-Commit-ID: 1lCKVQH54C3

--HG--
extra : rebase_source : e012eecc151330227a96a6cb250d32faea04f0df
extra : source : ceb669fb17f23763eb4f9cfc53ad74d011e842a5
2016-02-24 14:27:55 -08:00
Chenxia Liu e97b94a1a7 Bug 1220928 - Add RecyclerView boilerplate. r=sebastian
MozReview-Commit-ID: xaRLs8JxMs

--HG--
extra : rebase_source : c086b3292f7d59685e7229934ac1755a2bfea7cc
extra : source : d64938914b3ed77c22ba4559b01d92907056b438
2016-02-23 11:00:42 -08:00
Nick Alexander 9ab9fa5451 Bug 1260241 - Implement Fennec packaging in Python. r=glandium
A few notes:

* This doesn't accommodate general OMNIJAR_NAME definitions.  The
  current name (assets/omni.ja) is baked into the product in a few
  places, and is very unlikely to change, so we just error out if this
  isn't true.

* This makes the package-manifest.in file authoritative for what goes
  into assets/, libs/, and the APK root.  Previously,
  package-manifest.in wrote into assets/ and libs/ but
  upload-files-APK.mk also had a convoluted DIST_FILES filtering
  process to work through before a file actually made it into the APK.

* This is intentional about repackaging.  It simplifies the repackage
  step rather than trying to make unpackage-then-repackage the same as
  just package.  I pretty much never get repackaging correct the first
  time; this should help.  (I've manually tested it.)

* The ALREADY_SZIPPED during repackaging is subsumed by the previous
  check if UNPACKAGE is set.  The custom linker expects stored, not
  deflated, libraries, so there's some small legwork to accommodate
  that in mozjar.

MozReview-Commit-ID: JvVtIUSX685

--HG--
extra : rebase_source : fd8a9cfe3dc364d23b1065995db599f99e676e38
2016-03-28 20:01:07 -07:00
Nick Alexander 94360ccf89 Bug 1259507 - Add UI Telemetry probes for DOM Push API in Fennec. r=mfinkle
The probes in this patch are annotated with the extra "dom-push-api"
to distinguish from future Fennec-specific push messages.  These
probes allow to determine for each user the difference:

{# sites subscribed to} - {# sites unsubscribed from}.

If we assume the same site is not subscribed to multiple times, this
is a good approximation to the total number of sites the user receives
push messages from.

To test manually:

0) Install Fennec and execute |adb shell setprop log.tag.Telemetry DEBUG|.

1) Subscribe to notifications on a site like serviceworke.rs.

Observe a UI Telemetry SAVE event, like:
D/Telemetry( 7109): SendUIEvent: event = save.1 method = service timestamp = 277456 extras = dom-push-api

2) Send a push notification using the sites' interface.

Observe a UI Telemetry PUSH_RECEIVED_MESSAGE event, like:
D/Telemetry( 7109): SendUIEvent: event = action.1 method = service timestamp = 361795 extras = dom-push-api

3) Unsubscribe to notifications by revoking permission using Site
Settings from the URL bar.

Observe a UI Telemetry PUSH_UNSUBSCRIBED_FROM_SITE event, like:
D/Telemetry( 7109): SendUIEvent: event = unsave.1 method = service timestamp = 393600 extras = dom-push-api

MozReview-Commit-ID: IOCwfXFnowA

--HG--
extra : rebase_source : 705440ac545de0bc82ec72951fb646da3fc7d67b
2016-03-29 11:39:35 -07:00
Nick Alexander b1ea159e36 Bug 1258464 - Part 2: Remove GeckoView implementation built on Fennec's Tab/Tabs. r=snorp
This will be re-implemented without reference to Fennec's Tab/Tabs
data structures.

MozReview-Commit-ID: I12Dlb3ef58

--HG--
extra : rebase_source : 397405a12bd913ac0f837fbc264890786d45ce56
extra : source : ab088eb19b46d9e8dc5551e39aa4a871a4c9ee23
2016-03-30 10:21:29 -07:00
Nick Alexander a1d48c2e26 Bug 1258464 - Part 1: Remove vestigial GeckoView attrs and initialization. r=snorp
These have no consumer and deserve to be properly reworked.

MozReview-Commit-ID: KmjE44nmLXx

--HG--
extra : rebase_source : 973f13ad0c111413aa73dff233fd771d9f641191
extra : source : dcffecae84b741d837295ad77d0dd9e7ece391eb
2016-03-30 10:21:29 -07:00
Nick Alexander a48823544b Bug 1258450 - Delegate Intent handling from GeckoAppShell to GeckoInterface. r=snorp,mcomella
MozReview-Commit-ID: HoHqZU0Ev5D

--HG--
extra : rebase_source : 06e635885605a5bbf0b952c2904dd398517e6ca1
extra : source : e5ec40672f6ee91471a420e797e653e3e322bba4
2016-03-30 10:21:29 -07:00
Nick Alexander 7296d618b7 Bug 1258450 - Automated (mostly) refactorings moving GeckoAppShell static methods into IntentHelper. r=snorp
MozReview-Commit-ID: JbfR3pVFxDK

--HG--
extra : rebase_source : db506aa89a8354e818e4b2c2415585710b3b7fa1
extra : source : 462e9e4314eff25e00e65e75359274ec09807eee
2016-03-30 10:21:29 -07:00
Nick Alexander 912d1a7b9e Bug 1258450 - Route setAccessibilityEnabled through GeckoInterface. r=snorp,jchen
MozReview-Commit-ID: 9DXQ8mxtg2Q

--HG--
extra : rebase_source : 2576493a4fc0155d575963436e37361ef79936b8
extra : source : 7a434b18855a9439a98480a2261509ab5596f315
2016-03-30 10:21:29 -07:00
Nick Alexander 69ad3a1408 Bug 1258450 - Move references to SnackbarHelper out of GeckoAppShell. r=snorp,sebastian
The existing code assumes an Activity, not just a Context, but doesn't
statically guarantee it.  This patch is safe because it dynamically
type-checks, but it would be better to declare the member to be an
Activity.

MozReview-Commit-ID: 9AigV055I5j

--HG--
extra : rebase_source : e2d273221767735504a93855623961fc171ae413
extra : source : 0476a0d0575b4b07c404eb15bc5a943ae04d0289
2016-03-30 10:21:29 -07:00
Nick Alexander f23b50bd14 Bug 1258450 - Move GlobalHistory queries to GeckoInterface. r=snorp
GlobalHistory is Fennec-specific: it accesses the Fennec history data
store, and collects Telemetry.  This allows other consumers to
implement their own store as appropriate.

MozReview-Commit-ID: 75Uxc5k8V0O

--HG--
extra : rebase_source : 7e25d183045082edaee4295cb95c62100e956c8e
extra : source : 476cdaa0ce08b0808c3892d3d5ee55f701504666
2016-03-30 10:21:29 -07:00
Nick Alexander b591ff3d43 Bug 1258450 - Add GeckoInterface.createShortcut. r=snorp
This moves some Fennec-specific home-screen icon manipulations out of
GeckoAppShell.  A GeckoView interface can follow.

MozReview-Commit-ID: 7OhRAT9Agdh

--HG--
extra : rebase_source : c5bc8a871a22c5892b320068dea6501ed8884d8e
extra : source : f39f05fa8df3717c57452ac44a16e4a86d9cbd2c
2016-03-30 10:21:29 -07:00
Nick Alexander d17f3149d7 Bug 1258450 - Remove unused GeckoInterface.getPromptService(). r=snorp
MozReview-Commit-ID: 5Aq0TEVD1zD

--HG--
extra : rebase_source : a4cc8c2930355d9b64b3d8034c600baa353fcee5
extra : source : 0fa1a5081a6092771841f255871808b84ab890b3
2016-03-30 10:21:29 -07:00
Nick Alexander 53d127859e Bug 1258450 - Don't use resources in SwipeDismissListViewTouchListener. r=mcomella
This is just a small simplification to allow us to not depend on
org.mozilla.gecko.R.

MozReview-Commit-ID: TjSYwYyAMS

--HG--
extra : rebase_source : 1a5a256656063b649c4efc2d2cc8c33e476aec88
extra : source : 33e39362305beb355699cbd88cefe4a37354136c
2016-03-30 10:21:29 -07:00
Katie Broida 0170b7f16b Bug 1257599 - Rename 'Unsorted Bookmarks' into 'Other Bookmarks'. r=jaws a=kwierso
MozReview-Commit-ID: 7iMM0vg9rUo
2016-03-31 16:17:30 -07:00
David Keeler 581a304acb bug 1254667 - change certificate verification SHA1 policy to "allow for locally-installed roots" r=jcj
Before this patch, the default policy for the use of SHA1 in certificate
signatures was "allow all" due to compatibility concerns.
After gathering telemetry, we are confident that we can enforce the policy of
"allow for locally-installed roots" (or certificates valid before 2016) without
too much breakage.

MozReview-Commit-ID: 8GxtgdbaS3P

--HG--
extra : rebase_source : d1bed911f2d5d40229ea06556fee0848668e98b6
2016-03-28 12:52:40 -07:00
Eitan Isaacson a4d8daf715 Bug 1248408 - Preserve text from previous a11y event if new event does not provide any. r=mfinkle
MozReview-Commit-ID: 3hIquiKLvl7

--HG--
extra : rebase_source : 46db647654a5dcb9d2388e6856c7cb9bef1c25b4
2016-03-31 13:46:14 -07:00
Wes Kocher 7b9ea8afc5 Merge inbound to central, a=merge
MozReview-Commit-ID: FSnrOgtIFer
2016-03-31 13:04:19 -07:00
Nick Alexander 8f1d82aeb6 Bug 1260519 - Support unsubscribing from Push API messages from a site. r=jchen
This was implemented, but never wired up.

I thought long and hard about how to unit test this, and it's quite
difficult.  First, we'd have to chose a layer of testing.  We could
unit test:

* the JS <-> Java message passing;

* the permission prompts <-> JS interface;

* some interactions with the Service Worker interface.

The first is difficult because none of our current testing emulators
have Google Play Services and GCM enabled, so we'd need to allow to
mock or otherwise fake the GCM registration.  Then we'd need to stand
up a mock autopush server (using httpd.js or the Java-side
equivalent), or mock out the autopush client as well.  At this point,
we're testing sendMessage.  This could be done, but I'd rather slide
this fix in before building out quite a bit of test infrastructure.
(For the record, the Java Push Service state machine is thoroughly
tested with Java unit tests, so I have confidence that the unsubscribe
logic works.)

The second is tested via the PushWebSocket tests, which are now
running on Android.  That is, if permissions and the PushService are
interacting badly, we should see it with the existing test suite.
Since PushServiceAndroidGCM is pretty much a pass-through, there's
little value to be added here.

Finally, the third is also tested via the PushWebSocket tests.
There's absolutely nothing GCM specific about the Service Worker
interface to the PushService.

So I'm left manually testing this -- and now we can unsubscribe from
Push messages from sites.

MozReview-Commit-ID: HiRiqasHJ27

--HG--
extra : rebase_source : ce01aa738d583a7200e9dc93ffa38dea9663779c
extra : amend_source : 03fc8a099e83871fa7bfe345168c063b69938d5e
2016-03-29 11:59:52 -07:00
Sebastian Kaspari 558b47b957 Bug 1201059 - Synchronize catalog of downloadable content from Kinto instance. r=rnewman,mathieu
This patch does a couple of things:
* Add a SyncAction for synchronizing the catalog from Kinto
* Add a CleanupAction for removing files no longer needed

* Migrate the data structure of DownloadContentCatalog from a list to a map.
* Move the more complex builder code to its own class: DownloadContentBuilder
* Introduce a switchboard expriment for staged rollout (download-content-catalog-sync)

MozReview-Commit-ID: D733Xx6LxOb

--HG--
rename : mobile/android/tests/background/junit4/src/org/mozilla/gecko/dlc/catalog/TestDownloadContent.java => mobile/android/tests/background/junit4/src/org/mozilla/gecko/dlc/catalog/TestDownloadContentBuilder.java
extra : rebase_source : afd82e4fbc24cf931c6a9198e72adfbf489b025a
2016-03-22 11:20:18 +01:00
Carsten "Tomcat" Book 57d02c840e Backed out changeset d64938914b3e (bug 1220928) for perma failures in testAboutHomeVisibility | Waiting for HomePager HISTORY panel. 2016-03-30 14:38:23 +02:00
Carsten "Tomcat" Book 26bac9c8ee Backed out changeset ceb669fb17f2 (bug 1220928) 2016-03-30 14:38:07 +02:00
Carsten "Tomcat" Book ed9c9d302d Backed out changeset f464c44bf882 (bug 1220928) 2016-03-30 14:38:06 +02:00
Carsten "Tomcat" Book 47a898209e Backed out changeset 6220841fe652 (bug 1220928) 2016-03-30 14:38:04 +02:00
Carsten "Tomcat" Book d269e2829d Backed out changeset 875fbe8190d3 (bug 1220928) 2016-03-30 14:38:03 +02:00
Carsten "Tomcat" Book b6dab89284 Backed out changeset 297774d61b59 (bug 1220928) 2016-03-30 14:38:01 +02:00
Carsten "Tomcat" Book 461d0bc460 Backed out changeset 450290121373 (bug 1220928) 2016-03-30 14:37:59 +02:00
Carsten "Tomcat" Book 253355d4c5 Backed out changeset f2a5f6a248ed (bug 1220928) 2016-03-30 14:37:57 +02:00
Carsten "Tomcat" Book c06feb2063 Backed out changeset 4fc2017aee75 (bug 1220928) 2016-03-30 14:37:56 +02:00
Carsten "Tomcat" Book 9bd7698527 Backed out changeset 671ce80172a0 (bug 1220928) 2016-03-30 14:37:54 +02:00
Carsten "Tomcat" Book 295caa8a33 Backed out changeset b2828872f3e7 (bug 1220928) 2016-03-30 14:37:52 +02:00
Carsten "Tomcat" Book 442eb5d69f Backed out changeset 81b90ed9ff46 (bug 1220928) 2016-03-30 14:37:51 +02:00
Carsten "Tomcat" Book 0007e51ed1 Backed out changeset 916fb74ed491 (bug 1220928) 2016-03-30 14:37:49 +02:00
Carsten "Tomcat" Book 3a03cc0f61 Backed out changeset ac7d8d5ec09e (bug 1220928) 2016-03-30 14:37:47 +02:00
Carsten "Tomcat" Book 401ca562d8 Backed out changeset c1a1079daea1 (bug 1220928) 2016-03-30 14:37:46 +02:00
Carsten "Tomcat" Book b10f5a4809 Backed out changeset ccaff6721da0 (bug 1258450) for android m15 perma failures
--HG--
extra : rebase_source : 30d753680f3a11e4a57892b1aa5dddb2189af76c
2016-03-30 14:02:39 +02:00
Carsten "Tomcat" Book 856dc145c5 Backed out changeset 33e39362305b (bug 1258450)
--HG--
extra : rebase_source : 77bfc704c16f79f5a18a17208fbe5a4ddf1f4bd4
2016-03-30 14:02:22 +02:00
Carsten "Tomcat" Book afe732ca62 Backed out changeset 0fa1a5081a60 (bug 1258450)
--HG--
extra : rebase_source : 9ffb2a7623e44b5359da289d017ddc68e7406673
2016-03-30 14:02:20 +02:00
Carsten "Tomcat" Book 2c6b0aecd1 Backed out changeset f39f05fa8df3 (bug 1258450)
--HG--
extra : rebase_source : af16b5b8e38ba400a8a7014338d0737d6ec9fae0
2016-03-30 14:02:18 +02:00
Carsten "Tomcat" Book d2a9e26f21 Backed out changeset 476cdaa0ce08 (bug 1258450)
--HG--
extra : rebase_source : 0547a5e08beb416f37ed5fc755c752ab68abc427
2016-03-30 14:02:17 +02:00
Carsten "Tomcat" Book 2c53761be7 Backed out changeset 0476a0d0575b (bug 1258450)
--HG--
extra : rebase_source : 06e938a5b325449d3ee216b0e6a79cb6d1723cad
2016-03-30 14:02:15 +02:00
Carsten "Tomcat" Book ed90a50932 Backed out changeset 7a434b18855a (bug 1258450)
--HG--
extra : rebase_source : c1c5627a67867088ef59df0ae0b87bf87899f87c
2016-03-30 14:02:13 +02:00
Carsten "Tomcat" Book 513f287aa5 Backed out changeset 462e9e4314ef (bug 1258450)
--HG--
extra : rebase_source : 139e7fdda6b8b9c5bbdafd124cc17268cb602c04
2016-03-30 14:02:12 +02:00
Carsten "Tomcat" Book 6079058c19 Backed out changeset e5ec40672f6e (bug 1258450)
--HG--
extra : rebase_source : fec0cf93dbd00663fbb072ffa3394c12b3cf7fc5
2016-03-30 14:02:10 +02:00
Carsten "Tomcat" Book d661d27402 Backed out changeset dcffecae84b7 (bug 1258464)
--HG--
extra : rebase_source : 6c6020f4a9e1dfd2721973a977fdc275a833efcd
2016-03-30 14:02:09 +02:00
Carsten "Tomcat" Book d73492a895 Backed out changeset ab088eb19b46 (bug 1258464)
--HG--
extra : rebase_source : 50a2fda0ba99a67a160fa15235a929ce521787b7
2016-03-30 14:02:07 +02:00
Jan Henning b6734a035a Bug 1260113 - Part 2 - Don't zombify tabs playing audio even under memory pressure. r=margaret
Bug 1253278 added support for not zombifying least recently used tabs if they were playing audio. This patch extends this behaviour to also cover the case where we want to zombify *all* background tabs under memory-pressure. Therefore, a tab which is currently playing audio should now never get zombified, which also means that the issue about the audio playing indicator fixed in part 1 is now sidestepped.

MozReview-Commit-ID: LBeEX2KPh2J

--HG--
extra : transplant_source : %297%26%C1%B9%3A%D5hVb%3Ce%FE%05%99%3E%D17%A0%E7
2016-03-27 17:15:41 +01:00
Jan Henning d6b271d953 Bug 1260113 - Part 1 - Inform the Java UI to stop displaying the audio playback icon for zombified tabs. r=margaret
When a tab is zombified, its original tab object is destroyed and replaced by a new copy set for delay loading. This stops audio playback, but doesn't invoke the normal DOMAudioPlaybackStopped event. Because of this, we continue displaying the audio playback indicator in the tabs tray after a zombification, even though the audio itself has stopped.

With this patch, the zombification routine now notifies the UI to stop showing the audio playback indicator if neccessary.

MozReview-Commit-ID: 7oh4d6XP61K

--HG--
extra : transplant_source : %B6%83%F01K%EE%D9%AB%C0%8D3%81Q%81%E2%09mo%C8%1D
2016-03-28 15:50:28 +01:00
Nick Alexander 9f1aa81bb1 Bug 969925 - Remove fennec_ids.txt from the build system. r=gbrown
The only consumers are in ash-mozharness, which is just out of date:

http://mxr.mozilla.org/build/search?string=fennec_ids&find=&findi=&filter=%5E%5B%5E%5C0%5D*%24&hitlimit=&tree=build

MozReview-Commit-ID: CQHmKOEUDj1

--HG--
extra : rebase_source : 9aaa83ea41b556b59968bda1f53d5bf13e3e33b2
extra : histedit_source : cc63745f29357a9fec7c014a024918db528ae40e
2016-03-24 13:48:12 -07:00
Nick Alexander 509f7d5b17 Bug 1258464 - Part 2: Remove GeckoView implementation built on Fennec's Tab/Tabs. r=snorp
This will be re-implemented without reference to Fennec's Tab/Tabs
data structures.

MozReview-Commit-ID: I12Dlb3ef58

--HG--
extra : rebase_source : 853e65fa5fff403defb16d2d95855cf5812dd440
extra : histedit_source : 362571ca464dbd40e4537667643f3cd6b55199f3
2016-03-22 16:40:34 -07:00
Nick Alexander 832eca0bac Bug 1258464 - Part 1: Remove vestigial GeckoView attrs and initialization. r=snorp
These have no consumer and deserve to be properly reworked.

MozReview-Commit-ID: KmjE44nmLXx

--HG--
extra : rebase_source : c2944ad44a0d3eb5b5486ca0afb4548a429dc518
extra : histedit_source : e2b2a2848e64bc0151b8c92071e83aea2e88237f
2016-03-22 16:37:02 -07:00
Nick Alexander 46a380f51b Bug 1258450 - Delegate Intent handling from GeckoAppShell to GeckoInterface. r=snorp,mcomella
MozReview-Commit-ID: HoHqZU0Ev5D

--HG--
extra : rebase_source : 602ffe212a16570a57bc4d67d728fe2ff1e51d1c
extra : histedit_source : e3862782ce84ebad7aeb3838c553b4f37d9c50a4
2016-03-20 20:27:52 -07:00
Nick Alexander abc9f12949 Bug 1258450 - Automated (mostly) refactorings moving GeckoAppShell static methods into IntentHelper. r=snorp
MozReview-Commit-ID: JbfR3pVFxDK

--HG--
extra : rebase_source : 288b26044885837bf621f487e00d8792309b1b6d
extra : histedit_source : afdfef03041f68486ffa3fc0fbcc28849e49d929
2016-03-20 20:14:07 -07:00
Nick Alexander 4b6e9aef12 Bug 1258450 - Route setAccessibilityEnabled through GeckoInterface. r=snorp,jchen
MozReview-Commit-ID: 9DXQ8mxtg2Q

--HG--
extra : rebase_source : 103a26a8f7568b65cb27b0378ef6980dccee4f83
extra : histedit_source : ce73743d2827734078bc2b231947ab36cdd54fcc
2016-03-20 20:00:07 -07:00
Nick Alexander 0d60dcf025 Bug 1258450 - Move references to SnackbarHelper out of GeckoAppShell. r=snorp,sebastian
The existing code assumes an Activity, not just a Context, but doesn't
statically guarantee it.  This patch is safe because it dynamically
type-checks, but it would be better to declare the member to be an
Activity.

MozReview-Commit-ID: 9AigV055I5j

--HG--
extra : rebase_source : d2ab14604b27e028d105bb9fd328f703f4d720ad
extra : histedit_source : 14ecb536dcc3719fe9108a1493177b0583bc1c03
2016-03-20 14:41:39 -07:00
Nick Alexander 557a3a44c7 Bug 1258450 - Move GlobalHistory queries to GeckoInterface. r=snorp
GlobalHistory is Fennec-specific: it accesses the Fennec history data
store, and collects Telemetry.  This allows other consumers to
implement their own store as appropriate.

MozReview-Commit-ID: 75Uxc5k8V0O

--HG--
extra : rebase_source : 7492eeac06478a64aced9d956940b54d6425b697
extra : histedit_source : ff6e7af17362c316163bc94778ddc8e236df3780
2016-03-18 17:18:28 -07:00
Nick Alexander 1ed9735c87 Bug 1258450 - Add GeckoInterface.createShortcut. r=snorp
This moves some Fennec-specific home-screen icon manipulations out of
GeckoAppShell.  A GeckoView interface can follow.

MozReview-Commit-ID: 7OhRAT9Agdh

--HG--
extra : rebase_source : e09513eb2f922a06b931005eea1151b2365fd990
extra : histedit_source : 82c1feda1c8b504de99e0010bee99b4b264d84c0
2016-03-18 16:59:34 -07:00
Nick Alexander e3b1bc2e68 Bug 1258450 - Remove unused GeckoInterface.getPromptService(). r=snorp
MozReview-Commit-ID: 5Aq0TEVD1zD

--HG--
extra : rebase_source : 2830b822e56ba46aa537367d7893badf2cf83c1d
extra : histedit_source : f0cc93eab574a4243cd659969e37a8c2e5091e0c
2016-03-18 16:46:39 -07:00
Nick Alexander e6005cbc96 Bug 1258450 - Don't use resources in SwipeDismissListViewTouchListener. r=mcomella
This is just a small simplification to allow us to not depend on
org.mozilla.gecko.R.

MozReview-Commit-ID: TjSYwYyAMS

--HG--
extra : rebase_source : 3c107cfec7bfbdbe276823eb3f0c715647485a32
extra : histedit_source : 0e13217f988363f5a68372695860bb56e21a7078
2016-03-18 16:39:05 -07:00
Nick Alexander b631f14740 Bug 1258450 - Update classycle definitions. r=me
To use this, uncomment the line in geckoview.ddf.  Then, after a
build, run

./mach gradle jarLocalDebugClasses

and then

java -cp mobile/android/build/classycle/classycle-1.4.1.jar classycle.dependency.DependencyChecker -mergeInnerClasses -dependencies=@mobile/android/base/geckoview.ddf $OBJDIR/gradle/build/mobile/android/app/intermediates/packaged/local/debug/classes.jar

MozReview-Commit-ID: KYtHXpmCp6x

--HG--
extra : rebase_source : 5b66a5fed9435784960a8f96a682ec3b12bdab3b
2016-03-20 19:52:44 -07:00
Chenxia Liu b40dd78458 Bug 1220928 - Handle configuration changes. r=sebastian
MozReview-Commit-ID: E5MoWlcMCdj

--HG--
extra : rebase_source : 006266b04f760acfead496d0d97ab01fde44900d
2016-03-28 17:02:16 -07:00
Chenxia Liu 33befac088 Bug 1220928 - Remove old History and Synced Tabs panel for uncustomized home panels. r=sebastian
MozReview-Commit-ID: G3hIeoiiNs5

--HG--
extra : rebase_source : 2eb3d63c216af77b35685d63749c08d2523ec324
2016-03-28 15:58:16 -07:00
Chenxia Liu 2ed3c9aaba Bug 1220928 - Handle back button when in client's child view. r=sebastian
MozReview-Commit-ID: BDiyR5JCHQD

--HG--
extra : rebase_source : 80fae3346b33169c4a3f0fb1839f177985baf5e4
2016-03-28 12:04:03 -07:00
Chenxia Liu f6c7618966 Bug 1220928 - Add client hiding/showing. r=sebastian
MozReview-Commit-ID: IvyrslMqTOT

--HG--
rename : mobile/android/base/resources/layout/home_remote_tabs_hidden_devices_footer.xml => mobile/android/base/resources/layout/home_remote_tabs_hidden_devices.xml
extra : rebase_source : eaea9960b1cbb4f39119ef84a6b00236c8da9889
2016-03-29 17:10:33 -07:00
Chenxia Liu e03eddd33e Bug 1220928 - Add context menu. r=sebastian
MozReview-Commit-ID: CQ01edJs3vP

--HG--
extra : rebase_source : 8421df991bb184cf0b96723036638d7504bc33ad
2016-03-23 18:36:13 -07:00
Chenxia Liu 26e352846b Bug 1220928 - Add section headers. r=sebastian
MozReview-Commit-ID: ItbC1yEJY4D

--HG--
extra : rebase_source : 6f5bca6907ba0fa9d2f68d0ccaa20e4f7eb85233
2016-03-17 00:18:37 -07:00
Chenxia Liu ba889efcce Bug 1220928 - Add empty state. r=sebastian
MozReview-Commit-ID: Ger04bA0aaC

--HG--
extra : rebase_source : 9a32fd792f5606002a1ab78ed73525a62f5c9ecc
2016-03-15 11:45:21 -07:00
Chenxia Liu 51806307ba Bug 1220928 - Align synced clients with history items. r=sebastian
MozReview-Commit-ID: KDz13cm8okc

--HG--
extra : rebase_source : 100585948e4f0b86a945f2a63224c14c06d59941
2016-03-10 17:29:22 -08:00
Chenxia Liu f8e378f6d8 Bug 1220928 - Add dividers. r=sebastian
MozReview-Commit-ID: KYzvrB1YEsA

--HG--
extra : rebase_source : 6b7a9efd8004fb850e1ff42308b24bf8a829a50c
2016-03-09 17:49:08 -08:00
Chenxia Liu ab43be4d97 Bug 1220928 - Add footerbar button. r=sebastian
MozReview-Commit-ID: 6R0RWsSljji

--HG--
extra : rebase_source : df6218ff93d6d165ca6d13a8e63f992a2eedcb5c
2016-02-25 18:25:55 -08:00
Chenxia Liu af4a63638a Bug 1220928 - Add remote client children. r=sebastian
MozReview-Commit-ID: F5DYHrR5p99

--HG--
extra : rebase_source : 3de4217bae8044195e36fbb96de3249130bc43c0
2016-03-15 15:51:56 -07:00
Chenxia Liu e85b35851c Bug 1220928 - Open links for history. r=sebastian
MozReview-Commit-ID: KCXDHb3UEy9

--HG--
extra : rebase_source : 79cbef636a253b638d03fdeb2953d201c9bd3a25
2016-03-29 17:17:08 -07:00
Chenxia Liu ac5664793d Bug 1220928 - Make static viewType to ItemType converter. r=sebastian
MozReview-Commit-ID: CIOxLFaQIIo

--HG--
extra : rebase_source : ac426b9f92acf5e6a739eebf34daa21712e452b2
2016-02-24 16:13:18 -08:00
Chenxia Liu cb9bba392a Bug 1220928 - Clients and history loading. r=sebastian
MozReview-Commit-ID: 1lCKVQH54C3

--HG--
extra : rebase_source : 2b4b9446e78568bd75e4a827c7454c1958b889cc
2016-02-24 14:27:55 -08:00
Chenxia Liu 923452d82a Bug 1220928 - Add RecyclerView boilerplate. r=sebastian
MozReview-Commit-ID: xaRLs8JxMs

--HG--
extra : rebase_source : bfc0a00ff189c890f9b62db79babcdf78c81a193
2016-02-23 11:00:42 -08:00
Michael Comella 8ee25b0cf3 Bug 1249288 - review: Correct concurrency issues with searchEngineManager. r=sebastian
Additionally, added WeakReferences to the SEM in its callbacks so we can
GC ASAP if the Activity (and thus the SEM) gets GC'd. This is important
since we hold a reference to Context which can be a rather large object.

Furthermore, I added some related thread annotations where I felt they
were useful.

MozReview-Commit-ID: KaWlw14uOoN

--HG--
extra : rebase_source : 71e8363985179834aaa21b9885a66bd46ae1a361
2016-03-24 11:18:58 -07:00
Michael Comella 7bebdf2aae Bug 1249288 - Don't call SearchEngineManager change callback if it's null. r=margaret
The callback may be null if setChangeCallback is never called and would cause
a crash.

MozReview-Commit-ID: BNd16Db1A8Q

--HG--
extra : rebase_source : bc54f8eda9a985843358ebd2075edfeedd99b302
2016-02-23 18:11:57 -08:00
Michael Comella f7a0910b90 Bug 1249288 - Add default search engine to core ping. r=rnewman
The default search engine attribute may be null in the core ping if we haven't
been able to retrieve the value yet. It's unclear when this might be, but the
possibility is in the javadoc of `SearchEngineManager.getEngine`.

MozReview-Commit-ID: IrJB6GyjyTO

--HG--
extra : rebase_source : 7be9fdf01e57b5eba21842707a42662307dc5bee
2016-03-10 16:00:15 -08:00
Michael Comella d71b3f2d7e Bug 1249288 - Move om.search.providers.SearchEngine\* to omg.search. r=nalexander
We want to reuse this code for the main Activity.

MozReview-Commit-ID: BZxIrgmJI2r

--HG--
rename : mobile/android/search/java/org/mozilla/search/providers/SearchEngine.java => mobile/android/base/java/org/mozilla/gecko/search/SearchEngine.java
rename : mobile/android/search/java/org/mozilla/search/providers/SearchEngineManager.java => mobile/android/base/java/org/mozilla/gecko/search/SearchEngineManager.java
extra : rebase_source : 0a4cd7c64ecfbb5270fa2811924b7d22a87741cb
2016-02-23 17:27:24 -08:00
Michael Comella 678cd40567 Bug 1249491 - Add health report client ID migration test. r=sebastian,gfritzche
MozReview-Commit-ID: 9QbkKwEoNwq

--HG--
extra : rebase_source : f14f179d0c12a80ef677ff7c18ab5f33b4d5a533
2016-03-24 16:13:40 -07:00
Michael Comella 135d9ae98e Bug 1249491 - Write java/js integration test for retrieving telemetry client ID. r=sebastian
MozReview-Commit-ID: 4aczKEwRNkD

--HG--
extra : rebase_source : 0d42a3edf329992f87694474d697775eeeb99bc4
2016-03-24 15:39:31 -07:00
Michael Comella 721adc5027 Bug 1249491 - Move getTestProfile to BaseRobocopTest. r=sebastian
MozReview-Commit-ID: 17IM5fo78no

--HG--
extra : rebase_source : 9383daaf09f383d87a2a921a0650c44a61d73ca8
2016-03-14 16:44:30 -07:00
Michael Comella 60c50eb3dd Bug 1249491 - Add JavascriptBridgeTest.getBlockingFromJsString and friends. r=sebastian
MozReview-Commit-ID: JzG9WhZcXrp

--HG--
extra : rebase_source : b9c2636fa9ee1dfb9b2046e7bf986759f77a28a9
2016-03-25 14:34:19 -07:00
Carsten "Tomcat" Book 41ecacca17 Merge mozilla-central to fx-team 2016-03-29 14:40:14 +02:00
Carsten "Tomcat" Book 3d6e689f8a merge mozilla-inbound to mozilla-central a=merge 2016-03-29 14:16:13 +02:00
Sebastian Kaspari af96dbb495 Bug 1258328 - HelperAppDialog: Replace deprecated toast API with Snackbars.jsm. r=grisha
MozReview-Commit-ID: 2WPNo9iGHu4

--HG--
extra : rebase_source : e0e96c7bb1b0ff4d3a16661b0d6f001f82cefe87
2016-03-29 13:18:12 +02:00
Michael Comella 824915003b Bug 1258605 - Don't show about:neterror when intents fail to load. r=margaret
Motivations are in the added comment.

MozReview-Commit-ID: 1EymB8rXzT5

--HG--
extra : rebase_source : 9023b03da828b57465cd72a0f06029aca3707fca
2016-03-25 17:36:37 -07:00
Michael Comella 32c7689da3 Bug 1164715 - Update tabs tray default thumbnail background color. r=grisha
The icon foreground was already the color antlam wanted it to be.

MozReview-Commit-ID: DnxTCMcukfD

--HG--
extra : rebase_source : a520f88aa2efecad0a7c38237deda24b9c0a9ab6
2016-03-25 18:02:38 -07:00
Sebastian Kaspari 19ed8c5f31 Bug 1258812 - Create switchboard experiments for content notifications. r=margaret
MozReview-Commit-ID: 8SD5BRHRr0W

--HG--
extra : rebase_source : 578e9da01ca1ce8e92a9e0ac49a854c21e44a52c
extra : amend_source : 897de9ea80b199ad4dec8cf7815325da7c2791a8
2016-03-24 10:42:37 +01:00
Matthew Wein 2f6a139e35 Bug 1251042: Enable mochitests for extensions to run on Android. r=nalexander
MozReview-Commit-ID: FeI5bexmPg4
2016-03-25 19:52:19 -07:00
Ryan VanderMeulen e8a838517a Merge inbound to m-c. a=merge 2016-03-25 22:07:49 -04:00
Katie Broida 0baa11cc15 Bug 1151449 - Use curly quotes and apostrophes on the network error pages. r=jaws
MozReview-Commit-ID: 3mh7APxKI0H
2016-03-25 17:38:18 -04:00
Michael Comella 140701c868 Bug 1258769 - Backed out changeset fe11700b6cdf.
MozReview-Commit-ID: Jxz5RK8o4n4

--HG--
extra : rebase_source : 5737fdddfe1a46011ba9977490958e2383d6537f
2016-03-25 13:53:58 -07:00
Seth Fowler 5973113f1b Bug 1157546 - Replace the image visibility API with a more general API that tracks visibility for any kind of frame. r=mstange 2016-03-25 14:49:43 -07:00
Dinesh Polathula 2fbfa38400 Bug 1255206 - Change and unify mentions of "tap" to "touch". r=margaret 2016-03-25 16:13:11 -04:00
Michael Comella b5ed0403e2 Bug 1258769 - Use soter to add checkstyle gradle task with simple checks. r=nalexander
Run checkstyle via:
 ./mach gradle app:checkstyle

This is intended to be added to automation in bug 1258787.

Concerns with this patch:
  1) I don't have a maven-metadata-local.xml. However, I didn't take the
snapshotted version and [1] seems to indicate it's unnecessary for my
particular build.

For the addition of future checks, it's worth noting Google's config is
available:
  3e4367941c/src/main/resources/google_checks.xml

And this version contains links with descriptions of each of the tasks:
  http://checkstyle.sourceforge.net/google_style.html

[1]: https://maven.apache.org/ref/3.3.3/maven-repository-metadata/

MozReview-Commit-ID: ID3X9ZA27b0

--HG--
extra : rebase_source : ad8d3d5255e366362db5cc19985434e5ab5f9559
extra : histedit_source : b0bc07b572f7010c3f15ee76d52619ff5d76ab52
2016-03-25 09:52:15 -07:00
Michael Comella 77453d3db4 Bug 1258769 - Don't wrap import line. r=nalexander
The checkstyle checks should pass now.

MozReview-Commit-ID: HMRC2D8u8JT

--HG--
extra : rebase_source : ea2c096114dd1830054eae4864ee4426dddda499
extra : histedit_source : bf0fe0b9d7b0b29bea7869c9816214c1f818bae3
2016-03-22 14:19:51 -07:00
Michael Comella 6db6628d9a Bug 1258769 - Remove tabs from various files to pass checkstyle check. r=nalexander
MozReview-Commit-ID: JAbrVoi6Cxg

--HG--
extra : rebase_source : 567fe0e7ee0be89bf370fd3872cdb32cb094d78d
extra : histedit_source : 96cde1c17f29e097a83cc7fcc89ad42eb389e80c%2Ce75e48fb62d0dfa6899a5cecb02a03fa5550111e
2016-03-25 11:41:24 -07:00
Michael Comella 81f81cd352 Bug 1256427 - Backed out changeset 57572ba7a904 for crash on API 15-16.
AtomicFile is only available for API 17+ so we need to use the framework.

MozReview-Commit-ID: HBrLHvp57Uv

--HG--
extra : rebase_source : 8f42708c9ef8760aec125c4a8955cd2463ae1c51
2016-03-24 14:10:56 -07:00
Sebastian Kaspari f6aadfe950 Bug 1257319 - (Bustage) Follow-up: Migrate new code to use notifyObservers() API. r=me CLOSED TREE
MozReview-Commit-ID: msStUIbCV3
2016-03-24 17:39:11 +01:00
Carsten "Tomcat" Book de6c414085 Merge mozilla-central to fx-team 2016-03-24 16:20:13 +01:00
Carsten "Tomcat" Book 8427ea0354 merge mozilla-inbound to mozilla-central a=merge 2016-03-24 16:15:30 +01:00
Mark Capella a9bf9d6f64 Bug 1255819 - Fix SelectionHandler copy/paste in type=number text fields, r=margaret 2016-03-23 20:03:07 -04:00
Andrzej Hunt e62ff4a49f Bug 1219343 - Enable "Always restore tabs" by default r=margaret
Note, the effect of this change varies as follows:

(A) New users:
(B) Existing users who have never opened Settings->Advanced:
- Tabs will restore by default

(D) Existing users who have explicitly set the preference to disabled:
(D) Existing users who visited Settings->Advanced, without explicitly opening this preference:
- Tabs will not restore by default
(The preference already has a value set, hence the default has no effect)

MozReview-Commit-ID: DjMeEcYhusj
2016-03-23 11:19:10 -07:00
Sebastian Kaspari 380eb8ad82 Bug 1241810 - Follow-up: Fix FeedSubscription.hasBeenUpdated() after conflicts. r=me
MozReview-Commit-ID: LL7t96m1u6s
2016-03-24 13:52:19 +01:00
Sebastian Kaspari efd2f7dfa3 Bug 1241810 - Review follow-up: Ensure that FeedService always calls completeWakefulIntent(). r=me
MozReview-Commit-ID: GWnPCYBilNJ

--HG--
extra : rebase_source : de2185b4c6209c2d06acf2008a254c04b7d8e5f2
2016-03-23 16:08:33 +01:00
Sebastian Kaspari 513ad73d4e Bug 1241810 - Review follow-up: Rename actions to be more descriptive. r=me
MozReview-Commit-ID: 5VbOQv4W7CZ

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/feeds/action/CheckAction.java => mobile/android/base/java/org/mozilla/gecko/feeds/action/CheckForUpdatesAction.java
rename : mobile/android/base/java/org/mozilla/gecko/feeds/action/EnrollAction.java => mobile/android/base/java/org/mozilla/gecko/feeds/action/EnrollSubscriptionsAction.java
rename : mobile/android/base/java/org/mozilla/gecko/feeds/action/BaseAction.java => mobile/android/base/java/org/mozilla/gecko/feeds/action/FeedAction.java
rename : mobile/android/base/java/org/mozilla/gecko/feeds/action/SetupAction.java => mobile/android/base/java/org/mozilla/gecko/feeds/action/SetupAlarmsAction.java
rename : mobile/android/base/java/org/mozilla/gecko/feeds/action/SubscribeAction.java => mobile/android/base/java/org/mozilla/gecko/feeds/action/SubscribeToFeedAction.java
rename : mobile/android/base/java/org/mozilla/gecko/feeds/action/WithdrawAction.java => mobile/android/base/java/org/mozilla/gecko/feeds/action/WithdrawSubscriptionsAction.java
extra : rebase_source : d87251b9d09d722aee73bea62694666a4b182b3a
2016-03-23 16:07:52 +01:00
Sebastian Kaspari 9fdb905a6e Bug 1241810 - Review follow-up: Rename CheckAction.notify() to CheckAction.showNotification(). r=me
MozReview-Commit-ID: EIRYnna6yf9

--HG--
extra : rebase_source : 5fa1e41087c5dfdb090adfdeca829d22665d590c
2016-03-23 15:56:24 +01:00
Andrzej Hunt 2f56539665 Bug 1254468 - Post: Remove unused TransitionsTracker r=sebastian
This is no longer needed - TransitionAwareCursorLoaderCallbacks was the only
consumer - it was removed as it caused race conditions. The ideal future solution
is probably to use recyclerviews to avoid jank, rather than trying to wait for
transitions to happen.

It's also extremely difficult to use this correctly - the
TransitionAwareCursorLoaderCallbacks simply held the cursor that would usually
be swapped in onLoadFinished until transitions have finished (which is incorrect,
since cursors need to be swapped in before onLoadFinished returns). It's hard to imagine
any alternative solutions, short of avoiding loading cursors in the first place (which
isn't too useful, since cursor loading happens in the background, at which point the UI
status is irrelevant), or hacking the CursorLoader to not return from its worker thread
until UI transitions are done (which would require a new thread-safe implementation of
TransitionsTracker), or maybe even hacking Android Framework's AsyncTaskLoader  to not run Loader.deliverResult
while transitions are running (which seems awfully brittle and hacky).

MozReview-Commit-ID: 3JWDcznYL4Y

--HG--
extra : rebase_source : 1b4f52d84b21e4d93ebfb2d5c8d633c6ad12cf8e
extra : histedit_source : 2625e74aa08efa085733d3d34c6a2fa8550cf9f9
2016-03-15 09:06:46 -07:00
Andrzej Hunt a208332101 Bug 1254468 - Remove broken TransitionAwareCursorLoaderCallbacks r=sebastian
TransitionAwareCursorLoaderCallbacks is fundamentally flawed: old CursorLoader
cursors _must_ not be used after onLoadFinished has been called. However
we sometimes queue the cursor swapping (which is implemented by subclasses
in onLoadFinishedAfterTransitions) until after transitions have finished.
CursorLoader.deliverResult() closes the old cursor immediately after calling
onLoadFinished (with the new cursor). At this stage the adapter is
still holding onto the old (but now closed cursor), and will crash if it tries
to read this cursor (which can happen if the adapter is still iterating over the
cursor).

Instead we should ensure that we swap the cursors during onLoadFinished - the simplest
way to do this is by eliminating TransitionAwareCursorLoader and using onLoadFinished
the way the Android framework expects.

It's worth noting that TransitionAwareCursorLoader is obsolete: at the time it was added,
home panels were placed in the HomePagerTabStrip, which notified TransitionsTracker about
its transitions. However HomePagerTabStrip no longer exists, hence there's no need
for us to care about these transitions anymore. (The crash seems to happen because we
try to hide the doorhanger every time we receive LOCATION_CHANGE, and each of these starts
a hide transition - even if no doorhanger is shown - hence we often have a transition
in progress every time we show topsites.)

MozReview-Commit-ID: HsytLpHOrp2

--HG--
extra : rebase_source : 0411e017e19bb4393368b175418a41b0129a622b
extra : histedit_source : 19e68ed7f68180122b7514849b5dad4e246784cb
2016-03-14 15:38:53 -07:00
Michael Comella 06b85c49ff Bug 1256427 - Move to AtomicFile in framework from support lib. r=sebastian
MozReview-Commit-ID: 6DOKydvvSGJ

--HG--
extra : rebase_source : 0c1619d54b2a2f40952e7b01e6b9133aaabdc991
2016-03-23 10:30:52 -07:00
Michael Comella ed5862c693 Bug 1256427 - Move to LruCache in framework from support lib. r=sebastian
MozReview-Commit-ID: HImxvIVjIhw

--HG--
extra : rebase_source : 14baf6951f4cb195edc6b5c99ffa3065eb6c9d1a
2016-03-23 10:29:25 -07:00
Sebastian Kaspari d9822bf095 Bug 1254491 - Enable downloadable fonts in all release channels. r=rnewman
MozReview-Commit-ID: 7htS1v9jWJq

--HG--
extra : rebase_source : f674bf0e12580736c039889d79b8257abd4c9cf1
2016-03-22 12:57:11 +01:00
Carsten "Tomcat" Book 82bec00572 Merge mozilla-central to fx-team 2016-03-23 16:30:13 +01:00
Carsten "Tomcat" Book b5709cdb58 merge mozilla-inbound to mozilla-central a=merge 2016-03-23 16:14:48 +01:00
Carsten "Tomcat" Book 0f5bdcdccf Backed out changeset 0b0b229e5968 (bug 1257319) for causing merge conflicts when uplifting to mozilla-central 2016-03-23 10:55:31 +01:00
Carsten "Tomcat" Book dd2eeda5e6 Backed out changeset 3e80b5052d0b (bug 1257319) 2016-03-23 10:55:10 +01:00
Carsten "Tomcat" Book 8ef716e20c Backed out changeset ba16cc23d7c4 (bug 1257319) 2016-03-23 10:55:09 +01:00
Carsten "Tomcat" Book 15ef5dbe45 Backed out changeset 48d6faa3bf0f (bug 1257319) 2016-03-23 10:55:06 +01:00
Margaret Leibovic 6efcbb4b98 Bug 1248399 - Update browser.snippets.geoURL and handling code to use MLS instead of geodude. r=giorgos,grisha
MozReview-Commit-ID: wm4ZYbRCcq

--HG--
extra : rebase_source : 5ecb60dc5ee6dedf651bf1ad03f76b65b03ffcd8
2016-03-22 15:50:43 -04:00
Chenxia Liu 13a58e237c Bug 1255077 - Bookmarks menu item does nothing if bookmarks panel is disabled. r=margaret
MozReview-Commit-ID: 7219EueXxtw

--HG--
extra : rebase_source : b0d6bd376462f7f20cb2ad75e7b729a49d1831ad
2016-03-22 13:21:08 -07:00
Sebastian Kaspari da31e2623f Bug 1258289 - Follow-up: Remove unused resources to avoid lint bustage. r=me
MozReview-Commit-ID: 7EkCmCgdGI3

--HG--
extra : rebase_source : 8eeec8708fa8831d8b254d1f2b6c0495de4e0dce
2016-03-22 20:46:16 +01:00
Mike Hommey 7cd6c430c1 Bug 1257823 - Move set_config() to the global scope. r=nalexander
The way set_config is set currently makes it difficult to introspect
moz.configure files to know what configuration items are being set,
because they're hidden in the control flow of functions.

This makes some of the moz.configure more convoluted, but this is why
there are templates, and we can improve the recurring cases afterwards.
2016-03-24 09:04:28 +09:00
Sebastian Kaspari c121890328 Bug 1241810 - Review follow-up: Avoid logging potential personal information. r=me
MozReview-Commit-ID: BsGgce12yWd

--HG--
extra : rebase_source : 596b5213512fae455334642b66efc8254509a4d5
2016-03-03 13:28:08 +01:00
Sebastian Kaspari 140906b2e8 Bug 1241810 - Review Follow-up: Remove duplicated hasBeenUpdated() / isNewer() methods. r=me
MozReview-Commit-ID: 1Q0IoZ1DqJP

--HG--
extra : rebase_source : 41eee1038a55fd705f8f63d2751e2eef7f7d982b
2016-03-23 14:49:00 +01:00
Sebastian Kaspari cc3b5d613e Bug 1241810 - Bug 1251317 - Add telemetry for content notifications. r=mcomella,mfinkle
MozReview-Commit-ID: Hlh1sW0kHFg

--HG--
extra : rebase_source : af747da83fd0b0bba135c1e1d2cb4fe301cc3840
2016-03-03 14:16:17 +01:00
Sebastian Kaspari b7a571aec2 Bug 1241810 - Bug 1238087 - Add "notifications setting" action to content notification. r=mcomella
MozReview-Commit-ID: BsGgce12yWd

--HG--
extra : rebase_source : c8927cf616d36cd3b093cb7248b2027b55725bbf
2016-03-23 15:45:30 +01:00
Sebastian Kaspari f5260e3fd7 Bug 1241810 - Use UrlAnnotations table as storage. r=mcomella
This patch removes the JSON flat file based storage and instead uses the
new url_annotations table.

Two mappings will be created in the database:
* Key "feed": website URL -> feed URL
  This maps an URL to its feed URL. Multiple URLs can have the same feed
  URL. Later this mapping could be used to highlight URLs with feeds or
  subscriptions in the UI.
* Key "feed_subscription": feed URL -> Object describing the feed
  This is the actual subscription and saves the state of a subscription
  linked to the feed URL.

MozReview-Commit-ID: EFVxAwbhT5o

--HG--
extra : rebase_source : deb7bf423b12b06a1bfe619990e57d62c8142eb8
2016-02-26 17:51:17 -08:00
Sebastian Kaspari e6a8e789a2 Bug 1241810 - Add additional test case for Blogger. r=mcomella
MozReview-Commit-ID: 60BCguKxEKj

--HG--
extra : rebase_source : d7462d7d8450b930b3534dec7a329259223885fc
2016-02-26 16:19:50 -08:00
Sebastian Kaspari baf8de30f6 Bug 1241810 - Add support for wordpress.com. r=mcomella
MozReview-Commit-ID: AhXTAFszx6F

--HG--
extra : rebase_source : 4691b9492a452dea50cf511d9d1eaa1fd37b404b
2016-02-26 08:59:51 -08:00
Sebastian Kaspari 92a55a2532 Bug 1241810 - Bug 1247788 - Add "Notifications" in Settings. r=mcomella
MozReview-Commit-ID: girmjH2J7Q

--HG--
extra : rebase_source : f022184b13c3af8e1bc9d1ad1788269e16d0231d
2016-02-25 16:16:57 -08:00
Sebastian Kaspari bd161ad881 Bug 1241810 - Restructure FeedService to always complete wakeful intent. r=mcomella
MozReview-Commit-ID: FyczEKtsTgv

--HG--
extra : rebase_source : 05f17f04bb64990f0fe298728e3d05139f64b9fd
2016-02-25 14:59:32 -08:00
Sebastian Kaspari a3d6713926 Bug 1241810 - Bug 1238087 - Update style of content notification. r=mcomella
Group multiple updates into one notification and use a different style
for single and multiple updates.

MozReview-Commit-ID: 6PXUEcJ280P

--HG--
extra : rebase_source : f77ec27fa11e13da9d4735353afad803a0b70a17
2016-02-25 12:22:57 -08:00
Sebastian Kaspari 889b13b457 Bug 1241810 - FeedSubscription: Treat ETag and "Last modified" header as optional. r=mcomella
Some services just do not return any of those headers.

MozReview-Commit-ID: 3LpvZqsHgzJ

--HG--
extra : rebase_source : 31902f4b72fc02fa0f7c018bce218a547f39f1ba
2016-02-25 12:21:08 -08:00
Sebastian Kaspari 7f2d050707 Bug 1241810 - Do not do anything if not connected to a network or network is metered. r=mcomella
MozReview-Commit-ID: LilXNpxQhyI

--HG--
extra : rebase_source : 52ebb9cc89be69f6da70d2e5c6962b40e7fd910d
2016-02-24 16:10:47 -08:00
Sebastian Kaspari 458b6979fc Bug 1241810 - Run setup on app start and when the device boots. r=mcomella
MozReview-Commit-ID: 4k5KqnjLg3L

--HG--
extra : rebase_source : 438e342a6e5e205e2ff004416f9a26d62d44288c
2016-02-24 15:34:24 -08:00
Sebastian Kaspari d917836437 Bug 1241810 - Add SetupAction for setting up various alarms to start FeedService. r=mcomella
MozReview-Commit-ID: GT6pLuUUEyY

--HG--
extra : rebase_source : 4c34fd761839f6e96a5fc28ff4099b1772787e5d
2016-02-24 15:29:01 -08:00
Sebastian Kaspari 4498a606f8 Bug 1241810 - Add WithdrawAction for removing subscriptions of bookmarks that do not exist anymore. r=mcomella
MozReview-Commit-ID: 9jFnIgLDgws

--HG--
extra : rebase_source : 14acad7e21c596438679ef3f5fad54b29d63fae9
2016-02-24 15:20:12 -08:00
Sebastian Kaspari 8ad808b071 Bug 1241810 - Add EnrollAction for finding bookmarks of known sites to subscribe to. r=mcomella
MozReview-Commit-ID: LS59SRlAjH0

--HG--
extra : rebase_source : 1049dd5c4bab0fdcab6c796f6d2c556c9520fbb9
2016-02-24 15:12:58 -08:00
Sebastian Kaspari 5c8f9083fa Bug 1241810 - Add configuration/whitelist for known sites we want to show notifications for. r=mcomella
We'll start with Blogger and Medium.

MozReview-Commit-ID: FKXcsdE6F8M

--HG--
extra : rebase_source : 43c2d2434e84df6b91105d3444dcffdbb4469c52
2016-02-24 14:55:40 -08:00
Mark Capella c330bfddc0 Bug 1243542 - Ensure consistent text selection handles everywhere, r=margaret 2016-03-24 06:41:49 -04:00
Sebastian Kaspari 22add1622c Bug 1253684 - Introduce preference for forwarding OMA downloads to Android's download manager. r=margaret
MozReview-Commit-ID: u9j3CGex2q

--HG--
extra : rebase_source : 3a93fbaacdd1108dc816daecc12da75236f55bc7
extra : amend_source : 76f1598b45527c09f6690fa4987ed8026530cdd5
2016-03-10 10:51:25 +01:00
Geoff Brown 02f98979d9 Bug 1118268 - Improve robocop menu item selection; r=margaret 2016-03-28 16:05:33 -06:00
Sebastian Hengst 5b3efc9d1b Bug 1264576 - Fix typo from bug 682294 which prevents fetching of the error title for file access denied. r=sebastian
MozReview-Commit-ID: Cps3q08vCMK
2016-04-14 11:26:41 +02:00
Carsten "Tomcat" Book 49aae827cb Merge mozilla-central to mozilla-inbound 2016-04-14 11:43:48 +02:00
Mike Hommey 341ebd8679 Bug 1259382 - Move CC/CXX/HOST_CC/HOST_CXX to moz.configure. r=ted
At the same time, we improve things slightly by deriving HOST_CC from CC
in a smarter way, as well as CXX from CC, which we weren't doing
previously.

Many related things are not moved at the same time to keep the patch
somehow "small".
2016-04-14 13:21:29 +09:00
Michael Comella de1b0b7cc4 Bug 1220309 - Correct all caps button text in Button from AppCompat. r=sebastian
AppCompat capitalizes all text in `Button`s so we have to override
that behavior to maintain the same UI. Ideally, we do this through
`android:buttonStyle` but the place I found the issue doesn't inherit
from that style so we can't and we change the style directly.

There may be issues with other `Button`s, but this is the only one I found.

MozReview-Commit-ID: JQoIlPa9oZD

--HG--
extra : rebase_source : debbb2076a5b339d25dc38c46ccf5e3ce07a0613
extra : source : f774157cf5f423be9a096ed5072b4440d68f4bd1
2015-12-15 11:26:33 -08:00
Gijs Kruitbosch a59db0da4f Bug 1236991 - part 2: implement a default tooltiptextprovider in toolkit, r=enndeakin
MozReview-Commit-ID: LqtibkGoDjQ

--HG--
rename : toolkit/content/widgets/popup.xml => toolkit/components/tooltiptext/TooltipTextProvider.js
extra : rebase_source : a5ee0b204ed501871d1f19cbee52a58d5af89c65
extra : histedit_source : 7247b93e1fa7ab1acc72182df7b890c888046e1e
2016-04-12 21:50:47 +01:00
Jim Chen dfd67cc6c8 Bug 1257934 - Make the GeckoPreferences pref handler a static class; r=sebastian
The pref handler class in GeckoPreferences doesn't need a reference back
to GeckoPreferences, so it's better to make it a static class rather
than a (non-static) anonymous inner class, in order to avoid leaking
the GeckoPreferences instance inadvertently.

To avoid confusion, the patch also renames the class to "PrefCallbacks",
because GeckoPreferences already has an unrelated interface named
"PrefHandler".
2016-03-22 22:26:19 -04:00
Jim Chen 126366bd4a Bug 1257319 - Remove BROADCAST GeckoEvent; r=me
Remove the now-obsolete BROADCAST GeckoEvent.
2016-03-22 22:24:32 -04:00
Jim Chen 684d4be80d Bug 1257319 - Convert broadcast event usage in HomeConfig.java; r=margaret
HomeConfig.java saved a list of events to be sent later in a batch. This
patch makes it save a pair of strings instead, and the strings are later
used to make calls to GeckoAppShell.

The patch also makes two small optimizations. It makes the queue an
ArrayList instead of a LinkedList to save memory. It also makes copying
the queue a swap instead of a true copy.
2016-03-22 22:24:31 -04:00
Jim Chen 08f23ae943 Bug 1257319 - Convert existing broadcast events to calls; r=margaret
Convert existing places where we use broadcast events to use
new GeckoAppShell calls.
2016-03-22 22:24:31 -04:00
Jim Chen 2025f2f89b Bug 1257319 - Add notifyObservers methods to GeckoAppShell; r=snorp
Add notifyObservers and the synchronous syncNotifyObservers methods to
GeckoAppShell to replace the BROADCAST event.
2016-03-22 22:24:31 -04:00
Mike Hommey 521861c0e2 Bug 1258618 - Use True instead of '1' for set_config. r=nalexander 2016-03-23 09:24:50 +09:00
Mike Hommey c5fa99076d Fixup for bug 1256995 after bug 1258615 landed. r=me 2016-03-23 09:24:46 +09:00
Nick Alexander 7a603c196f Bug 1258760 - Update Gradle and Maven repository archives in tooltool. r=gps
On a CLOSED TREE -- Android and automation only.

MozReview-Commit-ID: AU8bt4CDC1V

--HG--
extra : amend_source : ff83d4b0513102abf095949a79bf7f7616bbfa14
extra : histedit_source : 576ce07d4f7d2ea9d1ae1997736cfe59d751be6d
2016-03-22 10:17:26 -07:00
Nick Alexander 4085a8469b Bug 1258760 - Include Robocop support files when building --with-gradle. r=gps
The initial --with-gradle support disabled building the Android test
directories; everything was built from
mobile/android/app/build.gradle.  That doesn't declare support files
that need to be packaged for Robocop tests.  This patch stops building
instrumentation test APKs, which aren't used in automation under any
circumstance and which aren't packaged when building with Gradle; and
avoids building the Robocop APK by tweaking the Makefile.  That gets
support files in place while not using moz.build in place of Gradle.

I would have declared the support files elsewhere, but there are path
requirements that I couldn't make work, so in robocop/ they stay.

MozReview-Commit-ID: KCpXvqzYBsY

--HG--
extra : rebase_source : b99be8fada7787ee473f68265824cca2250c70a1
extra : histedit_source : fa19d3ede51e14707f400ab8527d44f5bf550f85
2016-03-15 16:02:01 -07:00
Nick Alexander 40132bc444 Bug 1256995 - Move --with-gradle to mobile/android/moz.configure. r=glandium
This also adds a GRADLE_FLAGS environment variable for use in
automation.

Manually tested.

MozReview-Commit-ID: 8nDkqz2VnJn

--HG--
extra : rebase_source : 32626a7dc0c0a6a440e300d92c31670f14319325
extra : amend_source : fe134e25f079851b4c648b53a7a485ee20c15c18
2016-03-17 11:04:08 -07:00
Nick Alexander 164643fa61 Bug 1256615 - Partially restore removed <activity-alias>. r=sebastian
Bug 1242213 removed the entire <activity-alias>.  Sadly, users who
added the Firefox icon to their dock (for example, Samsung's Touchwiz
dock) will see the icon disappear when they upgrade, because the
intent filter disappears.  (That is, the icon is connected to .App and
action MAIN, not to the package and action MAIN.)

This patch restores the .App <activity-alias> for action MAIN.  It
doesn't add the launcher and other categories, which could lead to
multiple launcher icons.  New users that add the Firefox icon to their
dock will use .BrowserApp, but sadly we'll need to maintain this alias
essentially forever to support existing dock icons.

MozReview-Commit-ID: 1o9XS5MEs1s

--HG--
extra : rebase_source : 8f4e1321da475bf2dcfca88c5807bf26c940b1c5
extra : amend_source : 3429ff0eaec0edb02e5e47678252bf5a2de74d3f
2016-03-21 13:42:08 -07:00
Mark Capella ba6c9b3a1e Bug 1252465 - Link taps don't work at the bottom of reader view page, r=margaret 2016-03-22 10:50:04 -04:00
Shatur 834de0fe4e Bug 1213147 - Use Roboto Light for title in Share Overlay dialog on API 16+. r=sebastian
MozReview-Commit-ID: 8X8Rv1GCPk2

--HG--
extra : amend_source : a7b614717ad08b8468eec0cc84c9b2bc2679e67d
2016-03-15 22:01:15 +05:30
Carsten "Tomcat" Book 5d83e31d04 merge mozilla-inbound to mozilla-central a=merge 2016-03-22 12:14:15 +01:00
Maurya Talisetti 34690e6c7f Bug 1241857 - Add calls to super implementation to address lint warnings. r=mcomella 2016-03-14 01:25:00 -04:00
Nick Alexander e90bd4aabb Bug 1256401 - Part 2: Remove references to b2gdroid. r=fabrice
MozReview-Commit-ID: 63yJGdgPbhe

--HG--
extra : rebase_source : 2256e0a12588703a83f4cba06971231ac3c64592
extra : amend_source : 1f35a04191f37225986bd7ff4d0b6b2c34a71b05
extra : histedit_source : 82d351700936c8e1297eeca91ce00f96340e2f2c
2016-03-18 14:41:51 -07:00
Nick Alexander a06e89f5a6 Bug 1256401 - Part 1: Remove mobile/android/b2gdroid. r=fabrice
MozReview-Commit-ID: AUnqHFr017n

--HG--
extra : rebase_source : 739270c96d0d288280260ffff591f096ba2a14ff
extra : histedit_source : 31ba47a9d58175af61e473b1ec7e8abefe8b3cd8
2016-03-18 14:20:24 -07:00
Narek Babajanyan d10220e17f Bug 1257901 - Remove references to Old Sync. r=nalexander
MozReview-Commit-ID: 9WGu7NzmIOa

--HG--
extra : rebase_source : e6fd5329292e72797df2d23ed2189b15ba4ef039
2016-03-21 12:54:27 -07:00