Commit Graph

20280 Commits

Author SHA1 Message Date
Grigory Kruglov
d83efeb11a Bug 1233250: Pre - allow specifying snackbar's backgroundColor via Snackbars.jsm r=sebastian
MozReview-Commit-ID: FQqUKE6sLHS

--HG--
extra : rebase_source : 10e8826a07c48081a0e4ea67a17d00114e24844c
2016-05-10 17:35:08 -07:00
Andrzej Hunt
3bf0a9dfae Bug 1269774 - Reduce browser menu top padding r=sebastian
We want to have equal paddings for the top and right hand side of the
menu, whereas we previously had 24dp padding for the top, and only 8dp
on the right.

Note: the padding is defined in the 9-patch files, this commit simply
removes empty vertical space from the top of the menu background images.

MozReview-Commit-ID: Db0hXsPOVpp
2016-05-10 20:25:14 -07:00
Andrzej Hunt
e4b140e694 Bug 1269774 - Show browser menu over the menu button r=sebastian
Note: this commit alone results in the menu looking slightly odd
due to different top and right paddings. These are fixed in the
next commit.

MozReview-Commit-ID: AWzYU067K0W
2016-05-10 20:25:12 -07:00
Andrzej Hunt
55d7bfc179 Bug 1269774 - Remove dividers from browser menu r=sebastian
This removes dividers from the main menu, and also the tab-tray menu.

MozReview-Commit-ID: CztHJcrEHpK
2016-05-10 20:25:10 -07:00
Andrzej Hunt
7bd1fdb79a Bug 1269774 - Fix padding for context menu icons r=sebastian
The icons in the first row require more padding. In the second
row the share icons should have more padding, but only on phones,
and all other icons should remain the same size. (On tablets
the share icon can be shown beside the bookmark star, hence
we use an inset drawable to add padding on phones, and then
provide an alternative 0-inset on tablets to avoid any changes
there.)

MozReview-Commit-ID: 54NzYtUpzuV


--HG--
rename : mobile/android/base/resources/drawable-hdpi/ic_menu_share.png => mobile/android/base/resources/drawable-hdpi/ic_menu_share_icon.png
rename : mobile/android/base/resources/drawable-xhdpi/ic_menu_share.png => mobile/android/base/resources/drawable-xhdpi/ic_menu_share_icon.png
rename : mobile/android/base/resources/drawable-xxhdpi/ic_menu_share.png => mobile/android/base/resources/drawable-xxhdpi/ic_menu_share_icon.png
2016-05-10 20:25:02 -07:00
Andrzej Hunt
e2fd29e204 Bug 1269774 - Fix bookmark star artifacts r=sebastian
These images were incorrectly saved, leading to the loss of the smooth
edges they should have. This commit replaces the edited bookmark stars
with higher quality versions.

MozReview-Commit-ID: 1Z8FfWrvl8H
2016-05-10 20:04:00 -07:00
Matthew Wein
29d46dc602 Bug 1267124 - Implement chrome.pageAction.show on Android. r=kmag, r=margaret
MozReview-Commit-ID: AOwfuuCfhRx

--HG--
rename : browser/components/extensions/extension.svg => mobile/android/components/extensions/extension.svg
rename : browser/components/extensions/schemas/page_action.json => mobile/android/components/extensions/schemas/page_action.json
extra : transplant_source : %13%D1%E2%3Ax3%12%C9%81%E9%1Ct%3E3T%9Br%E0%DBP
2016-04-27 19:06:24 -04:00
Randall Barker
c63841d754 Bug 1229462 - Use Android OverScroller class for fling animation r=botond 2016-05-11 08:37:47 -07:00
Wes Kocher
26012d19b7 Backed out 4 changesets (bug 1266235) for test_ev_certs.js failures on pretty much every platform CLOSED TREE
Backed out changeset f684fac95bd9 (bug 1266235)
Backed out changeset f560cba61749 (bug 1266235)
Backed out changeset 5f321f10da1e (bug 1266235)
Backed out changeset 93deaa5641bc (bug 1266235)

--HG--
rename : services/common/blocklist-clients.js => services/common/KintoBlocklist.js
rename : services/common/blocklist-updater.js => services/common/kinto-updater.js
rename : services/common/tests/unit/test_blocklist_clients.js => services/common/tests/unit/test_kintoAddonPluginBlocklist.js
rename : services/common/tests/unit/test_blocklist_certificates.js => services/common/tests/unit/test_kintoCertBlocklist.js
rename : services/common/tests/unit/test_blocklist_updater.js => services/common/tests/unit/test_kinto_updater.js
2016-05-10 13:46:28 -07:00
Mathieu Leplatre
031d6fbdbb Bug 1266235 - Move blocklist preferences to all.js. r=MattN
Related:

* https://bugzilla.mozilla.org/show_bug.cgi?id=1248557
* https://bugzilla.mozilla.org/show_bug.cgi?id=1259947

MozReview-Commit-ID: H2Eh1oqXeS1

--HG--
extra : transplant_source : %A0%96%22%DB%F3%19%8A%CF%A9%3B%FB%11%27%FB%E7%7B%BCzH%9F
2016-04-29 13:17:09 +02:00
Mathieu Leplatre
34370ce5a8 Bug 1266235 - Use blocklist prefix in preference names. r=Mattn
MozReview-Commit-ID: 5aeoiSEMwYw

--HG--
extra : amend_source : bb232bb34c7a25abffac36531d5ab4d8e9c6c7af
extra : transplant_source : K%1A1d%EEc%8FY%030NRb%AFD%00.%40U8
2016-04-29 12:48:45 +02:00
Carsten "Tomcat" Book
e07e80ac43 merge mozilla-inbound to mozilla-central a=merge 2016-05-10 12:05:56 +02:00
Michael Comella
9309f07f19 Bug 1271175 - Backed out changeset 537e8f7a4950 (bug 1258450) for crashes.
MozReview-Commit-ID: HL5glRsq6r9

--HG--
extra : rebase_source : 11b9a9706f1ce85e07a170786b85f630c79931a1
2016-05-09 16:01:03 -07:00
Jim Chen
eb7204d3b6 Bug 1269682 - Always detect guest mode first; r=margaret
Always check for guest mode even if we don't have arguments, because
we can still be in guest mode even if we don't have arguments.
2016-05-09 22:31:18 -04:00
Jim Chen
a66b611509 Bug 1269682 - Don't try to switch to guest profile; r=margaret
BrowserApp has a snippet that tries to restart in guest profile if we're
supposed to be in it, but are currently not. This is vestigial code from
lock screen widget support, and should not be needed anymore.
2016-05-09 22:31:18 -04:00
Jim Chen
af5e39288f Bug 1269682 - Guard against onPause being called without onResume; r=ahunt
When we try to restart Fennec immediately after launching Fennec, it's
possible for onPause to be called without a corresponding onResume being
called first. This patch guards against registering events twice due to
this quirk.
2016-05-09 22:31:18 -04:00
Eugen Sawin
5b93d93294 Bug 1268471 - [2.1] Remove doorhanger bug workround. r=esawin 2016-05-09 22:59:18 +02:00
Eugen Sawin
cc7d011af2 Bug 1268471 - [1.1] Restore doorhanger title after removal. r=liuche 2016-05-09 22:59:17 +02:00
Jorick Caberio
d2fafdf8d7 Bug 1264480 - Moved Distribution.ReadyCallback @WorkerThread annotation to the individual methods. r=mcomella
MozReview-Commit-ID: 9lG2SPyPyP9

--HG--
extra : rebase_source : 20993d9db129261fad804f4d417db9fb44169cb7
2016-04-14 18:13:52 +08:00
Andrzej Hunt
17a2b79f2f Bug 1060544 - Post: add comment explaining how our about:home restoration is incorrect r=liuche
MozReview-Commit-ID: 30Q2KEPFyKL

--HG--
extra : rebase_source : 5a23be37119b4c5247a31618302eea63a34e6923
2016-04-29 16:02:49 +02:00
Andrzej Hunt
361278d3d6 Bug 1060544 - Part 2: persist Bookmarks panel folder r=liuche
This allows us to restore the previously opened bookmarks folder when returning to
the bookmarks panel. I.e. when you open a bookmarks folder (including the smartfolders),
select a bookmark, and then return (via the back button, or quick-history via long-pressing
the back button), we will return to the bookmarks folder that was opened.

We don't persist the scroll position, that's a separate issue, in Bug 993552.

MozReview-Commit-ID: 3EhIvlXOgAU

--HG--
extra : rebase_source : 17e903622d20a922d46c1319191b051cf592a4c0
2016-05-09 09:47:46 -07:00
Andrzej Hunt
a3be820a38 Bug 1060544 - Part 1: allow persisting/restoring home panel state r=liuche
All home panel state is currently discarded when you navigate to another page.
We want to be able to restore state (e.g. to return to the currently opened bookmarks folder,
instead of returning to the root of the bookmarks folder). This commit adds storage and a framework
to allow homepanels to persist data.

MozReview-Commit-ID: GWDX7UZrIZs

--HG--
extra : rebase_source : d0959196e14496b7970ad14df39937c67013624f
2016-05-09 09:12:28 -07:00
Michael Comella
fdc4c5d445 Bug 1253338 - Increment core ping version number. r=ahunt
MozReview-Commit-ID: 4sKaJKagdPd

--HG--
extra : rebase_source : c6a7fc79b3faee3decf5f9f7041ca856ac640ddb
2016-05-06 15:28:17 -07:00
Michael Comella
10aa8212ff Bug 1253338 - Add creation date to core ping. r=ahunt
MozReview-Commit-ID: 69IGlq2Nohd

--HG--
extra : rebase_source : f8902386200f4c820e334fe16b5d3da45f8b7481
2016-05-05 11:43:26 -07:00
Michael Comella
932d3f86b6 Bug 1253338 - Add DateUtil.getTimezoneOffsetInMinutes*. r=ahunt
I initially wrote the "ForGivenDate" variant for testing purposes - so I could
verify the daylight savings time APIs worked the way I expected them to.
However, I ended up using it in my next patch and leaving in the generic "for
current time" variant because it seems useful.

MozReview-Commit-ID: 4hNGD4uDuOj

--HG--
extra : rebase_source : 56cd92c7ef95aa5ca54daa27d93f56a053f7b4df
2016-05-09 11:41:02 -07:00
Michael Comella
3db65a2f2d Bug 1268525 - review: Add test for non GMT time zone. r=me
MozReview-Commit-ID: 1VaPm3ywjZQ

--HG--
extra : rebase_source : 5990a97cfd517352604d2d7a45565f8e14048e6b
2016-05-09 11:20:08 -07:00
Michael Comella
d5cd4d33f2 Bug 1268525 - Add ping submission date to HTTP header. r=sebastian
The format we chose comes from Desktop - bug 1144778.

MozReview-Commit-ID: 9eXb78d70pM

--HG--
extra : rebase_source : 937e121be41bb587764029d8abcc72bd183e7328
2016-05-04 15:06:32 -07:00
Krishna
e9e6a3972d Bug 1209496 - DownloadContentService: Add proxy support. r=sebastian
MozReview-Commit-ID: 8FZpWG9cTVA

--HG--
extra : rebase_source : 2c28b3e8f65c442becee9e46ffcc01f7ada43db7
2016-05-09 19:26:57 +02:00
Andrzej Hunt
821ec6b348 Bug 1270348 - Favicon decoder can return null Bitmaps r=sebastian
MozReview-Commit-ID: LHcx3Ne5nLX

--HG--
extra : rebase_source : 3983b3dda75ae1c53bd97611adb6d48f1c62a0af
extra : amend_source : 00af0aac9f5679de478ad1df4a3f80b4e14ba896
2016-05-05 12:24:41 -07:00
Grigory Kruglov
c3628c3ef1 Bug 1270697: Set LOAD_FROM_CACHE flag when useCache==true, and unset it when useCache==false r=sebastian
MozReview-Commit-ID: Io7AchaTgnb

--HG--
extra : rebase_source : e6b7a93c90c7ba522e6ca4cf5f0e32028f46c82f
2016-05-06 16:11:32 -07:00
Grigory Kruglov
c37f23da81 Bug 1271020: Add a null check before acting upon applicationContext r=sebastian
Pre-rewrite code had a similar check

MozReview-Commit-ID: FGqPCOabkqH

--HG--
extra : rebase_source : b1203f0f16a5a394891debfd5a94dea28868b3d3
2016-05-06 18:35:54 -07:00
Margaret Leibovic
0ae18f321a Bug 1270929 - (Part 2) Create Experiments.setOverride/clearOverride API to allow add-ons to force enable/disable experiments. r=sebastian
MozReview-Commit-ID: 1tCstZwVl9T

--HG--
extra : rebase_source : aac57726bb28454c50b3de2830ba5f8bbc8794fb
extra : histedit_source : b2b287e9fb2254e33fc407db180fd88f13b069c6
2016-05-07 16:44:00 -04:00
Margaret Leibovic
3b0c907df9 Bug 1270929 - (Part 1) Remove support for specifying UUID from intent extra. r=sebastian
MozReview-Commit-ID: XUUkxD7261

--HG--
extra : rebase_source : 8bef3a78401c7ac582c74a7f8f384c94dda52f51
extra : histedit_source : 7fa91428ed1785d3e183e2aef862f865b3074755
2016-05-07 12:54:14 -04:00
Sebastian Kaspari
289587615d Bug 1268455 - Restore <activity-alias> to avoid disappearing home screen shortcuts. r=margaret
This patch restores our previous <activity-alias> with all intent filters. Changing the alias
will cause that existing home screen shortcuts disappear.

I tested this patch with:
* Upgrading old state (2016-02-06) to current state: Icon disappears (expected)
* Upgrading old state to fixed state (this patch): Icon remains

As this patch changes the activity-alias again, releasing this patch will lead to the home
screen shortcut disappearing once more for all released version with the current state:
* Upgrading current state to fixed state: Icon disappears (expected)

MozReview-Commit-ID: 1crKmkp4G1L

--HG--
extra : rebase_source : d6e84902fd8f763676ed315d8da9f9da96eb5c8c
extra : histedit_source : 6e715c605f43a463cc04f069d62f9d4ca17587f4
2016-05-03 11:16:20 +02:00
Carsten "Tomcat" Book
40c39189ef Merge mozilla-central to fx-team 2016-05-09 11:20:26 +02:00
Carsten "Tomcat" Book
56fe0e8f2c merge mozilla-inbound to mozilla-central a=merge 2016-05-09 11:17:59 +02:00
Sebastian Kaspari
ad30ee9e1c Bug 1269832 - Only show base domain for http/https URLs. r=margaret,kats
MozReview-Commit-ID: Dzk6vN2cyVb
2016-05-04 13:30:48 +02:00
Jan Henning
e3e61e5c24 Bug 1268981 - Make sure the bfcache is enabled during the mobile session store form data test. r=margaret
Without the bfcache, the inner value will not be restored after a page navigation, therefore we need to make sure that the bfcache isn't disabled by a stray memory pressure event before or during the test.

MozReview-Commit-ID: 3k1EgGDEPb

--HG--
extra : transplant_source : %E7%C9%BCD%E3%A4P%7F%A8%04%F4%CE%96bw%D6PU%97%01
2016-04-30 16:46:57 +02:00
Mark Finkle
f6cdeb3863 Bug 1267320 - Multiple spellings for telemetry extras. r=liuche 2016-05-07 14:34:45 -04:00
Tristan Martin
db5ec732b8 Bug 974466 - removing unhelpful argument when constructing Prompt in SelectHelper. r=Margaret 2016-05-05 23:34:00 +02:00
Mark Capella
181aea9aa0 Bug 1266322 - Fennec doesn't allow user cut/paste in etherpad, r=TYLin 2016-05-07 14:33:48 -04:00
Margaret Leibovic
9cf32c5c82 Bug 1266163 - Replace FENNEC_READER_VIEW_BUTTON histogram with UI telemetry. r=mfinkle,barbara
MozReview-Commit-ID: 1guxvXp6loC

--HG--
extra : rebase_source : a474fb10ef8e197313debb970640f1243b2dfca1
2016-04-20 15:22:46 -04:00
Wes Kocher
e07d6df737 Merge m-c to fx-team, a=merge 2016-05-06 15:59:00 -07:00
Wes Kocher
b17d7be7c1 Merge fx-team to central, a=merge 2016-05-06 15:57:08 -07:00
Andrzej Hunt
9d953b6fc8 Bug 1269001 - Temporarily add string resources to UnusedResourcesUtil to satisfy lint r=me
MozReview-Commit-ID: CE7RTiG2SOz

--HG--
extra : histedit_source : fc0095cd332c926c6dc0f23559652eaf90186784
2016-05-06 14:59:23 -07:00
Andrzej Hunt
2b23dea0f6 Bug 1251340 - Add probes for entering / exiting bookmark folders r=margaret
MozReview-Commit-ID: 202wvJHy6Qn

--HG--
extra : rebase_source : eb1850f5436380eca1a7774b645482b87c2ab461
extra : histedit_source : d8d1d0d23441f95294f2497cb3675ab72213920a%2Ca78e367465a572245bb667e4070abdafc843559b
2016-05-06 14:57:54 -07:00
Michael Comella
90e0c81bd3 Bug 1270963 - Fix NPE in UploadTelemetryCorePingCallback. r=ahunt
MozReview-Commit-ID: HgdZvuuiGDT

--HG--
extra : rebase_source : 3d0600df737e58d15f32b721613c952bd064db41
2016-05-06 14:17:24 -07:00
Chenxia Liu
698e613289 Bug 1270958 - Include string for "1 device" instead of "1 devices" for Synced devices. r=ahunt
MozReview-Commit-ID: 6zkDuGlBsmz

--HG--
extra : rebase_source : c877c51c59322489eca4a807597973b58431b53e
2016-05-06 14:06:01 -07:00
Andrzej Hunt
a816e8565e Bug 1269001 - Pre: Add strings for number of items in folder r=liuche
MozReview-Commit-ID: EvfSPPkUf2G

--HG--
extra : amend_source : 9215d76ce3ecbc438b91f47844ec644387b26cfa
2016-05-06 13:34:09 -07:00
Jan Henning
2bd21731f2 Bug 1268177 - Disable background tab zombifications during tests. r=margaret
During tests that open additional tabs, the main test tab controlling the test is at risk of being zombified if a memory pressure event arrives, which breaks the test and leads to the test timing out. Therefore, we now disable background tab zombifications during tests.

This means that there's a slightly increased risk of being OOM killed instead, however
- the tabs opened by the tests themselves are normally relatively short-lived anyway
- we're no worse off than if the tab containing the test harness code had been zombified.

MozReview-Commit-ID: 1Ntvn4yjWlZ

--HG--
extra : transplant_source : %E78%93%3B%0F%5DnX%BC%E6G%10%B2%B5%1B%3A%9F%CE%F9%DD
2016-04-29 21:19:43 +02:00
Carsten "Tomcat" Book
9b6572bf54 merge mozilla-inbound to mozilla-central a=merge 2016-05-06 14:18:17 +02:00
Grigory Kruglov
3880c530d4 Bug 1236130 - Part 2: Only use cache for tabs when network state is "down" r=mcomella
MozReview-Commit-ID: IC3lmO8cUBa

--HG--
extra : rebase_source : 8641b2f8ba19cb6fce048f070fee6b8ab18d29ef
2016-04-28 15:27:35 -07:00
Grigory Kruglov
a3629c5385 Bug 1236130 - Part 1: Use an explicit state machine to control GeckoNetworkManager r=mcomella
- specifying states, events and transition side-effects explicitely makes this code easier to read/maintain
- move bunch of network state helper methods into NetworkUtils
- ensure to update both network state (up/down/unknown), as well as connection type/subtype every time we need to update network state
-- this should fix the buggy behaviour when we'd miss certain network state transitions
- tests for the FSM transition matrix, and everything in the NetworkUtils

MozReview-Commit-ID: LvrfHyFdkpB

--HG--
extra : rebase_source : 4429d80f78435205915f27e738e4886f1c46d3fa
2016-05-05 01:27:35 -07:00
Jan Henning
12c6e2269e Bug 1267481 - Increase test_session_form_data.html timeout. r=gbrown
Opening/navigating within/restoring a tab seems to be relatively slow on the emulator and as we want to test whether form data is preserved by the session store after closing and restoring a tab, quite a bit of time is accumulated that way.

MozReview-Commit-ID: 3LhLuZIZ2z7

--HG--
extra : transplant_source : %C7%22%90%DFy%97%BCD%B3%17%FE%F0%09%7FQ6V%D4%0E%1B
2016-04-30 18:44:50 +02:00
Ryan VanderMeulen
27ec66e090 Merge m-c to fx-team. a=merge
--HG--
extra : rebase_source : 5fa479be50a4739ccd9f42a799594afa8fcc4f28
2016-05-05 14:58:24 -04:00
Ryan VanderMeulen
70ba843b03 Merge m-c to inbound. a=merge
CLOSED TREE
2016-05-05 10:06:54 -04:00
Andrzej Hunt
ec6acaceee Bug 1270198 - Remove unused Reader:FetchContent and associated logic r=margaret
MozReview-Commit-ID: FcXN3x5hRhE

--HG--
extra : rebase_source : 4dad1a00c7819dba14925abd8adb16b557c16eea
2016-05-04 10:47:43 -07:00
Andrzej Hunt
c4980649af Bug 1269481 - Update suggestClient if suggestTemplate changes r=mkaply
MozReview-Commit-ID: LmsgSFda6Nv

--HG--
extra : rebase_source : e88c994bfd1b50ee87768442d83143b9dad6265f
extra : amend_source : 779d34d711a43b73a6f8a0a1cbe03726b7052058
2016-05-04 11:25:59 -07:00
Tristan Martin
103d74545e Bug 1263589 - SelectHelper._isDisabledElement now uses " === false" to test disabled attribute. r=margaret
--HG--
rename : mobile/android/tests/browser/chrome/test_hidden_select_option.html => mobile/android/tests/browser/chrome/test_select_disabled.html
2016-04-28 04:54:00 -04:00
Jan Henning
9a3a2c4c60 Bug 1270011 - Check normalData.windows[0] exists before accessing tab count. r=margaret
There is no window in the normalData when clearing browsing history on quit with tab restore set to "never restore", which breaks the assumption made in the logging function. It also means that in that case, the current session will show up as "Tabs from last time" on next startup despite wanting to clear the history on exit.

MozReview-Commit-ID: Ft4jdomopFL

--HG--
extra : transplant_source : %A5as%14%06%1F%BD%B7c%28%3Bb%A6%A7%19U%2C%1C%2CA
2016-05-01 22:11:17 +02:00
Wes Kocher
419e80ad06 Merge m-c to inbound, a=merge 2016-05-06 15:58:32 -07:00
Chenxia Liu
7c7423a780 Bug 1269914 - Add probe for reaching end of History list. r=margaret
MozReview-Commit-ID: E7eXsF8Voc9

--HG--
extra : rebase_source : aee5c00b342a5caa3125216f66f2925612d792b2
2016-05-03 17:23:58 -07:00
Eitan Isaacson
700d8864c8 Bug 1019425 - Activate accessibility when both accessibilty and explore by touch are enabled. r=mfinkle
This simplifies some old code. We get rid of a whitelist of services, and rely on the face that accessibility and explore by touch is enabled to enter our internal accessibility mode.

The whitelist methode held 2 assumptions that are not true anymore:

1. There are some non-accessibility accessibility service apps in the wild that read notifications.
In later Android versions this has been made into a non-a11y use case with NotificationListenerService. So the cases of non-a11y accessibility services has shrunk.

2. Not all screen readers (Gingerbread TalkBack, for example) supported explore by touch. Today, we
exclusively support accessibility services that use explore by touch, and we should not activate our
accessibility mode in any other case.

MozReview-Commit-ID: LMeCedoIGbb
2016-05-06 09:35:36 -07:00
Chenxia Liu
fbbc45529d Bug 1269909 - Add telemetry probe for clicking "Set up Sync" from History empty state. r=mfinkle
MozReview-Commit-ID: A24qXyNpWwk

--HG--
extra : rebase_source : a210c0298a5e404ad0e8353d1bfbf41e883bb8f4
2016-05-03 16:19:49 -07:00
Andrzej Hunt
d4c9f99c6b Bug 1265004 - Try to save in-memory reader view article instead of downloading r=margaret
This should guarantee that any reader view page will also be successfully saved offline.

MozReview-Commit-ID: 4J8cY6hYeyU

--HG--
extra : rebase_source : 689a2db7a7d81dbe89e5e58c170afe473563b2f6
2016-05-02 15:47:46 -07:00
Chenxia Liu
e6d9dc2dd7 Bug 1270197 - Crash when long-pressing History section header. r=sebastian
MozReview-Commit-ID: Fkna2jgTevD

--HG--
extra : rebase_source : da387e03ca9c33270eabeba72bfbf66741c974f9
2016-05-04 10:23:37 -07:00
Andrzej Hunt
1b537cbd9e Bug 1269406 - Upgrade delegates needing BrowserApp references to use BrowserAppDelegateWithReference r=sebastian
MozReview-Commit-ID: CV4uA2N8q8e

--HG--
extra : rebase_source : 0f1f7860812b97d11ab864a0b214fc1150e9b35e
extra : histedit_source : a60ef14bd29a821d9003fd7017bb343cd5ddd7dc
2016-05-02 11:08:16 -07:00
Andrzej Hunt
fed70a8d15 Bug 1269406 - Implement BrowserAppDelegateWithReference r=sebastian
MozReview-Commit-ID: Jk5Wl8h6qka

--HG--
extra : rebase_source : b93966130d9c027d1157e2cc6673f2af80712add
extra : histedit_source : e3e0c07c5ea54d3c19ea9b1e5cd2f809d92b1cfb
2016-05-04 08:40:45 -07:00
Andrzej Hunt
5922d43a30 Bug 1269406 - Pre: move BrowserAppDelegates into their own package r=sebastian
Note: some delegates might live in other packages, e.g. our HelperUI
related promotions (HomeScreenPromotion, ReaderViewBookmarkPromotion)
live in org.mozilla.gecko.promotions.

BookmarkStateChangeDelegate previously lived in promotions, however
it isn't really a promotion (we're just showing snackbars, and showing
one helper UI to explain offline reader view bookmarks _after_ such
a bookmark has been created), hence it seems a better fit for delegates.

MozReview-Commit-ID: 6fQD3FWzqnm

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/promotion/BookmarkStateChangeDelegate.java => mobile/android/base/java/org/mozilla/gecko/delegates/BookmarkStateChangeDelegate.java
rename : mobile/android/base/java/org/mozilla/gecko/BrowserAppDelegate.java => mobile/android/base/java/org/mozilla/gecko/delegates/BrowserAppDelegate.java
rename : mobile/android/base/java/org/mozilla/gecko/ScreenshotDelegate.java => mobile/android/base/java/org/mozilla/gecko/delegates/ScreenshotDelegate.java
extra : rebase_source : 1c0286e6074233bdd2e32fd7309e7eddf01cfb13
extra : histedit_source : 1ade7d494a373895629e0fa7cf786510524f08d0
2016-05-04 08:33:32 -07:00
Andrzej Hunt
2e2b6251ef Bug 1269406 - Pre: remove unnecessary imports r=me
MozReview-Commit-ID: DREY4UqM48H

--HG--
extra : histedit_source : c7c4ea5aed0cc8c91e84049f9035fdfe0ee1ecc3
2016-05-04 08:32:47 -07:00
Carsten "Tomcat" Book
ad9214381b merge mozilla-inbound to mozilla-central a=merge 2016-05-04 11:54:42 +02:00
Phil Ringnalda
c03beb4292 Back out cdec576dad5e (bug 1019425) for massive Android test failure
CLOSED TREE
2016-05-03 19:05:17 -07:00
Chenxia Liu
96c4efc128 Bug 1269661 - Checkstyle violations in history panel code. r=mcomella
MozReview-Commit-ID: CHuVsqhDuUw

--HG--
extra : rebase_source : 864016a3a0e63f8b80f2653d7325d93d0102fe2a
2016-05-03 12:55:38 -07:00
Michael Comella
8e50768a95 Bug 1243585 - review: Address comments. r=me
MozReview-Commit-ID: FrPLa7U57B7

--HG--
extra : rebase_source : 658c3a739a679a17e47822284bd55dfc40cd9e75
2016-05-03 16:37:42 -07:00
Eitan Isaacson
d669b36504 Bug 1019425 - Activate accessibility when both accessibilty and explore by touch are enabled. r=mfinkle
This simplifies some old code. We get rid of a whitelist of services, and rely on the face that accessibility and explore by touch is enabled to enter our internal accessibility mode.

The whitelist methode held 2 assumptions that are not true anymore:

1. There are some non-accessibility accessibility service apps in the wild that read notifications.
In later Android versions this has been made into a non-a11y use case with NotificationListenerService. So the cases of non-a11y accessibility services has shrunk.

2. Not all screen readers (Gingerbread TalkBack, for example) supported explore by touch. Today, we
exclusively support accessibility services that use explore by touch, and we should not activate our
accessibility mode in any other case.

MozReview-Commit-ID: LMeCedoIGbb

--HG--
extra : rebase_source : 69dd7ab6868fd09b0b6529efacd215157305b1c9
2016-05-02 14:02:16 -07:00
Michael Comella
88ce3a891a Bug 1243585 - Move ping builders -> pingbuilders/. r=sebastian
This overwrites a commit I did at the beginning, but fixing the version control
would have been a waste of time.

MozReview-Commit-ID: Ry9WRpTf8s

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/telemetry/core/TelemetryCorePingBuilder.java => mobile/android/base/java/org/mozilla/gecko/telemetry/pingbuilders/TelemetryCorePingBuilder.java
rename : mobile/android/base/java/org/mozilla/gecko/telemetry/TelemetryPingBuilder.java => mobile/android/base/java/org/mozilla/gecko/telemetry/pingbuilders/TelemetryPingBuilder.java
rename : mobile/android/tests/background/junit4/src/org/mozilla/gecko/telemetry/TestTelemetryPingBuilder.java => mobile/android/tests/background/junit4/src/org/mozilla/gecko/telemetry/pingbuilders/TestTelemetryPingBuilder.java
extra : rebase_source : 55ff9e25b8ba49ba29a3111b92b77a16a4ffc788
2016-04-29 15:31:56 -07:00
Michael Comella
5d14a65678 Bug 1243585 - Stop IntentService if there is a connection failure. r=sebastian
I would have folded this but I screwed up but the version control is getting
messy.

MozReview-Commit-ID: 3LaYkrao4dD

--HG--
extra : rebase_source : 2fe2f6ced974b6fe55ecaed0c34caef58ed8c11a
2016-04-29 15:18:07 -07:00
Michael Comella
fb5dd484ed Bug 1243585 - Add short-circuits when there are no pings. r=sebastian
Ideally, we'd just not run the service but skimming, I see no clean way to do
that with the existing code.

MozReview-Commit-ID: HRU1PAmYoil

--HG--
extra : rebase_source : 63074ae8dcd2613ff90d3f431fe2e58f51364e03
2016-04-29 15:21:10 -07:00
Michael Comella
e90e46946b Bug 1243585 - Rename JSONFilePingStore -> TelemetryJSONFilePingStore. r=sebastian
I would have done this sooner but it's a version control nightmare.

I made the change because it's harder to grep for logs when the logtag doesn't
include "Telemetry".

MozReview-Commit-ID: GD8Cb8D5CRy

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/telemetry/stores/JSONFilePingStore.java => mobile/android/base/java/org/mozilla/gecko/telemetry/stores/TelemetryJSONFilePingStore.java
rename : mobile/android/tests/background/junit4/src/org/mozilla/gecko/telemetry/stores/TestJSONFilePingStore.java => mobile/android/tests/background/junit4/src/org/mozilla/gecko/telemetry/stores/TestTelemetryJSONFilePingStore.java
extra : rebase_source : 754912d199c84ab166b58a3ddd7c4f0e8d80bde3
2016-04-28 17:10:19 -07:00
Michael Comella
cb50c8be44 Bug 1243585 - Get server url from prefs at upload time. r=sebastian
There is less to store on disk and it's probably more correct.

MozReview-Commit-ID: KAJAE1M7Fzv

--HG--
extra : rebase_source : ef226ea7b7d0ce03e216eb640dff30245551cc55
2016-04-28 16:23:18 -07:00
Michael Comella
beda502b71 Bug 1243585 - Create CorePingBuilder in BrowserApp. r=sebastian
Note: this is the first commit expected to compile.

MozReview-Commit-ID: Fc8uRkJAXgB

--HG--
extra : rebase_source : c34096f6123fa898b3b3553b2914122f4ff92143
2016-04-28 16:01:15 -07:00
Michael Comella
c2e588090f Bug 1243585 - Add methods to CorePingBuilder to generate a builder. r=sebastian
Thoughts:
  * An alternative design put this code in a CorePingUtil but I decided these
methods are tied closely to the TelemetryCorePingBuilder.
  * Adding these methods makes it less clear what the class is about (without
filtering on public methods that is).

I'm not sure what the best trade-off is.

Note: this is not yet expected to compile.

MozReview-Commit-ID: FQYFP3ioewN

--HG--
extra : rebase_source : 660c66cb5bb38928b9e532e1861ff7c8c3169187
2016-04-28 16:01:07 -07:00
Michael Comella
6b6e47cfcb Bug 1243585 - Remove unused BackgroundService & related code. r=sebastian
Note: this is still not expected to compile.

MozReview-Commit-ID: KTMyKTHm1RS

--HG--
extra : rebase_source : 8cfc2e306f3f23bbc077571f266f5f3e6444067a
2016-04-20 14:26:57 -07:00
Michael Comella
b50372bc52 Bug 1243585 - Revise TelemetryUploadService for new store. r=sebastian
Note: this is still not expected to compile.

MozReview-Commit-ID: nadP0VfCG7

--HG--
extra : rebase_source : ca957fd03140ebd7132410d80cc53abb111dbcde
2016-04-28 17:51:47 -07:00
Michael Comella
daf1884121 Bug 1243585 - Add JSONFilePingStore with tests. r=sebastian
Note: not expected to compile.

MozReview-Commit-ID: 5RTQk5m3zTx

--HG--
extra : rebase_source : 1d5aa98b5c54fe6b213fe88bd91e13b5c334a7fb
2016-04-28 17:05:25 -07:00
Michael Comella
0959e38680 Bug 1243585 - Add UploadAllPingsImmediatelyScheduler and tests. r=sebastian
Note: still does not compile.

MozReview-Commit-ID: 7NuLecUSTVa

--HG--
extra : rebase_source : aa6a65f89f72a6c4029e73fe8dc5af6a06c6ef51
2016-04-28 14:57:00 -07:00
Michael Comella
05d3028eb6 Bug 1243585 - Add TelemetryDispatcher. r=sebastian
Note: for version control and review simplicity, this does not yet compile.

MozReview-Commit-ID: EvccGtseOKT

--HG--
extra : rebase_source : 9572d2df3a306ca4b51b1af464a21161db66ba78
2016-04-28 15:36:56 -07:00
Michael Comella
864a2a07af Bug 1243585 - Add interfaces to be used by dispatcher. r=sebastian
MozReview-Commit-ID: B4evdPj5Jsl

--HG--
extra : rebase_source : 6a668ecd464bb5966e0c00ebfd96b6006c6a400d
2016-04-28 14:38:21 -07:00
Michael Comella
27f4871f75 Bug 1243585 - Move Intent constants into UploadService. r=sebastian
I'm thinking it's better to have constants with the classes they're most
closely associated with rather than one giant constants file because it becomes
hard to find anything in a large constants file.

MozReview-Commit-ID: D3SCkW3vbRM

--HG--
extra : rebase_source : 37611c82f84ba011c763554c6793bef63c093faa
2016-04-19 08:49:07 -07:00
Michael Comella
cf8a4c46d6 Bug 1243585 - Create telemtry/core/ pkg and move files accordingly. r=sebastian
MozReview-Commit-ID: 8cqtwzPbvHp

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/telemetry/pings/TelemetryPing.java => mobile/android/base/java/org/mozilla/gecko/telemetry/TelemetryPing.java
rename : mobile/android/base/java/org/mozilla/gecko/telemetry/pings/TelemetryPingBuilder.java => mobile/android/base/java/org/mozilla/gecko/telemetry/TelemetryPingBuilder.java
rename : mobile/android/base/java/org/mozilla/gecko/telemetry/pings/TelemetryCorePingBuilder.java => mobile/android/base/java/org/mozilla/gecko/telemetry/core/TelemetryCorePingBuilder.java
rename : mobile/android/tests/background/junit4/src/org/mozilla/gecko/telemetry/pings/TestTelemetryPingBuilder.java => mobile/android/tests/background/junit4/src/org/mozilla/gecko/telemetry/TestTelemetryPingBuilder.java
extra : rebase_source : 7d36d4fdf590c34c052fef3619bc44c5f0b06d73
2016-04-28 14:24:26 -07:00
Carsten "Tomcat" Book
f9e0bb9939 Merge mozilla-central to fx-team 2016-05-03 16:19:57 +02:00
Carsten "Tomcat" Book
4f94a090a0 merge mozilla-inbound to mozilla-central a=merge 2016-05-03 16:17:32 +02:00
Carsten "Tomcat" Book
69c6270ec3 Backed out changeset 2cfbc2cd8ba3 (bug 1220307) for causing merge conflicts when merging to mozilla-central
--HG--
extra : rebase_source : b51c46fa0c5490e3e81c9dfcfe0b7b88d6b970cc
2016-05-03 12:01:45 +02:00
Carsten "Tomcat" Book
858cd92560 Backed out changeset 06914d791e0d (bug 1220307)
--HG--
extra : rebase_source : 971015c1e3a1eb2040dabe287f1cb65bb6ae66a5
2016-05-03 12:01:21 +02:00
Andrea Marchesini
3df261e948 Bug 1269303 - Remove RequestSync API, r=fabrice 2016-05-03 11:13:03 +02:00
Jan Henning
a0e4718399 Bug 1269189 - Let mobile session store capture frameset navigation, too. r=bnicholson
Since the history restore code now apparently supports restoring subframes, too, we should let the mobile session store capture frameset navigation as well, so we can preserve the full browsing history.

MozReview-Commit-ID: 5SM8eMTfgIH

--HG--
extra : transplant_source : IO%1Bz%CA_%14%D0D%F9Q%FBA%E5S7%85%90%AE%C0
2016-05-02 11:24:18 +02:00
Chun-Min Chang
05a818c4cd Bug 1268767 - [Presentation WebAPI] Missing a MPL2 license header for devicePrompt.properties; r=margaret
MozReview-Commit-ID: JRgOGrE7Iu5

--HG--
extra : transplant_source : %BD%BC%CC%C7%DAt%F3%CA%02%8E%89%08%C0%10%1A%98%0D%99%A4P
2016-04-29 14:08:36 +08:00
Chenxia Liu
e9d557621e Bug 1261993 - [infer] Errors in DefaultDoorHanger. r=mcomella
MozReview-Commit-ID: AemVFuiMNjo

--HG--
extra : rebase_source : 422068ea823fa47e700cdeb22527d60431097d6f
extra : histedit_source : f1fd26344a3862455e61fa195a48beb16acf326c
2016-04-21 16:24:39 -07:00
Chenxia Liu
e27e382bc1 Bug 1269027 - Add empty state for no synced devices. r=sebastian
MozReview-Commit-ID: 2STg7zSgXF9

--HG--
rename : mobile/android/base/resources/layout/remote_tabs_setup.xml => mobile/android/base/resources/layout/history_sync_setup.xml
extra : rebase_source : 087871f814df30ad7259bf3175baece06e6136f4
extra : histedit_source : 2e5ccbfa39e88effdf1c0592ffd1a82c9d3e1ab1
2016-04-29 15:38:19 -07:00
Chenxia Liu
3d04951350 Bug 1261527 - Clean up RecyclerView animations. r=sebastian
MozReview-Commit-ID: KIdXTmalwKv

--HG--
extra : rebase_source : 1f34e949846d7769d26afd280613004a56c38307
2016-04-29 17:48:50 -07:00