Commit Graph

22394 Commits

Author SHA1 Message Date
Tom Klein
e065b3c989 Bug 1338027 - Fix RTL padding in the linear tabs layout. r=maliu,sebastian
MozReview-Commit-ID: Lrljp1een4y

--HG--
extra : rebase_source : a4e9be8d4b08ca4699f76da3663532ecf446e9b0
2017-02-08 18:10:27 -06:00
Wes Kocher
30d9ef4d29 Merge m-c to autoland, a=merge
MozReview-Commit-ID: D76dMYwFRUQ
2017-02-09 17:06:59 -08:00
Wes Kocher
d3307f19d5 Merge inbound to central, a=merge
MozReview-Commit-ID: 9TTIrjfNKZm

--HG--
rename : dom/base/test/test_bug1263696.html => testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/embed-in-object-fallback-2.html
rename : dom/base/test/test_bug1263696.html => testing/web-platform/tests/html/semantics/embedded-content/the-object-element/object-in-object-fallback-2.html
2017-02-09 17:01:39 -08:00
Wes Kocher
e27ab18a24 Merge autoland to central, a=merge
MozReview-Commit-ID: Cu9iXbDAS7t
2017-02-09 16:36:11 -08:00
Carsten "Tomcat" Book
ffe70d35b2 Merge mozilla-central to mozilla-inbound 2017-02-09 11:38:08 +01:00
Aman Dwivedi
8596d20f5f Bug 876002 - Remove nsIFormHistory2 so no synchronous form history code remains, r=markh.
MozReview-Commit-ID: 4hNAqttRddP

--HG--
extra : rebase_source : a206e30f11e8a625c29898f04498e2da628c2b91
2017-02-08 22:50:00 +01:00
Andrzej Hunt
e2ad67f9df Bug 1337419 - Post: don't set bookmark ID for suggested site r=Grisha
Suggested sites don't have a bookmark ID, there's little value in setting one here since
that's confusing for anyone handling the cursor. (This is probably an oversight from
when the single-cursor topsites query was first implemented.)

MozReview-Commit-ID: 77Cw37za6cD

--HG--
extra : rebase_source : 4e654b64d76423133bcfe4c90dab13891dcc4f09
2017-02-07 14:12:16 -08:00
Andrzej Hunt
44230afeaf Bug 1337419 - Bookmark state of suggested sites is also unknown r=Grisha
Suggested sites aren't joined against the bookmarks table before returning
them as part of getTopSites(), so their bookmark state is unknown.

MozReview-Commit-ID: C5BhUcoSsll

--HG--
extra : rebase_source : 4509eb9980970de703e7f32ca371c76ec78b2673
2017-02-09 09:47:35 -08:00
Grigory Kruglov
f753528969 Bug 1330836 - Only send 'network config/status changed' events to Gecko if something actually changed r=jchen
MozReview-Commit-ID: CrlRDu8MbhY

--HG--
extra : rebase_source : 99a830d7deeaa2f8de2692578590d1da8a4241ff
2017-02-09 10:48:16 -08:00
Jim Chen
83ba7c63ab Bug 1336007 - Ignore invalid key/tokens when updating account; r=sebastian
The refactor patch removed a try/catch block that would have caught this
error before. Instead of using try/catch, this patch checks for the
affected items and send an error when the items are missing.
2017-02-08 19:50:33 -05:00
Jim Chen
1cd2ff426d Bug 1337053 - Fix optString conversions; r=sebastian
JSONObject.optString defaults to empty string ("") if the key doesn't
exist, whereas GeckoBundle.getString defaults to null if the key doesn't
exist. So the correct conversion for `json.optString("foo")` should be
`bundle.getString("foo", "")`. This patch fixes the wrong conversions
from before. In case we did default to null, this patch gets rid of the
redundant null second argument to GeckoBundle.getString.
2017-02-08 19:50:33 -05:00
Jim Chen
42a4c3f718 Bug 1332731 - Follow-up to fix accessibility breakage; r=sebastian
Follow-up to fix breakage in accessibility caused by the bundle
conversion. In particular, optString(foo) should have been converted to
getString(foo, "") because optString returns "" by default.

Also fix a small bug in Presentation.jsm where an array or null should
be used instead of a string.
2017-02-08 19:50:32 -05:00
Jim Chen
65ff086671 Bug 1329438 - Wait until Gecko is ready to open URI; r=snorp
Right now we wait until PROFILE_READY state, but we may not have a
browser DOM window until RUNNING state, so wait until then.
2017-02-08 19:50:32 -05:00
Wes Kocher
6ff8201ffe Merge inbound to central, a=merge
MozReview-Commit-ID: 4mN7daXzULJ
2017-02-08 16:08:42 -08:00
Wes Kocher
2880f6ee5a Backed out 2 changesets (bug 1336358) for android failures in video-replay-after-audio-end.html a=backout
Backed out changeset c474e07f9ad8 (bug 1336358)
Backed out changeset 1ffc124c5fc1 (bug 1336358)

MozReview-Commit-ID: 3IS2QDRTQkN

--HG--
extra : rebase_source : ba363cc027cb51d8f9711f671fa08a3cc2eae277
2017-02-08 12:34:48 -08:00
Jim Chen
21dfb2d432 Bug 1337304. r=snorp
--HG--
extra : rebase_source : 7306160ece787ed98fb98ec1bcecbb0466d98093
2017-02-08 13:49:20 -05:00
Eugen Sawin
1b0bde87e7 Bug 1322592 - [4.0] Refactor GeckoViewContent to extend GeckoViewModule. r=jchen 2017-02-09 15:44:00 +01:00
Eugen Sawin
7fedfdca7a Bug 1322592 - [3.3] Add GeckoViewModule base class and integrate GeckoViewNavigation. r=snorp,jchen 2017-02-09 15:44:00 +01:00
Eugen Sawin
5ecdbd81b8 Bug 1322592 - [2.2] Add GeckoViewNavigation.jsm. r=snorp,jchen 2017-02-09 15:44:00 +01:00
Eugen Sawin
ad818bc99a Bug 1322592 - [1.3] Add GeckoView navigation. r=snorp,jchen 2017-02-09 15:44:00 +01:00
Ralph Giles
9fa33697c2 Bug 1336155 - Update builders to rust 1.15.0 stable. r=mshal
Repack of the upstream builds of the rust 1.15.0 stable release.

MozReview-Commit-ID: KDjkSQSFrFA

--HG--
extra : rebase_source : 7ca562b3d1cc4d051d9cfc25ef14fbbe2dbd77bb
2017-02-02 11:30:34 -08:00
Mike Taylor
1fb06abb92 Bug 1338260. Add Fennec-only UA override for directv.com. r=mconnor
They use an older version of Sencha Touch (v2.1.0) which is known
to not be compatibile with Firefox. However, pretending to be Chrome
fixes the issue of not being able to scroll and various paint bugs.

MozReview-Commit-ID: K35ll42Xxlt

--HG--
extra : rebase_source : 26f2e68ff2bc6be7d00a3eba1bedd56a9a7d62be
2017-02-09 13:55:11 -06:00
Andrzej Hunt
40fdd4e5ab Bug 1325375 - Followup: extend popupmenu size workaround to all 4/5 devices r=sebastian
It seems that there is a wide variety of affected devices, so we should just play it safe
and run the workaround on any device that might be affected. (We already run this code
for _all_ devices for the main app menu, so it doesn't have any adverse affects. On the other
hand it would be nice to remove it eventually, i.e. once we no longer support Android 4 or 5 -
although that's still a long way away.))

MozReview-Commit-ID: 2nOYScRXQLd

--HG--
extra : rebase_source : 4e157683ac0de78f2ffb7336a7d0a0c7b483c502
2017-02-06 15:08:28 -08:00
Andrzej Hunt
e5a9599e93 Bug 1320730 - Send different panelID for topsites when AS is enabled r=sebastian
For homepanels we usually send a long ID string (see the list in HomeConfig). We
reuse the topsites panel to render ActivityStream, so topsites and AS have the
same panel ID. It seems simplest to just override the session name when showing
AS.

MozReview-Commit-ID: JqyyqY77Eo3

--HG--
extra : rebase_source : cd372a4de91c550f30754d40f80ef8c86f6eb1c8
2017-02-07 13:05:46 -08:00
Andrzej Hunt
2ed9560b6e Bug 1320730 - Ensure homepanel telemetry session is set when panel initially loaded r=sebastian
We currently only start a session when swiping between homepanels. We should also send
it when showing the homepanel normally.

MozReview-Commit-ID: 8Kk2RDCbDDc

--HG--
extra : rebase_source : 113474aa6efe5a7e25a2b96a6db5bc049a12d7cf
2017-02-07 13:05:34 -08:00
Jean-Yves Avenard
ae5afcc6bd Bug 1336358: P1. Revert "Bug 1319987: P12. Disable RemoteDataDecoder.". r=jolin
This reverts commit ff9f57defc040b9a41a7b96361b5b286d2acff90

MozReview-Commit-ID: 1ta2wmzwcNo

--HG--
extra : rebase_source : 673e52f67c1bfaf4ed974b27cfe4cc4f00b37577
2017-02-07 21:31:49 +01:00
Adam Velebil
eb033cc0a8 Bug 656101 - support for audio ducking; r=padenot,snorp
MozReview-Commit-ID: 1OumuSeEIEi

--HG--
extra : rebase_source : 8506a1adc16970450accf0943288c1c65f6f567c
2017-01-29 10:03:37 +01:00
Tom Klein
b6099a12e2 Bug 1333518 - Don't import Samsung Internet folders as bookmarks. r=sebastian
The Samsung Internet content provider provides both bookmarks and folders,
distinguished by "bookmark_type" (equals 0 for folder, 1 for bookmark).  We're
currently importing both types, with folders getting inserted into our db with a
url of null.  Such "bookmarks" never seem to surface in UI, and sync ignores
them, but let's stop importing them anyway.

MozReview-Commit-ID: 7G3QuEYBgRb

--HG--
extra : rebase_source : 965e704c5b4d470f90c1e89a69e64d4203374a27
2017-01-24 12:13:15 -06:00
Shan
35f3b97b30 Bug 1277464 - Fixed Localization in text selection Context Menus; r=sebastian
MozReview-Commit-ID: 6QR5aHbeD97

--HG--
extra : rebase_source : 9d522ecb6418ee771df50b5d3771f2611b254598
2016-12-20 17:47:35 +05:30
Carsten "Tomcat" Book
55606baab8 merge mozilla-inbound to mozilla-central a=merge 2017-02-08 11:30:00 +01:00
Julian_Chu
0a1aacdde0 Bug 1329144 - CustomTabsActivity supports ActionButton r=sebastian
3rd-party-app could launch CustomTabsActivity, and could also configure
a custom action button. Now let CustomTabsActivity supports it by
creating a MenuItem.

MozReview-Commit-ID: 2KuMgBJy2gz

--HG--
extra : rebase_source : 93bcfb33001005d307dba68f898375ab7d86adb2
2017-02-03 16:03:21 +08:00
Julian_Chu
50e9f09542 Bug 1329144 - IntentUtil can extract ActionButton info from Intent r=sebastian
To support ActionButton in CustomTabsActivity, information should be
extract from intent.

MozReview-Commit-ID: 3C19U0EQfV6

--HG--
extra : rebase_source : a8d941a3fd740d5d8863e748b20de790b8bf589c
2017-02-03 13:42:13 +08:00
Julian_Chu
6dab553876 Bug 1329144 - Remove useless variable r=sebastian
This variable is useless. So far we reference to a toolbar instance by
local variable. Removing it makes less ambiguous.

MozReview-Commit-ID: 8zrEKaB2H48

--HG--
extra : rebase_source : e35e3f87876ca497745585134018cff41536b9b0
2017-02-02 17:07:41 +08:00
Tushar Saini (:shatur)
7b36cfa2af Bug 1252960 - Rename UrlMetadata* table to UrlImageData* r=ahunt
MozReview-Commit-ID: 2TNcctxAbRc

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/db/URLMetadataTable.java => mobile/android/base/java/org/mozilla/gecko/db/URLImageDataTable.java
extra : source : 7038e10280b2905704687ea6d74020c6c437e114
2017-02-02 22:05:17 +05:30
Wes Kocher
a577c3191e Backed out changeset 7038e10280b2 (bug 1252960) for test_safe_browsing_warning_pages.py failures a=backout
MozReview-Commit-ID: 9Dfm6gbDFc8

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/db/URLImageDataTable.java => mobile/android/base/java/org/mozilla/gecko/db/URLMetadataTable.java
2017-02-07 14:46:18 -08:00
Wes Kocher
9576aa1519 Merge m-c to autoland, a=merge
MozReview-Commit-ID: HXFQTGJASw4
2017-02-08 16:21:53 -08:00
Chris Manchester
9b25d55fc6 Bug 1325485 - Upload buildsymbols from android artifact builds in automation. r=nalexander
MozReview-Commit-ID: GVUxwVCo91L

--HG--
extra : rebase_source : ed6c112460128d1c0495a0ed2266170ced248222
2017-02-08 12:22:17 -08:00
Tushar Saini (:shatur)
72f8343c68 Bug 1252960 - Rename UrlMetadata* table to UrlImageData* r=ahunt
MozReview-Commit-ID: 2TNcctxAbRc

--HG--
rename : mobile/android/base/java/org/mozilla/gecko/db/URLMetadataTable.java => mobile/android/base/java/org/mozilla/gecko/db/URLImageDataTable.java
extra : rebase_source : 038a80437aeaaa54f3a4b2124ba6aa538daf7e11
2017-02-02 22:05:17 +05:30
Andrzej Hunt
af866b1d42 Bug 1335968 - Check SDK version at startup r=sebastian
This shouldn't ever be true - but we have crash reports from
devices running API 10 (Android 2.3), despite having a minimum
requirement of API 15 (Android 4). The cause is unknown, but could
be caused by Google Play bugs (e.g. if it were to ignore an increase
in the minimum SDK), or some other override.

MozReview-Commit-ID: 12uHsDxGPp

--HG--
extra : rebase_source : c6de3f0ed88bf506ca55297323e2670cd5641965
extra : source : 0da24048d1a8206a3a30d6b32c2d11a13cc119f6
2017-02-01 17:29:05 -08:00
Andrzej Hunt
da666e1cb9 Bug 1336084 - Remove unneeded isForegrounded() call r=sebastian
I accidentally added this while working on a fix for Bug 1120441,
and forgot to remove it before landing. This call isn't harmful,
but it's unnecessary.

MozReview-Commit-ID: FrnhoYWFvKR

--HG--
extra : rebase_source : d5c4afef36e45bbf8ea4ef4932af55d94ac2a3a3
2017-02-02 10:37:58 -08:00
Sebastian Hengst
0264cdf6be Bug 1336311 - Change code comments with http://hg.mozilla.org to https://. r=gps
For components also referencing it in code, see the blockers of bug 1336311.

MozReview-Commit-ID: 4tUZ24HKBWy

--HG--
extra : rebase_source : ec16149f525b9b7eaca7f96f1369929d21497121
2017-02-07 17:52:56 +01:00
Jan Henning
9c6d725ad7 Bug 1148797 - Don't offer "Undo close tab" for empty tabs with no session history. r=ahunt
MozReview-Commit-ID: CsYgUDrCmUQ

--HG--
extra : rebase_source : 5d5b21563c61333c1061f9f87f49abac4f00263b
2017-01-30 22:40:58 +01:00
Wes Kocher
4f9bb91ff9 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 62cmOWDrQbs
2017-02-10 15:31:09 -08:00
Dylan Roeh
cdd384261f Bug 1332463 - Implement ProgressListener. r=jchen 2017-02-10 16:49:42 -06:00
Carsten "Tomcat" Book
092e5dc5f1 merge mozilla-inbound to mozilla-central a=merge 2017-02-07 14:08:46 +01:00
Wes Kocher
03fa75727b Backed out 9 changesets (bug 1330111) for bc bustage in various tests a=backout
Backed out changeset e87c86970a29 (bug 1330111)
Backed out changeset 9e2e44a7a159 (bug 1330111)
Backed out changeset 7abc377ef809 (bug 1330111)
Backed out changeset f1e782d1c944 (bug 1330111)
Backed out changeset d94d72846952 (bug 1330111)
Backed out changeset 23180cae4a46 (bug 1330111)
Backed out changeset 09c59f5c572a (bug 1330111)
Backed out changeset e208e0b51349 (bug 1330111)
Backed out changeset 271035a2bc64 (bug 1330111)

MozReview-Commit-ID: 6mfKgu07dow
2017-02-06 17:54:14 -08:00
Matthew Noorenberghe
6f408d312e Bug 1330111 - Always attempt to autocomplete on type=password fields upon focus. r=daleharvey
Let password manager handle opening the popup on username fields itself.

MozReview-Commit-ID: FbI6CgsadEd

--HG--
extra : rebase_source : b50f8ecaf5daff5660832894f083e2fda7336e3f
2017-02-03 17:19:02 -08:00
Nevin Chen
d74baf7dcd Bug 1332955 - Consider restore data( for bookmark parent stack) when reloading home panels. r=ahunt
MozReview-Commit-ID: 7m6HOnfPLK3

--HG--
extra : rebase_source : f7351689302d98aaa9c7ebfe15c4046e661d8c9e
2017-01-25 12:10:55 +08:00
Kris Maglione
395aa1f787 Bug 1336308: Part 5 - Add documentation for the Android-specific tab API helpers. r=aswan
MozReview-Commit-ID: UN78mhAArC

--HG--
extra : rebase_source : 6913804ebc3f1f464d900b84cf5d7cf9cc7c4952
2017-02-03 15:29:46 -08:00
Kris Maglione
28b57587cb Bug 1336308: Part 4 - Rename tab variables that refer to native tabs to avoid confusion. r=aswan
MozReview-Commit-ID: 5An7K1crYRS

--HG--
extra : rebase_source : b052d46fe2883850c95b2116534ee098f0d4efa2
2017-02-03 12:57:43 -08:00
Kris Maglione
1eb1be7a98 Bug 1336308: Part 2 - Add a TabBase.sendMessage and TabBase.capture helper methods. r=aswan
MozReview-Commit-ID: EP8uxCkztvi

--HG--
extra : rebase_source : 03d6f3ce6e58172591ef82604b7090528964ebb6
2017-02-03 13:00:39 -08:00
Jean-Yves Avenard
3bd3756971 Bug 1319987: P12. Disable RemoteDataDecoder. ?jhlin r=jya
There appears to be a race occurring where InputExhausted callback isn't always called.
The issue could be reproduced prior all those changes, albeit rarely.

The tracking of re-enabling this feature will be done in bug 1336358

MozReview-Commit-ID: 5rPpcCcgNIq

--HG--
extra : rebase_source : bf3513e5ff8d8c72ed7aa505c8fda723a480c243
2017-02-03 09:40:28 +01:00
maliu
af787a4541 Bug 1326291 - Make width of SiteIdentity TextView as wrap_content to follow layout_gravity from layout_direction for RTL, r=sebastian
MozReview-Commit-ID: Fk7VtHd1VMM

--HG--
extra : rebase_source : 4fb07b73efe3ba48635de9f70710265d7e74ed9f
2017-02-03 11:54:22 +08:00
maliu
4bb53b7e2a Bug 1333089 - Force update up indicator drawable in onCreate even locale did not change, r=sebastian
MozReview-Commit-ID: Ltuuq16u571

--HG--
extra : rebase_source : decdad7d7ccb037afd0ad5967e31ba182060363b
2017-02-02 11:38:47 +08:00
Phil Ringnalda
cde93160c2 Merge m-i to m-c, a=merge 2017-02-04 17:05:50 -08:00
Chris Peterson
7ed800f024 Bug 1242321 - Remove obsolete "media.eme.apiVisible" pref. r=cpearce sr=bz
MozReview-Commit-ID: D31Yg1LHI5u

--HG--
extra : rebase_source : 7c608ee93025840fc4f97977feec2ca65ceee263
2017-02-01 22:10:06 -08:00
Wes Kocher
10fb637abf Merge m-c to inbound a=release CLOSED TREE
MozReview-Commit-ID: AwyW5DU4EMh
2017-02-03 17:21:29 -08:00
Wes Kocher
b488ae9021 Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: GhBqmLvUpgQ
2017-02-03 17:04:18 -08:00
Sebastian Kaspari
b5ceb2958f Bug 1318667 - Do not use palette library on x86 devices (Use BitmapUtils.getDominantColor()). r=ahunt
Our version of the palette support library crashes for certain icons on x86 systems.

MozReview-Commit-ID: E6eEyFXd4uK

--HG--
extra : rebase_source : fe2e3d55ff7744d480c8a6318aba09bb2c519a13
2017-02-03 18:42:36 +01:00
Tim Huang
42a2c99db5 Bug 1312954 - Part 11: Update speculativeConnect to speculativeConnect2 for Fennec. r=sebastian 2017-02-02 22:18:00 -05:00
Tim Huang
1ed1228b60 Bug 1312954 - Part 9: Update speculativeConnect to speculativeConnect2 for the search service. r=Gijs 2017-02-02 22:17:00 -05:00
Jan Henning
422802efba Bug 1335008 - Part 2 - Replace our own privacy level check implementation with PrivacyLevel.jsm r=sebastian
MozReview-Commit-ID: 6vDZupfdFoj

--HG--
extra : rebase_source : bfa7352ba4d8e30e56d2b4ae236cd7bc4d166e30
2017-01-31 21:17:22 +01:00
Dylan Roeh
81892271a5 Bug 1322590 - Add and hook up ContentListener for GeckoView. r=jchen 2017-01-25 15:13:58 -06:00
Swaroop Rao
20ee8ee875 Bug 1324427 - Switchboard: Set user agent and proxy; Using proxy and setting user agent from ProxySelector and BaseAction classes respectively. r=sebastian
MozReview-Commit-ID: 4L22dZd4VX5

--HG--
extra : rebase_source : c3a39c080aaa7208da14986dc0e85ccfb0c6a2a8
2017-02-01 18:12:54 -05:00
Julian_Chu
b779ec64b8 Bug 1329145 - Part3: add test cases r=sebastian
To test different situations

* Intent has custom animation
* Intent has no custom animation

MozReview-Commit-ID: 9KqBJu9x4nw

--HG--
extra : rebase_source : 30820e83d91df185cc70155bb528c4bbe9316869
2017-02-02 11:56:37 +08:00
Julian_Chu
40d3b48040 Bug 1329145 - Part 2: To apply custom animation if any r=sebastian
3rd party app could specify its own custom-exit-animation when launching
CustomTabsActivity.

For that case, to call `overridePendingTransition` in method finish().

MozReview-Commit-ID: CivYpP2jvXp

--HG--
extra : rebase_source : 23f202a08af134f83814ac89b26a1c0d0f480478
2017-01-25 19:07:21 +08:00
Julian_Chu
3968926fe4 Bug 1329145 - Part 1: re-indent code style r=sebastian
MozReview-Commit-ID: AOrzGZIAKxU

--HG--
extra : rebase_source : e845502ce0a50ceb8da83fd9690b027d4911f4da
2017-01-23 17:03:48 +08:00
Daniel Holbert
c280ee0009 Bug 1259348 part 1: Remove CSSUnprefixingService.js and associated code (since it's been supplanted by built-in webkit-prefixed-CSS support). r=mats
MozReview-Commit-ID: CXCJJWhHc8G

--HG--
extra : rebase_source : a09745ce568c9afde78065d9e837da958e7b252e
2017-02-03 14:56:13 -08:00
Andrzej Hunt
531cd887a0 Bug 1323105 - Post: remove unused raster pin icon r=sebastian
MozReview-Commit-ID: GLQTTqOrwcL

--HG--
extra : rebase_source : c84a460dce29b8be5951d26393776008bec3c7ce
2017-02-01 14:44:05 -08:00
Andrzej Hunt
8f89ccdc14 Bug 1323105 - Upgrade topsites, AS topsites, and AS contextmenu to VectorDrawable pin r=sebastian
MozReview-Commit-ID: Dpot8wrYFZI

--HG--
extra : rebase_source : 741d16980281d9086cd47993b2ba4525171095e8
2017-02-01 14:43:03 -08:00
Andrzej Hunt
4b2f838bdf Bug 1323105 - Add VectorDrawable pin icon r=sebastian
This icon contains no arc curves, and has been tested to not display
corruption on Android 4 - we'll hopefully not run into any issues with it!

MozReview-Commit-ID: 8ISTp4i5u4O

--HG--
extra : rebase_source : 445bdaea628b9c23ac77cd6611d9438d70fbe69a
2017-02-02 09:27:35 -08:00
Andrzej Hunt
e815355a69 Bug 1330986 - Fix filename typo r=sebastian
MozReview-Commit-ID: 6ZJEl8RAQkd

--HG--
rename : mobile/android/base/resources/drawable/as_dimiss.xml => mobile/android/base/resources/drawable/as_dismiss.xml
extra : rebase_source : 396183d16d5a84a5c58132791d178b9358b1e17d
2017-02-02 10:07:04 -08:00
Andrzej Hunt
1a996c5384 Bug 1330986 - Remove all remaining VectorDrawable arc curves r=sebastian
The support library on Android 4 seems have two unrelated VectorDrawable issues:
 - overzealous proguarding results in drawable corruption (already fixed)
 - arc curves can result in the entire drawable disappearing

This patch fixes the latter issue, by converting all remaining VectorDrawables
(some had already been fixed in a separate bug where arc curves caused corruption
on Android 6).

MozReview-Commit-ID: 2oWRXDnDZ3v

--HG--
extra : rebase_source : bd5413e304360d5ab18b95b2855f65e07a6d8a09
2017-02-02 10:04:45 -08:00
Sebastian Kaspari
1b07c05f82 Bug 1318544 - Fix TestDownloadAction unit test bustage. r=ahunt
The return value of isKnownContent() now depends on whether we exclude this type of content or not.
This patch updates the test to reflect that.

MozReview-Commit-ID: F4KAVdv2l1X

--HG--
extra : rebase_source : 842e9f382bd7db3f3511624dd7b6a3464d114fd6
2017-01-31 20:43:56 +01:00
srivatsav
32dab0d403 Bug 1199752 - Removing all tab mirroring UI code. r=sebastian
MozReview-Commit-ID: GKcqpknJSAD

--HG--
extra : amend_source : cde365c92d4427726b29c80c9ea7619ccc629561
2017-02-02 11:27:28 +05:30
Kris Maglione
a3b337643f Bug 1260548: Follow-up: Add another missing dependency to mochitest.ini. r=me
MozReview-Commit-ID: 4kPs3voZsAm

--HG--
extra : rebase_source : f8494c3a1c255293b8c2fda963d622f864a32015
2017-02-01 23:11:24 -08:00
Kris Maglione
2bba8e4f8e Bug 1260548: Follow-up: Fix skip-if typo that was the real problem. r=me CLOSED TREE
MozReview-Commit-ID: 4K6VYbNxIg9

--HG--
extra : amend_source : 1f47f7a5d8606178091132028d839bfcd41428df
2017-02-01 19:43:50 -08:00
Kris Maglione
2e014c2ab0 Bug 1260548: Follow-up: Fix inadequate skip-if. r=me
MozReview-Commit-ID: AX0oI1yCW6V
2017-02-01 17:58:44 -08:00
Kris Maglione
978544a980 Bug 1260548: Follow-up: Add missing support file to chrome.ini. r=me
MozReview-Commit-ID: 4c0P3I5oZr4

--HG--
extra : rebase_source : 33a652fbf65ccc2c92c8916f2d10b7b19555117a
2017-02-01 17:17:27 -08:00
Wes Kocher
8d4bb91470 Merge m-c to inbound, a=merge
MozReview-Commit-ID: Am6M5iHxmAr
2017-02-01 16:31:23 -08:00
Wes Kocher
f2cb5e7c63 Merge inbound to m-c a=merge
MozReview-Commit-ID: EZrwvZH5DsY
2017-02-01 16:22:11 -08:00
jdarcangelo
19c92ab8c5 Bug 1335200 - [FlyWeb] Crash on Android when calling publishServer(), r=sebastian 2017-02-01 14:52:40 -05:00
Sebastian Hengst
ccd3fc9950 Backed out changeset 99587cc6ef23 (bug 1335536) for failing robocop testFilePicker on Android. r=backout 2017-02-01 19:08:22 +01:00
Andrea Marchesini
3b9eaa7785 Bug 1335536 - File.createFromNsIFile and File.createFromFileName should be async - part 1 - tests, r=smaug 2017-02-01 17:13:08 +01:00
Sebastian Kaspari
2284846401 Bug 1335355 - Switchboard: Ignore empty matchers in experiments configuration. r=ahunt
MozReview-Commit-ID: 10T90TjJlGY

--HG--
extra : rebase_source : 42ad84c79ba87f64d237b80e88bfede91bf5b93a
2017-01-31 14:26:01 +01:00
Andrzej Hunt
f254b7dc1a Bug 1325440 - Use 16:9 keyline for BottomSheet menu r=sebastian
Newer versions of the support library do this automatically, but we need to
roll our own implentation for now.

16:9 keyline means that the top of the menu is placed such that a 16:9 window
of application content is still visible above the menu. This is illustrated in:
https://material.io/guidelines/layout/metrics-keylines.html#metrics-keylines-keylines-spacing
(The menu itself is _not_ 16:9.)

MozReview-Commit-ID: FSUdssb5eBN

--HG--
extra : rebase_source : 735cfb9ce7f78e4247780011c76850560f67d40e
2017-01-31 10:43:04 -08:00
Andrzej Hunt
f912e21d23 Bug 1325096 - Post: only use deprecated setBackgroundDrawable on older platforms r=maliu
This has no benefit right now, but this lets us avoid forgetting to upgrade to the non-deprecated
method once we no longer need to support api 15.

MozReview-Commit-ID: FmRoP5PnGDC

--HG--
extra : rebase_source : 2c5df232fd526f044bd10b3e6cf9920ddb2e4e7b
2017-01-23 15:59:18 -08:00
Andrzej Hunt
956a5a7ffe Bug 1325096 - Wrap FaviconView to workaround ignored margin r=maliu
This seems to be an Android platform bug affecting Android 4.X, which
is visible primarily on tablets (on phones, page titles are often broken
over two lines, which isn't the case on tablets, hence it's easy
to spot if this bug is happening).

MozReview-Commit-ID: AfSw3AJHFqH

--HG--
extra : rebase_source : 125789099f5c7309f2bb049b49341183fa99c3a2
2017-01-23 15:55:46 -08:00
Andrzej Hunt
2e824e81aa Bug 1325096 - Fix menu button padding on select devices r=maliu
On some devices, ImageView appears to lose it's padding when calling
setBackground[Drawable](). We therefore need to save and restore the
padding on those devices.

Known affected devices are various Asus Transformer tablets,
and also the Motorola Droid 4, running various Android 4.X versions.
We therefore make this workaround conditional on Android 4 to minimise
the number of devices where this workaround is used. (Having the conditional
should also make it easy to notice when we can remove the workaround, i.e.
whenever Android 5 becomes the baseline.)

MozReview-Commit-ID: B88gWwEx48x

--HG--
extra : rebase_source : f22fb850c919a25dd14b46e6dec558e8e8998d7b
2017-01-23 15:53:49 -08:00
Kris Maglione
f229e3220d Bug 1260548: Part 9 - Make sure Android mochitests do not leave extra tabs open. r=aswan
MozReview-Commit-ID: 7N3KuVX8kRC

--HG--
extra : rebase_source : b8cb8051887d07e8d278e76260f295b5c59f4076
2017-02-01 13:46:09 -08:00
Kris Maglione
fd255572fb Bug 1260548: Part 7 - Add mochitests for the Android tabs API. r=aswan
MozReview-Commit-ID: DndSw3di4Jw

--HG--
rename : browser/components/extensions/test/browser/context.html => mobile/android/components/extensions/test/mochitest/context.html
rename : browser/components/extensions/test/browser/context_tabs_onUpdated_iframe.html => mobile/android/components/extensions/test/mochitest/context_tabs_onUpdated_iframe.html
rename : browser/components/extensions/test/browser/context_tabs_onUpdated_page.html => mobile/android/components/extensions/test/mochitest/context_tabs_onUpdated_page.html
rename : browser/components/extensions/test/browser/file_bypass_cache.sjs => mobile/android/components/extensions/test/mochitest/file_bypass_cache.sjs
rename : browser/components/extensions/test/browser/file_dummy.html => mobile/android/components/extensions/test/mochitest/file_dummy.html
rename : browser/components/extensions/test/browser/file_iframe_document.html => mobile/android/components/extensions/test/mochitest/file_iframe_document.html
rename : browser/components/extensions/test/browser/file_iframe_document.sjs => mobile/android/components/extensions/test/mochitest/file_iframe_document.sjs
rename : browser/components/extensions/test/browser/browser_ext_tab_runtimeConnect.js => mobile/android/components/extensions/test/mochitest/test_ext_tab_runtimeConnect.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_captureVisibleTab.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_captureVisibleTab.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_create.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_create.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_events.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_events.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript_bad.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript_bad.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript_good.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript_good.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript_no_create.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript_no_create.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript_runAt.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript_runAt.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_getCurrent.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_getCurrent.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_insertCSS.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_insertCSS.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_onUpdated.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_onUpdated.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_reload.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_reload.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_reload_bypass_cache.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_reload_bypass_cache.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_sendMessage.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_sendMessage.html
rename : browser/components/extensions/test/browser/browser_ext_tabs_update_url.js => mobile/android/components/extensions/test/mochitest/test_ext_tabs_update_url.html
extra : rebase_source : 92ca08140c55550c7d4c14b3c08062b4a9635cd9
2017-02-01 15:24:29 -08:00
Kris Maglione
fb7ac8b531 Bug 1260548: Part 6 - Add basic tabs API support for Android. r=aswan
MozReview-Commit-ID: JJgcKp4AZ9S

--HG--
rename : browser/components/extensions/ext-c-tabs.js => mobile/android/components/extensions/ext-c-tabs.js
rename : browser/components/extensions/ext-tabs.js => mobile/android/components/extensions/ext-tabs.js
rename : browser/components/extensions/ext-utils.js => mobile/android/components/extensions/ext-utils.js
rename : browser/components/extensions/schemas/tabs.json => mobile/android/components/extensions/schemas/tabs.json
extra : rebase_source : 8bb2c73556b90db852b6cff09cf9cd6b32e0162f
2017-02-01 15:21:00 -08:00
Jim Chen
f45b77cea8 Bug 1334728 - 1. Add missing argument to dispatch call in HelperApps.jsm; r=sebastian
Add the missing "type" argument to the EventDispatcher.instance.dispatch call.
2017-02-01 17:35:45 -05:00
Jim Chen
62e0b641a7 Bug 1333590 - 7. Add more callback tests to testEventDispatcher; r=snorp
Add more callback tests to testEventDispatcher,

1) Test for checking that the callback for a Gecko thread event,
dispatched from Gecko, is synchronous. We depend on this behavior in
several places where we require a "function call" style event.

2) Test for checking that callbacks accept a variety of data types as
the response object, including the standard types supported by
GeckoBundle, as well as primitive types that are convertible to standard
types.
2017-02-01 17:35:45 -05:00
Jim Chen
c9a4e01072 Bug 1333590 - 6. Remove GeckoEventListener and NativeEventListener; r=snorp r=sebastian
Remove GeckoEventListener and NativeEventListener now that we uniformly
use BundleEventListener. Also remove related classes NativeJSContainer,
NativeJSObject, and GeckoRequest, as well as related tests and C++
code.

The "Messaging" object in Messaging.jsm is replaced with a dummy object
that redirect calls to the global and/or window event dispatcher.
2017-02-01 17:35:45 -05:00
Jim Chen
735fe99d21 Bug 1333590 - 5. Support other primitive types in event callback; r=snorp
Add support for byte, short, float, long, and char types as the response
object for event callbacks.
2017-02-01 17:35:45 -05:00
Jim Chen
168ac1fcb4 Bug 1333590 - 4. Convert remaining Robocop events to bundle events; r=gbrown
Convert the remaining events used in Robocop to bundle events.
2017-02-01 17:35:44 -05:00
Jim Chen
9ad1c54661 Bug 1333590 - 3. Change remaining Messaging calls to EventDispatcher calls; r=sebastian
Convert calls in several places where we still use Messaging.* instead
of EventDispatcher.
2017-02-01 17:35:44 -05:00
Jim Chen
ba693cf082 Bug 1333590 - 2. Convert SearchEngine observers to events; r=sebastian
Convert the "SearchEngine:*" observers to events that go through
GlobalEventDispatcher.
2017-02-01 17:35:44 -05:00
Jim Chen
167d8d6ad2 Bug 1333590 - 1. Convert GeckoRequest usages to events; r=sebastian
Convert places where we use GeckoRequest (to get a callback from JS to
Java) to bundle events that use the built-in callback support.
2017-02-01 17:35:44 -05:00
Krishna
69547a9027 Bug 1318544 - DLC: Only download known content if it is actually excluded from the APK r=sebastian
MozReview-Commit-ID: E3X9u2MkRpX

--HG--
extra : rebase_source : 65b98e87382b5d6cc25ad7eed07d42a9c72dd6e3
2016-12-04 23:17:44 +08:00
Sebastian Kaspari
65cf5887e7 Bug 1334562 - DLC: Start study action from BrowserApp.onCreate() and never in automation. r=ahunt
Previously we started the DLC service from GeckoApplication. The reason for that was that we wanted to
download content like fonts as early as possible so that they are available the next time we display
a website.

However we do not know whether we are running in automation until the BrowserApp activity is launched.
This patch will start the service from BrowserApp.onCreate() now if we are not running in automation.

MozReview-Commit-ID: C3Ob6S3yve4

--HG--
extra : rebase_source : 3dbe64f6cbc0a90149e9c46849d4b68e5674b532
2017-01-30 17:41:38 +01:00
Wes Kocher
e457683b2d Merge m-c to autoland, a=merge
MozReview-Commit-ID: BipzgOEInZh
2017-01-30 15:54:34 -08:00
Wes Kocher
584127af5f Merge inbound to central, a=merge
MozReview-Commit-ID: 4GYZ5Pzy7BY
2017-01-30 15:44:58 -08:00
Benjamin Smedberg
270de3f511 Bug 1333826 - Remove all references to MOZ_AUTOMATION_SDK, r=mshal
MozReview-Commit-ID: CuTK1hn0pVl

--HG--
extra : rebase_source : 4581c71360ccd81505079ee9e068ed2ca0431a6a
2017-01-25 12:30:49 -05:00
Florian Quèze
bdc1ffa608 Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
Phil Ringnalda
5d4072a82c Merge m-i to m-c, a=merge 2017-01-28 13:09:00 -08:00
Wes Kocher
4cf8a40463 Merge m-c to autoland, a=merge
MozReview-Commit-ID: J5UyPvoy89k
2017-01-27 16:39:56 -08:00
Sebastian Kaspari
e13030aa3e Bug 1325264 - Update wording of 'disconnect from sync' dialog. r=Grisha
MozReview-Commit-ID: 1xsc0Q1upf5

--HG--
extra : rebase_source : efdb1d121d0a433aecfd05876ed95efce792469b
2017-01-27 18:11:44 +01:00
jwu
5b02eb2870 Bug 1237956 - Use temporary folder instead of modifying the filename while uploading, r=sebastian
MozReview-Commit-ID: 3MQWkPOIRGB

--HG--
extra : rebase_source : 3f7994ee1124e98139c8d4079129b2262c0524b3
2017-01-25 15:56:23 +08:00
Grigory Kruglov
04becc33ae Bug 1325303 - Adjust A-S telemetry docs to reflect greater use of action_position r=sebastian
MozReview-Commit-ID: IUDMovBjzjg

--HG--
extra : rebase_source : 4f6718e01d50b4e13b28366d26e206f6c65b7d7a
2017-01-27 12:17:31 -08:00
Grigory Kruglov
771195ba7b Bug 1325303 - A-S Telemetry: track position of highlights for menu interactions r=sebastian
MozReview-Commit-ID: GXl5asf2rEq

--HG--
extra : rebase_source : 9aa7ee95ed9fe563e31a276b6c0438faa72e9918
2017-01-26 23:14:08 -08:00
Grigory Kruglov
e14db054b4 Bug 1325303 - A-S Telemetry: track positions of Top Site items for tile and menu interactions r=sebastian
MozReview-Commit-ID: B4XpqpwfjMi

--HG--
extra : rebase_source : 93d70efb5410f8af8f977fa2310f8d0c55d16bd0
2017-01-27 12:13:13 -08:00
Andrew Swan
30deceecf8 Bug 1203330 Part 1 Fix SingletonEventManager r=kmag
This patch adds the ability to run SingletonEventManager handlers in
different modes: sync, async, raw (no exception handling, arg cloning,
or asynchrony), or asyncWithoutClone. When you call the handler,
you're required to specify which variant you want.

Existing uses of SingletonEventManager are all converted to async calls.
Note that some of them were previously synchronous, but it didn't appear
to be necessary.

Also added a callOnClose for SingletonEventManager when the last listener
is removed.

MozReview-Commit-ID: ATHO97dWf3X

--HG--
extra : rebase_source : bf02d79e3fbab84892be8a7e52ea7a1caf2e003d
2017-01-26 20:00:33 -08:00
Phil Ringnalda
9447dfdbd4 Backed out 3 changesets (bug 1203330) for failures in test_delay_update_webextension.js
CLOSED TREE

Backed out changeset 2d42350d209a (bug 1203330)
Backed out changeset 3a12c51c3eca (bug 1203330)
Backed out changeset 31fac390e15d (bug 1203330)
2017-01-26 19:13:11 -08:00
Carsten "Tomcat" Book
dca07ffc3a merge mozilla-central to mozilla-inbound 2017-01-27 11:16:17 +01:00
Florian Quèze
b11907c7aa Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
Florian Quèze
2cf30507bd Bug 1334261 - script-generated patch to remove more newURI null parameters, r=jaws. 2017-01-27 10:51:02 +01:00
Florian Quèze
be4dbae285 Bug 1334199 - script-generated patch to omit getComputedStyle's second argument when it's falsy, r=jaws. 2017-01-27 10:51:02 +01:00
Wes Kocher
8fa84ca644 Merge inbound to central, a=merge
MozReview-Commit-ID: BZgxmhS6OtM
2017-01-26 16:19:05 -08:00
Wes Kocher
7365007b83 Merge autoland to central, a=merge
MozReview-Commit-ID: EnErkgbuNge
2017-01-26 16:08:33 -08:00
Wes Kocher
c3cc3b6407 Backed out 13 changesets (bug 1296767) for xpcshell failures a=backout CLOSED TREE
Backed out changeset 41ed77788333 (bug 1296767)
Backed out changeset 1c0c9289b532 (bug 1296767)
Backed out changeset 50294db1d871 (bug 1296767)
Backed out changeset 26c065f79c54 (bug 1296767)
Backed out changeset 0362a78d6978 (bug 1296767)
Backed out changeset 4e71cf94e4ee (bug 1296767)
Backed out changeset f6f59447d22a (bug 1296767)
Backed out changeset 6c9b792cc296 (bug 1296767)
Backed out changeset 46a52b10a868 (bug 1296767)
Backed out changeset 5d70d87d2a8f (bug 1296767)
Backed out changeset 8219686be6a2 (bug 1296767)
Backed out changeset 0a989b0cea67 (bug 1296767)
Backed out changeset 9f59a0b75c1f (bug 1296767)

MozReview-Commit-ID: 2XBNsd8JrZL

--HG--
extra : amend_source : 1afafaa8127fcebac31ce1d7743dc16872fa0522
2017-01-26 11:16:12 -08:00
Justin Wood
d01d00bce4 Bug 1333921 - Taskcluster Android l10n nightlies broken due to missing API key. r=mshal a=bustage
MozReview-Commit-ID: CxiqFKZZpaz

--HG--
extra : source : ea60d075a998cf5037cd9c31bf5ee8d0719bd816
2017-01-26 09:37:14 -05:00
Phil Ringnalda
39e57631eb Merge m-c to m-i 2017-01-25 20:48:39 -08:00
Eugen Sawin
714ebcecb4 Bug 1323429 - [2.1] Remove the context reference from Clipboard. r=jchen 2017-01-26 15:52:21 +01:00
Jim Chen
caaf58697a Bug 1333589 - 3. Convert SiteIdentityPopup observers to events; r=sebastian
Convert the "Permissions:*" and "Session:Reload" observers to events
that go through GlobalEventDispatcher.
2017-01-25 18:57:32 -05:00
Jim Chen
174b21ef30 Bug 1333589 - 2. Convert SiteIdentityPopup events to bundle events; r=sebastian
Convert the events used in SiteIdentityPopup to bundle events. UI thread
events are used because the listeners perform operations on the UI
thread.
2017-01-25 18:57:31 -05:00
Jim Chen
a8edf60a6c Bug 1333589 - 1. Use GeckoBundle for DoorHanger.OnButtonClickListener; r=sebastian
Convert the onButtonClick method to provide GeckoBundle as the response.
2017-01-25 18:57:31 -05:00
Jim Chen
f6a51590a8 Bug 1333588 - Convert PageActions events to bundle events; r=sebastian
Convert events used in PageActions to bundle events. UI thread events
are used because the listeners require the UI thread. The observer
notifications from Java to Gecko are converted to events as well.
2017-01-25 18:57:31 -05:00
Jim Chen
2e56d7739e Bug 1333586 - Convert AccountsHelper events to bundle events; r=sebastian
Convert events used in AccountsHelper to bundle events. Most events are
kept as Gecko thread events, but a couple events that start activities
are converted to UI thread events.
2017-01-25 18:57:31 -05:00
Jim Chen
a396212751 Bug 1333581 - Convert IntentHelper events to bundle events; r=sebastian
Convert events used in IntentHelper to bundle events. UI thread events
are used for most events because the listeners perform operations on
Intent objects, which is best done on the UI thread. For
"Intent:GetHandlers", use a Gecko thread event because it's possible we
want a synchronous callback response.
2017-01-25 18:57:31 -05:00
Jim Chen
296c0b8b43 Bug 1330439 - 4. Convert home panel observers to events; r=sebastian
Convert nsIObserverService observers used in home panels to events that
go through EventDispatcher.
2017-01-25 18:53:58 -05:00
Jim Chen
dfcdeb5ce1 Bug 1330439 - 3. Convert HomePanelsManager events to bundle events; r=sebastian
Convert events used in HomePanelsManager to bundle events. Background
thread events are used because HomePanelsManager processes panel changes
in the background thread. Changing to background thread events also lets
us make the change queue a simple ArrayList instead of a
ConcurrentLinkedQueue, because there is no longer multiple threads
involved.
2017-01-25 18:53:58 -05:00
Jim Chen
768eb3905e Bug 1330439 - 2. Convert HomeBanner events to bundle events; r=sebastian
Convert the events in HomeBanner to bundle events. "HomeBanner:Shown" is
removed in favor of using a callback.
2017-01-25 18:53:58 -05:00
Jim Chen
6738ee9866 Bug 1330439 - 1. Convert PanelInfoManager events to bundle events; r=sebastian
Convert the "HomePanels:Data" event to a GeckoBundle/BundleEventListener
event. UI thread event is used because the listener invokes the callback
on the UI thread.
2017-01-25 18:53:58 -05:00
Jim Chen
a1a65941ef Bug 1330411 - 2. Convert FindInPageBar events to bundle events; r=sebastian
Convert events used in FindInPageBar to GeckoBundle/BundleEventListener
events. UI thread events are used because the listener performs UI
operations. FindInPageBar also sends some events like "FindInPage:Find"
from Java to Gecko; those events will be converted in another bug.
2017-01-25 18:53:58 -05:00
Jim Chen
59b3ffa09c Bug 1330411 - 1. Convert ActionBarHandler observers to events; r=sebastian
Convert observers in ActionBarHandler.js to events that go through
WindowEventDispatcher. "TextSelection:Get" now replies through the
callback interface rather than a "TextSelection:Data" event. The patch
also adds new lazy-loading events in browser.js to replace the
lazy-loading observers that ActionBarHandler relied on.
2017-01-25 18:53:58 -05:00
Jim Chen
9a9702cab0 Bug 1330409 - Convert CastingApps events to bundle events; r=sebastian
Convert the events used in MediaCastingBar and ChromeCastPlayer to
GeckoBundle/BundleEventListener events. UI thread events are used
because the listener performs operations on the UI thread.
2017-01-25 18:53:57 -05:00
Grigory Kruglov
4f96795b02 Bug 1331091 - Document behaviour of special "experiment" telemetry sessions r=liuche
MozReview-Commit-ID: KKT2maMyDqj

--HG--
extra : rebase_source : 338e6b7cdde9cf61c1e2b7ab74d02d68c512363a
2017-01-25 12:28:41 -08:00
Tooru Fujisawa
ddd36fec56 Bug 1332245 - Move nsScriptError from js/xpconnect to dom/bindings. r=bz
--HG--
rename : js/xpconnect/idl/nsIScriptError.idl => dom/bindings/nsIScriptError.idl
rename : js/xpconnect/src/nsScriptError.cpp => dom/bindings/nsScriptError.cpp
rename : js/xpconnect/src/nsScriptErrorWithStack.cpp => dom/bindings/nsScriptErrorWithStack.cpp
2017-01-28 00:42:47 +09:00
Edouard Oger
0c915a6f46 Bug 1296767 part 1 - Remove J-PAKE from Sync. r=markh
MozReview-Commit-ID: iD4OJv436i

--HG--
extra : rebase_source : 1653284a3b2e014719a7eb37588f99df868e2060
2017-01-10 13:47:24 -05:00
Tomer Cohen
4ea01a8b63 Bug 1335010 - mobile/android/themes/core/config.css uses float: inline-* r=sebastian
MozReview-Commit-ID: A9yYnF5U2f0

--HG--
extra : rebase_source : 3e6bf0cb49bea547d57dde152bc37844b44dfe14
2017-01-30 15:48:38 +02:00
Jan Henning
de6d526e3c Bug 1062859 - Part 1 - Restore scroll position when going back through bookmark folders. r=ahunt
When going down one folder level, we store the current scroll position of the list view and then scroll to the top of the list, so that we always show a child folder starting from the beginning. When navigating back up to its parent, we then restore the previously stored scroll position.

MozReview-Commit-ID: 9C2RMXrlUm1

--HG--
extra : rebase_source : 7ec5a3f1d602db9454efa52603e0f50704c1418d
2017-01-22 22:02:35 +01:00
Jan Henning
9ae155958c Bug 1062859 - Part 0 - Bookmarks panel cleanups. r=ahunt
Fix up javadoc so it matches the actual function parameter and remove unneeded imports.

MozReview-Commit-ID: I91NuqLlpL1

--HG--
extra : rebase_source : 13366049ee9fe1487b3cf24f4e6f610f66bee5ee
2017-01-23 19:23:55 +01:00
Andrzej Hunt
68b1cebd29 Bug 1120441 - Don't try to show tab-history panel if app has been shutdown r=sebastian
Showing the tab history panel involves a gecko call to retrieve tab history. This
can be slow, meaning we have no idea what state the app will be in when the tab
history data is returned. Thus we need to protect the code that shows the tab
history fragment against a number of scenarios to avoid crashes in those cases
where the app might be shutting down:

1. If onSaveInstanceState() has been called (which might happen before or after onPause(),
   and might be linked to app shutdown - but the docs don't appear to give any guarantees),
   fragment transactions cannot be performed. We protect against this by accepting loss
   of state in fragment transactions.
2. If the Activity has been completely destroyed, trying to perform a fragment transaction
   will likewise fail. We protect against this by not even trying to perform the transaction
   if we definitively know that the Activity is being shut down (ie isFinishing()).

In both of these cases, we simply must accept that we're potentially losing UI state: i.e.
a user could request the tab history panel via long-back-press, followed by exiting the app;
we now end up never ever showing the panel. This scenario doesn't seem like a major loss - and
fixing this issue properly would require significant investment (i.e. we would need to either
cache tab history on frontend side, or cache the tab-history panel request - and it's not clear
users will still care about seeing the panel the next time they open firefox).

MozReview-Commit-ID: JsAK1By8yqn

--HG--
extra : rebase_source : 9a3b64d2829a969e4de2775c2714874aa8708031
2017-01-18 22:09:20 +01:00
Jan Henning
db207e8e6c Bug 1333567 - Send the notification expected by the session store when restarting, too. r=sebastian
Since bug 1228593, the mobile session store
- once again flushes its data when we are quitting, to make sure the latest state (including any potential cleaning of history/tabs) is flushed to disk
- ignores windows/tabs closing as a byproduct of shutdown

The latter point is dependent on a new shutdown notification introduced in that bug. Because we forgot to add that notification to the restart code used for add-on updates, in that case the session store currently doesn't enter shutdown mode and therefore records the window being closed during shutdown before flushing its data to disk, which means that all open tabs are lost.

MozReview-Commit-ID: LgtdQoYwacM

--HG--
extra : rebase_source : 1bf6c544d9e25961a0e64236678ca5938e8a69fe
2017-01-25 20:31:30 +01:00
Carsten "Tomcat" Book
65f7bfd24d Merge mozilla-central to autoland 2017-01-30 16:21:32 +01:00
Andrzej Hunt
121fe4fced Bug 1325375 - Make PopupContextMenu visible on Android 4 Asus tablets r=sebastian
MozReview-Commit-ID: 1XSiiyQPAXb

--HG--
extra : rebase_source : 6d04d2642129b6e4e5822bd5580b2ff53145a011
2017-01-24 12:28:57 -08:00
Edouard Oger
2458eff863 Bug 1333494 - Bump Android Sync tab records TTL to 21 days. r=Grisha
MozReview-Commit-ID: DpuIkqPlztd

--HG--
extra : rebase_source : b869f21a78b5de1001d58777e8604faaa05b66d3
2017-01-24 13:25:09 -05:00
Carsten "Tomcat" Book
58b6101373 Merge mozilla-central to autoland 2017-01-26 12:37:41 +01:00
Jan Henning
5812dc3cb2 Bug 1333386 - Use {once: true} for session store window "load" listener. r=sebastian
MozReview-Commit-ID: Kc9ydTUrLy1

--HG--
extra : rebase_source : 5dd77f5bff248c305674ef0f7cfbef53675d0a90
2017-01-25 20:19:14 +01:00
Jan Henning
668da1fdc7 Bug 1333046 - Part 2 - Move zombification function into the tab object. r=ahunt
A tab object should know how to zombify itself instead of having to rely on the MemoryObserver. This also simplifies the situation for anybody else who wants to call this function since it is no longer necessary to figure out how to load the MemoryObserver for this.

MozReview-Commit-ID: 5IX114QUjBT

--HG--
extra : rebase_source : 964186678848b804e5f0550e1b6a328d7fcfbc50
2017-01-19 21:45:03 +01:00
Jan Henning
8464eb0fcf Bug 1333046 - Part 1 - Expose a method to restore delay-loaded tabs via the tab object. r=ahunt
Actors outside of the session store shouldn't have to poke around within the session store's data structure and end up reimplementing parts of the session store code (and cause data loss if the implementation is incomplete) in order to restore delay loaded zombie tabs. Therefore, we simply expose a method for this via BrowserApp's tab object.

To simplify handling and make the method a little more fool-proof for external callers, the check whether the tab is actually zombified is moved into the restoreZombieTab() function.

Later on, we can also hook up this method to the appropriate web extension API (see bug 1322485).

MozReview-Commit-ID: 85lnbCpMcP3

--HG--
extra : rebase_source : a6f1cfa11debcb18471b49804776521c60655fce
2017-01-25 21:33:33 +01:00
Carsten "Tomcat" Book
182312677f merge mozilla-inbound to mozilla-central a=merge 2017-01-25 13:47:25 +01:00
Makoto Kato
812588087b Bug 1332792 - Add mozIntl.xpt to Android package for xpcshell test failure. r=gandalf
With --with-intl-api, xpcshell test for MozIntl is always failure on Android.  So we should add mozIntl.xpt to package.

MozReview-Commit-ID: BWBKSG3gSqr

--HG--
extra : histedit_source : d4091b91221bc2ef282d0855dbf4856adb403c9b
2017-01-25 15:31:15 +09:00
Florian Quèze
0e0865f4fc Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Tomer Cohen
b670b52324 Bug 1298913 - [RTL] RTL the preferences in about:config r=sebastian
MozReview-Commit-ID: 132jVEEFH2W

--HG--
extra : rebase_source : 0bbe5586abdb82b2abb41d0be71ca8debff9e056
2017-01-19 22:52:07 +02:00
Phil Ringnalda
1b60bc19eb Merge m-c to autoland 2017-01-24 18:56:54 -08:00
Phil Ringnalda
bf98cd4315 Merge m-i to m-c, a=merge 2017-01-24 18:53:29 -08:00
Wes Kocher
a65c1b1dfe Merge inbound to central, a=merge
MozReview-Commit-ID: BeGxZAeguBr
2017-01-24 16:08:16 -08:00
Eugen Sawin
e03bb44096 Bug 1333241 - [1.0] Initialize screen orientation on instantiation. r=jchen 2017-01-24 21:47:08 +01:00
James Cheng
a72c2a70e2 Bug 1332981 - [EME][Fennec] Pref on EME API not only for Nightly build. r=cpearce
MozReview-Commit-ID: 77MrnKZRtoN

--HG--
extra : rebase_source : ca59175b50c5b17623f913be36854473bb8d8bed
2017-01-23 12:31:34 +08:00
Wes Kocher
8439919627 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7eiveonzAo4
2017-01-24 16:11:28 -08:00
Phil Ringnalda
9823741350 Merge m-c to m-i 2017-01-23 18:57:15 -08:00
Michael Kaply
506dc7f883 Bug 1107942 - Allow zh-CN distribution to add Quit menu. r=sebastian 2017-01-23 17:43:47 -06:00
Jim Chen
8b160783a8 Bug 1319660 - Fix possible crash when editing contentEditable; r=esawin r=masayuki r=smaug
Bug 1319660 - 1. Don't take shortcut if old replacement ranges don't match; r=esawin

The block at [1] is a shortcut we take when we reconcile Java text
changes with Gecko text changes. However, we only checked that the new
ranges are the same, i.e. that the new Gecko text is the same as the new
Java text. We should also be checking that the old ranges are the same,
i.e. that the replaced Gecko text is the same as the replaced Java text.

[1] https://dxr.mozilla.org/mozilla-central/rev/bbbd2f7539f224a482cc6d2dd10e6a5f31c8baf3/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoEditable.java#1233

Bug 1319660 - 2. Use previous node instead of sibling when adjusting last node; r=masayuki r=smaug

nsContentIterator in pre mode adjusts its last node if the node is a
childless node like <br>. However, right now it's using GetPrevSibling,
which can lead to error in some edge cases such as:

<p></p><div><br></div>

In this case, if the last node is <br> with offset 0, GetPrevSibling
will return <p> because <p> is <br>'s parent's previous sibling, and the
last node will be set to <p>. However, the correct last node in this
case is <div>, because <br> with offset 0 refers to the position to the
left of <br>, which is <div> with offset 0. In this case, PrevNode
returns the correct <div> value, so we should set the last node to the
result of PrevNode.

For the first node, for a childless node in pre mode, GetNextSibling and
NextNode are the same, so there is no bug in this case. Nevertheless,
this patch changes the call to NextNode to be consistent with calling
PrevNode for the last node.

Bug 1319660 - 3. Add test for correctly adjusting last node in content iterator; r=masayuki

Add a test for the previous patch that makes sure querying selected text
in an edge case works correctly.

Bug 1319660 - 4. Add test for start node regression; r=me

Add a new test case for the NextNode() regression. r=me for trivial
test-only patch.

Bug 1319660 - 5. Restore GetNextSibling call for first node of pre-content-iterator; r=smaug

The last patch changed the `GetNextSibling()` call to `NextNode()`
because I assumed they're equivalent in this case. That turned out to
not be the case because we can reach this line even if the node has
children -- the index just has to be after the last child. So this patch
restores the `GetNextSibling` call to restore the correct behavior.

I also added some comment to clarify that we can reach this line due to
one of two conditions: 1) the node has no children; 2) the node has
children but the index is after the last child.

This patch also replaces the `HasChildren()` check when setting
`cChild`.  If the index is after the last child (i.e. index ==
childCount), `GetChildAt()` fails and we erroneously log an assertion
warning, even though the input was valid. The new check handles all
cases whether start node has children or not.
2017-01-23 14:35:04 -05:00
Ralph Giles
6af75bbd06 Bug 1332759 - Update android builders to rust 1.15.0-beta.4. r=rillian
Bump the Android builders to the latest beta release to reduce
the variance when we update Firefox 53 to 1.15.0 stable early
in the Aurora phase.

Android builds were moved to 1.15 early to address a code generation
issue with devices without neon.

Work around an issue with tarball naming in the cargo packages.

MozReview-Commit-ID: KQfkWmXV9hQ

--HG--
extra : rebase_source : 9448e0b948740fc3905ef70c8df316dc7342d52e
2017-01-20 15:18:26 -08:00
Tomer Cohen
3dcaa6b2cd Bug 1332694 - Add chevron-rtl.png to android chrome manifest r=sebastian
MozReview-Commit-ID: 8jtEMtqZWOg

--HG--
extra : rebase_source : 1a2e5c86b9d6df77f9f92131cd8328a56db0003d
2017-01-20 20:24:03 +02:00
Tomer Cohen
a5c096dde5 Bug 1332396 - [about:config] Unable to store non latin-1 characters r=sebastian
MozReview-Commit-ID: 3JBTcHePyl3

--HG--
extra : rebase_source : d7dde5561bcb186020456d4c390d1975ee97d584
2017-01-19 21:07:26 +02:00
Tomer Cohen
a3277b929b Bug 1332471 - about:config on Android is missing a page title r=sebastian
MozReview-Commit-ID: 81jNo9jxNNY

--HG--
extra : rebase_source : 60a71b5604b2aeee1e8f087f93fcaadb6d15ba1a
2017-01-20 00:19:20 +02:00
Jan Henning
7f37054663 Bug 1332863 - Turn on strict mode for mobile session store. r=sebastian
MozReview-Commit-ID: 20KRW4yxPm4

--HG--
extra : rebase_source : 31cda3723011281523468643a5a48da22066fc6f
2017-01-21 19:58:57 +01:00
Makoto Kato
c69d395f8b Bug 1332806 - Check AppConstants.MOZ_ENABLE_PROFILER_SPS to use Profiler object on browser.js. r=sebastian
When turning off SPS profiler by configure option, or we build non-SPS arch build  such as android/aarch64, Tab.prototype.onStateChange already throws the exception because Profiler isn't defined.

So we should check AppConstants.MOZ_ENABLE_PROFILER_SPS to use Profiler object.

MozReview-Commit-ID: A9ISurxiRmc

--HG--
extra : rebase_source : 25103e97cd4827edef33335e3aec9384a6695526
2017-01-21 12:41:22 +09:00
cnevinc
8dde17828f Bug 1333006 - Add localization note explaining that "Open" here is not an action, like a button, but an adjective. r=sebastian
MozReview-Commit-ID: 8y8g8CfpdzJ

--HG--
extra : rebase_source : bc56c27f41277909d5d3016c7e43e7365f735bb6
2017-01-23 16:05:25 +08:00
Jan Henning
7886887a86 Bug 1330422 - Use arrow functions instead of capturing "this" in the session store. r=sebastian
MozReview-Commit-ID: AlLHJipN6kL

--HG--
extra : rebase_source : f279021f013bcfb4e671b9c6d609f342b57faac9
2017-01-12 21:36:01 +01:00
Jan Henning
c90cc004dc Bug 1317079 - Avoid spurious exception when snackbar is dismissed. r=jchen
When a snackbar with a button callback is dismissed, this translates to a rejected promise from sendRequestForResult(). We need to catch this in order to avoid a spurious 'JavaScript Error: "uncaught exception: undefined"' message appearing in the console and possibly causing confusion.

MozReview-Commit-ID: 7hsAOAMTeDP

--HG--
extra : rebase_source : 6c5eb28d2e0dcf39a35b310d1e1c45cfc47f272b
2017-01-21 21:47:08 +01:00
Jan Henning
629cf290d4 Bug 1329330 - Remove old session store code that's no longer needed. r=sebastian
We've been parsing the session store file and doing the initial tab creation on the Java side for a long time now, so the code to open completely new tabs on the session store side instead of using tab stubs is no longer necessary.

Besides, because of bug 1301160 the on-disk session file is now containing tab IDs as well, so this distinction between tabs read directly from the raw session file and those contained in a session string passed over from the Java UI is no longer available.

MozReview-Commit-ID: Hmq0TwClqMQ

--HG--
extra : rebase_source : 1f9ab6da18a7fd0f40a1cb0784082abb2384404f
2017-01-07 22:26:51 +01:00
Nevin Chen
333884f49b Bug 1320900 - Do not show Reader View icon on error pages. r=sebastian
MozReview-Commit-ID: GrQqKqccicf

--HG--
extra : rebase_source : 1cd6b57ad7958f607da17101b9b313f9cd508759
2016-12-30 11:11:09 +08:00
cnevinc
506742c281 Bug 1317632 - If the bookmark to add is a reader mode page, defer db action till it cache completely and save the same url in bookmarks and uriannotations table to avoid URL chagne between two http requests. r=sebastian
MozReview-Commit-ID: 8ZwteTOKe1G

--HG--
extra : rebase_source : 1ca9d9a24d3dca32dd394414ffad88304d06a28c
2017-01-14 12:05:48 +08:00
Nicholas Nethercote
22b6d342d7 Bug 1333296 (part 1) - Rename MOZ_ENABLE_PROFILER_SPS as MOZ_GECKO_PROFILER. r=mstange,glandium.
--HG--
extra : rebase_source : 223f3a17f009645369be503392cc1f0cea7f19a1
2017-01-24 14:15:12 +11:00
Swaroop Rao
7e12d23496 Bug 1328837 - Move 'Switchboard' code into our module/package. Refactored SwitchBoard component to pull it into the app module. r=sebastian
MozReview-Commit-ID: HfypfVFdPwP

--HG--
rename : mobile/android/thirdparty/com/keepsafe/switchboard/AsyncConfigLoader.java => mobile/android/base/java/org/mozilla/gecko/switchboard/AsyncConfigLoader.java
rename : mobile/android/thirdparty/com/keepsafe/switchboard/DeviceUuidFactory.java => mobile/android/base/java/org/mozilla/gecko/switchboard/DeviceUuidFactory.java
rename : mobile/android/thirdparty/com/keepsafe/switchboard/Preferences.java => mobile/android/base/java/org/mozilla/gecko/switchboard/Preferences.java
rename : mobile/android/thirdparty/com/keepsafe/switchboard/Switch.java => mobile/android/base/java/org/mozilla/gecko/switchboard/Switch.java
rename : mobile/android/thirdparty/com/keepsafe/switchboard/SwitchBoard.java => mobile/android/base/java/org/mozilla/gecko/switchboard/SwitchBoard.java
extra : rebase_source : 696e6169c616f7a7540d452b27318c9647f620ee
2017-01-28 16:26:13 -05:00
Andrew Swan
f04f785725 Bug 1203330 Part 1 Fix SingletonEventManager r=kmag
This patch adds the ability to run SingletonEventManager handlers in
different modes: sync, async, raw (no exception handling, arg cloning,
or asynchrony), or asyncWithoutClone. When you call the handler,
you're required to specify which variant you want.

Existing uses of SingletonEventManager are all converted to async calls.
Note that some of them were previously synchronous, but it didn't appear
to be necessary.

Also added a callOnClose for SingletonEventManager when the last listener
is removed.

MozReview-Commit-ID: ATHO97dWf3X

--HG--
extra : rebase_source : 43988ee453e965e1c591b1c64603c22f5a103cff
2017-01-26 13:43:12 -08:00
Jan Henning
5bcabf3166 Bug 1337940 - Part 2 - Make session store form data test work again. r=ahunt
Collecting data for history changes causes an additional session store data update for that tab when navigating back, which needs to be accounted for in this test. Therefore we now also wait for DOMTitleChanged before assuming that the tab has navigated to its intended location.

MozReview-Commit-ID: FDNQednXPWh

--HG--
extra : rebase_source : 2f6a5bbe6a4e77858975dbda9a547ea52de7c442
2017-02-13 22:16:36 +01:00
Jan Henning
36d681723d Bug 1337940 - Part 1 - Capture session store tab data on history listener notifications. r=ahunt
So far we've simply used DOMTitleChanged as a proxy for navigation, since it's the earliest opportunity at which we have all necessary data for a new history entry (session history itself as well as tab URL and *title*) available.

However it turns out that this is not 100 % reliable, since some pages might e.g. implement their navigation in JS using the history API, which won't necessarily trigger any DOMTitleChanged events. In those case we'd fail to update the tab's session history in the session store unless the user eventually navigated to someplace else that actually triggers a title change event again - if the browser was closed before that, we'd fail to properly restore the user's state.

To fix this, we take a similar approach as the desktop session store and collect a tab's history data again when receiving any history change notification for that tab.

Because the OnHistory... notifications are mostly cancellable, the session history hasn't been actually updated yet at the point the history listener is being called. We therefore can't synchronously call onTabLoad() from within our history change notification handler and have to schedule an async timeout instead so as to give the session history a chance to complete updating its state.

MozReview-Commit-ID: LgHer940QwT

--HG--
extra : rebase_source : f5ec320bd21dac91bf1baa162aaabae3ced911e3
2017-02-11 21:07:29 +01:00
John Lin
dfdaf47766 Bug 1333323 - remove nightly flag to enable OOP decoding for all versions. r=snorp
MozReview-Commit-ID: AjOsDiSmuz2

--HG--
extra : rebase_source : 63f7384bbe54077e5bbfd89016be2188856ae1de
2017-01-24 14:28:55 +08:00
James Willcox
8c58183633 Bug 1322029 - Put process name into Android crash reports r=jchen 2017-02-07 21:14:44 -06:00
James Willcox
f37c8b3419 Bug 1322029 - Add log message when running GeckoThread on Android r=jchen 2017-02-07 21:14:44 -06:00
James Willcox
1f13c4c303 Bug 1322029 - Don't allow Fennec to start if 32-bit ABI unsupported r=jchen 2017-02-07 21:14:44 -06:00
Matthew Noorenberghe
d14b1e4ab2 Bug 1330111 - Always attempt to autocomplete on type=password fields upon focus. r=daleharvey
Let password manager handle opening the popup on username fields itself.

MozReview-Commit-ID: FbI6CgsadEd
2017-02-07 11:15:35 +08:00
Carsten "Tomcat" Book
d228eab012 Merge mozilla-central to mozilla-inbound 2017-02-08 11:30:50 +01:00
Andrea Marchesini
8cf1cb8c2f Bug 1335536 - File.createFromNsIFile and File.createFromFileName should be async - part 1 - tests, r=smaug 2017-02-08 10:18:32 +01:00
Carsten "Tomcat" Book
eb91cb7ec4 Merge mozilla-central to autoland 2017-02-22 14:47:47 +01:00
Sean Maltby
40f095b3eb Bug 1317643 - Resolved issue where the avatar icon resets to default. r=maliu
When debug mode is toggled, hardRefresh() is called, removing and adding all preferences. However, profileAvatarTarget wasn't being updated with the new instance of profilePreference. This was resolved by moving the creation of profileAvatarTarget to refresh(), which is called in hardRefresh().

MozReview-Commit-ID: 8raarHbmR23

--HG--
extra : rebase_source : cf0bf90ca67b4e5dd322af25ed16ac43116fafd1
2017-01-21 19:03:02 -05:00
Phil Ringnalda
bcbe2e1fcc Merge m-c to autoland 2017-01-20 19:15:16 -08:00
Dave Townsend
c5f0e2be67 Bug 1331968: Implement the moz: protocol handler to redirect to a fixed website. r=gijs
The protocol handler is intentionally simple. It works for the entering into the
urlbar case but not a lot else. Included some basic tests.

MozReview-Commit-ID: 4FQ1irdt3Nj

--HG--
extra : rebase_source : 30d9fc7ba2c500f268d282e47d291724d9899ba4
2017-01-18 14:10:46 -08:00
Andrzej Hunt
1e0cff53d2 Bug 1311555 - Use filled bookmark star in ActivityStream context menu r=sebastian
Unfortunately tinting the bookmark star is highly complicated due to the tinting
that NavigationView performs (i.e. we'd likely have to disable NavigationView
tinting, and do manual tinting on every icon - alternatively we could hack
the tint-list to use blue for "checked" items, and set the bookmark item
as checked). Since it's unclear if we even want the star to be blue,
we'll leave it grey (but filled) for now.

MozReview-Commit-ID: DekRZJayKIz

--HG--
extra : rebase_source : 1e3443e5f09c60bd0d7295bc35ecc08ca17b3dab
2017-01-18 12:20:50 +01:00
Andrzej Hunt
9bd6a8b199 Bug 1311555 - Pre: remove unused imports r=ahunt
MozReview-Commit-ID: 6Xk7Z01m41A

--HG--
extra : rebase_source : cfe5a302b9795ae5ae15af00452b39ef8d9db737
2017-01-18 12:18:06 +01:00
Andrzej Hunt
e75d6e42c4 Bug 1330986 - Override proguard config to fix VectorDrawable corruption on Android 4 r=sebastian
See https://code.google.com/p/android/issues/detail?id=209558 . On Devices
running Android 4 and below, VectorDrawable's can be corrupted due
to overzealous proguarding. This doesn't appear to have been
fixed in the support library yet, and even if it were fixed we
still wouldn't be able to switch to the most modern support
library without significant work.

MozReview-Commit-ID: 3ByogGygCEd

--HG--
extra : rebase_source : 2adeed63f88ca39a71feec60627fb812b76d3bb4
2017-01-17 12:16:42 +01:00
Nevin Chen
a2bee3f570 Bug 1331431 - Use baseline and FontMetrics instead of textview's center and text size to get the real text height. r=sebastian
MozReview-Commit-ID: 4HJKZP0F0ow

--HG--
extra : rebase_source : ef8a6a8b333733e3e07a23cc6bd0c19fe179d282
2017-01-18 17:59:23 +08:00
Nevin Chen
790b6fa100 Bug 1275662 - Close all tabs and clean up session files when "Open Tabs" is selected in "Clear private data on exit" or "Clear private data" pref. r=JanH,sebastian
MozReview-Commit-ID: GoUQVDIzYbI

--HG--
extra : rebase_source : 13bbf3477a29cf301df72b521a0e02875bb5ef14
2016-12-29 14:22:45 +08:00
Nevin Chen
bcd1e464ce Bug 1275662 - Add "Open tabs" as an item in [Clear Private data on exit] dialog. r=JanH,sebastian
MozReview-Commit-ID: 6KJvCfYTJSZ

--HG--
extra : rebase_source : 7e408b01c632536fac4fd02d3262376293c0e706
2016-12-29 11:44:36 +08:00