Commit Graph

20304 Commits

Author SHA1 Message Date
Michael Comella
83ba5b69af Bug 1270213 - Move PingStore* to doc ID filenames. r=sebastian
The code is now expected to compile.

MozReview-Commit-ID: 76dHW9gmyTl

--HG--
extra : rebase_source : a9e6578133e1a7d935af4943c7a1c92ece7eedf5
2016-05-05 17:49:47 -07:00
Michael Comella
e0f8ab936b Bug 1270213 - Update TelemetryUploadService to use doc ID. r=sebastian
This is not yet expected to compile.

MozReview-Commit-ID: FQF6z5ni6jC

--HG--
extra : rebase_source : bd7ccc97e44a17f66122242d28e030762c645ee9
2016-05-05 16:52:58 -07:00
Michael Comella
efe06ac7a9 Bug 1270213 - Update TelemetryPing & builders to use docID. r=sebastian
Future patches will change the remaining code - This is not yet expected
to compile.

MozReview-Commit-ID: FpqfThcV7dj

--HG--
extra : rebase_source : e01ea217aadd88853d6643c5642d866ba796aa81
2016-05-05 16:32:40 -07:00
Michael Comella
00cba0fcf9 Bug 1270213 - Factor lockAndReadJSONFromFile out from getAllPings. r=sebastian r=sebastian
MozReview-Commit-ID: HtUkO0n50px

--HG--
extra : rebase_source : 03a91752862b02afd0319d9c9f13894cf1cad55b
2016-05-05 14:37:02 -07:00
Michael Comella
b712f57236 Bug 1270213 - Add UUIDUtil.isUUID. r=sebastian
MozReview-Commit-ID: S5BbzEVEka

--HG--
extra : rebase_source : 6ae0a62d4747cb2fd9df23a0604918461c5359b1
2016-05-05 16:56:38 -07:00
Michael Comella
ded6c511f3 Bug 1270213 - Add FileLastModifiedComparator. r=sebastian
MozReview-Commit-ID: 6JbQoqYbZsn

--HG--
extra : rebase_source : 491b337169b724467db53a584b147e751ad50a05
2016-05-05 14:42:34 -07:00
Michael Comella
56717d85c7 Bug 1270213 - Move generic file filters to FileUtil. r=sebastian
These will be used by the Store in the upcoming patches.

MozReview-Commit-ID: 7sPICagdLMu

--HG--
extra : rebase_source : a7ec0a82f48fde4480ab89ec6f39f6e073c31c71
2016-05-05 17:10:57 -07:00
Jan Henning
be9ba0fd90 Bug 1266339 - Part 2 - Delete outdated sessionstore.bak files when restoring tabs automatically. r=margaret
sessionstore.bak, which powers the "tabs from last time" display, is only updated with the data of the previous session if the user chooses to "never restore" tabs, or if we've temporarily disabled session restoring because of too many successive crashes in a row. In all other cases, we restore tabs automatically so sessionstore.bak is never updated with fresh data, meaning its contents get stale pretty soon.

With this patch, we clean up old copies of sessionstore.bak when doing an automatic restore, so they don't linger indefinitely in the "tabs from last time" section of the recent tabs panel.

MozReview-Commit-ID: DrOx5TNwYMv

--HG--
extra : transplant_source : %2Ac%83%F40i%1Ah%3F%B1QI%D6%84%FF%7B%E8%157%F1
extra : histedit_source : 61cc196e844b26e00cf47363c69e6f1672d90f14
2016-04-21 20:43:47 +02:00
Jan Henning
fa27d7a370 Bug 1266339 - Part 1 - Move session store file names in GeckoProfile into named constants. r=margaret
MozReview-Commit-ID: 8QESeQ5P6Ys

--HG--
extra : transplant_source : %3F_g%B7%CE%87%A95v%14w%EC%80%CB%10%CB%CB%BB%91%D1
extra : histedit_source : 54eec6a9cd4167a236e6eac1b7e117c919d9654a
2016-04-21 20:28:38 +02:00
Ray Lin
0754079578 Bug 1260304 - Remove mediasource string from context menu on Android. r=margaret
MozReview-Commit-ID: 5BdIUzgkTV

--HG--
extra : transplant_source : %B1%F4D%08w%EC3%5E%22U%85%8F%21LSE5%87%CA%96
extra : histedit_source : 93acf7c59beb488645ac01848a4b08f1461f8160
2016-04-18 15:26:21 +08:00
Krishna
8460d01ab1 Bug 1242385 - Removing unused method - DownloadContentCatalog: markAsIgnored() r=sebastian
--HG--
extra : histedit_source : ee8f93e73728a06dc0d30416a0dae010cc0b2fb1
2016-05-12 19:47:50 +08:00
Margaret Leibovic
61c1f80284 Bug 1267837 - Update grid item telemetry to indicate whether an item is pinned. r=mfinkle
MozReview-Commit-ID: 9Et4AhCzAr9

--HG--
extra : rebase_source : b901745bd6ae2b26690491be9cbe8020d85a2931
2016-05-11 11:40:49 -04:00
Carsten "Tomcat" Book
868e217e88 merge mozilla-inbound to mozilla-central a=merge 2016-05-12 11:54:10 +02:00
Michael Comella
05393aefa8 Bug 1271805 - Update color of pressed item in the long-press back history menu. r=ahunt
MozReview-Commit-ID: 5q45HtRfv1l

--HG--
rename : mobile/android/base/resources/color/pressed_about_page_header_grey.xml => mobile/android/base/resources/color/state_pressed_toolbar_grey_pressed.xml
extra : rebase_source : b9a836ec3ca4a5ddbaf741ad7b3f8a6a6f8cc8bd
2016-05-10 14:43:54 -07:00
Michael Comella
a15efa04eb Bug 1268603 - Set history background color to @null. r=ahunt
See added comment (and bug it references) for details.

MozReview-Commit-ID: CqS5Oy7MPln

--HG--
extra : rebase_source : a64c5d134d0f2d4bc46ede356a5e8517654e9c62
2016-05-10 14:19:02 -07:00
Grigory Kruglov
5f6c8ef806 Bug 1233250: use correct string name for offline message r=me
MozReview-Commit-ID: CNf7cg0S1Zb

--HG--
extra : rebase_source : a15ea4c263e6e938091ad8396988ff0718056404
extra : amend_source : 53c817f0a9b5a9011f23c9bfce1f025010353cb8
2016-05-11 08:38:44 -07:00
Sebastian Kaspari
9c54ec6987 Bug 1270529 - lookupProxy(): Return null if port is -1. r=ahunt
We already return null if the host is empty and all callers seem to handle null values.

MozReview-Commit-ID: 4utRbvf7To3

--HG--
extra : rebase_source : 3236e7d6c518cf1041699101f8eef34b0ef19609
2016-05-09 20:08:12 +02:00
Grigory Kruglov
348655f801 Bug 1233250: Part 2 - Better copy for "loaded from cache" snackbar r=sebastian
MozReview-Commit-ID: 1TZnFlU6Mo7

--HG--
extra : rebase_source : ad28ba459bac7c7fd3e9f32bc6c372220a552573
2016-05-10 17:35:40 -07:00
Grigory Kruglov
1b5d965b08 Bug 1233250: Part 1 - Set offline snackbar background to link_blue r=sebastian
MozReview-Commit-ID: Bjc1RO95Hx

--HG--
extra : rebase_source : 1ee6d97a05f75d0ce893a48cb0123291f0d318ae
2016-05-06 11:32:52 -07:00
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
John Dai
1545cb9d2f Bug 1088761 - Support reportValidity() for form controls. r=smaug
From 2c2f7223e9d88f431f3e3fee7384dffbca07d8a9 Mon Sep 17 00:00:00 2001

--HG--
extra : rebase_source : 7daace21a903c55c893f0c6e7b0e0380b6ddca12
2016-04-15 16:13:00 +08:00
Randall Barker
c63841d754 Bug 1229462 - Use Android OverScroller class for fling animation r=botond 2016-05-11 08:37:47 -07:00
Matthew Wein
54b6b913f8 Bug 1267346 - Implement chrome.PageAction.hide on Android. r=kmag
MozReview-Commit-ID: Isxgovo3Txb

--HG--
extra : transplant_source : Z%B6%3D-%F7%82%8B%E4%F5%EBA%C2%88%EF%B8%0A%91%91%9D%A5
2016-05-13 15:52:24 -07:00
Chris Manchester
657b64c828 Bug 1272714 - Move MOZ_ANDROID_HISTORY to Python configure. r=glandium
MozReview-Commit-ID: BRhGpAtEHxp
2016-05-17 14:40:03 -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