Commit Graph

22253 Commits

Author SHA1 Message Date
Phil Ringnalda
ea85356f95 Merge m-c to m-i 2017-02-12 15:33:29 -08:00
Christoph Kerschbaumer
1cc7d653f7 Bug 1338009 - Utils#deserializePrincipal should return NullPrincipal if deserialization fails. r=mikedeboer 2017-02-12 11:50:25 +01:00
Phil Ringnalda
215ca1024e Merge m-i to m-c, a=merge 2017-02-11 17:42:19 -08:00
Kris Maglione
1187110bd9 Bug 1338409: Part 2 - Lazily parse the schema data for each namespace property, as it is needed. r=aswan
MozReview-Commit-ID: FNQJdt6BnjI

--HG--
extra : rebase_source : c7e937b9e487c40d0167b51f949140eb96dc06e1
2017-02-09 18:59:49 -08:00
Phil Ringnalda
6239412998 Merge m-c to autoland 2017-02-11 18:16:26 -08:00
Jan Henning
f9183caf54 Bug 1338088 - Capture the scroll position for DOMTitleChanged events after the initial page load sequence. r=ahunt
onTabLoad() means we've potentially navigated to a new page, in which case any auxiliary tab data we keep around for the currently loaded page only (form input data, scroll position) would be invalidated and shouldn't be preserved.

Since onTabLoad() can however also be triggered if e.g. just the tab title changed (an additional DOMTitleChanged event), we shouldn't throw away the old data without replacing it with the current state, though. We already do this for the form input data - we need to do it for the scroll position as well.

MozReview-Commit-ID: HG7g6L7htDG

--HG--
extra : rebase_source : 1f7aab26002ee71237dd0a48b872298b39ca7f13
2017-02-11 15:36:17 +01:00
Jan Henning
f7fa5a95ae Bug 1336734 - Part 2 - Don't stop the GeckoNetworkManager unless we're really backgrounded. r=sebastian
Launching a new activity within our app triggers both onActivityPause() (the current activity) and onActivityResume() (the new activity) in GeckoApplication. The most prominent example at the moment are probably our preferences - entering/exiting/navigating within them always triggers a pause/resume combo. This means that currently each time this happens, the network manager is stopped only to be immediately restarted.

To prevent this, we now stop the network manager only when Gecko is actually being paused. In order to avoid unmatched start/stop calls, we need to treat the calls to start() similarly and provide an additional code path for the initial call to start() immediately after startup.

Since the BatteryManager is only started and currently never stopped, we can use this for its startup, too, so as to avoid duplicated calls to its start() method.

MozReview-Commit-ID: 6NdScT5cLYL

--HG--
extra : rebase_source : 758a5948e0852bfa29c78d2d364cd5ac88e9103d
2017-02-05 15:47:51 +01:00
Jan Henning
8a305537b1 Bug 1336734 - Part 1 - Have GeckoPreferences properly support GeckoActivityStatus. r=sebastian
Currently, GeckoPreferences always returns "false" for isGeckoActivityOpened(), which means that when we're e.g. opening a new settings screen, GeckoApplication's onActivityPause() code assumes that Firefox is being backgrounded for real, calling GeckoThread.onPause(). This is then immediately followed by a call to onActivityResume() which unpauses Gecko again.

To avoid this, GeckoPreferences needs to properly implement support for GeckoActivityStatus and check the target of outgoing intents along the lines of the implementation in GeckoActivity.

Since checkIfGeckoActivity() is now used outside GeckoActivity as well, we refactor it into our IntentUtils.

MozReview-Commit-ID: UfPNAic5os

--HG--
extra : rebase_source : d8e900140f55f9a363b86064eb1ad8f8ee4c5c48
2017-02-05 15:35:00 +01:00
Wes Kocher
836bb052d3 Backed out 3 changesets (bug 1336734) for android build bustage a=backout
Backed out changeset a7f9815aeec1 (bug 1336734)
Backed out changeset fa9cca3e321c (bug 1336734)
Backed out changeset a2b69382c9ad (bug 1336734)

MozReview-Commit-ID: FMKZ88jlEZ0
2017-02-10 12:52:33 -08:00
Jan Henning
34297373d9 Bug 1336734 - Part 3 - Don't stop the GeckoNetworkManager unless we're really backgrounded. r=sebastian
Launching a new activity within our app triggers both onActivityPause() (the current activity) and onActivityResume() (the new activity) in GeckoApplication. The most prominent example at the moment are probably our preferences - entering/exiting/navigating within them always triggers a pause/resume combo. This means that currently each time this happens, the network manager is stopped only to be immediately restarted.

To prevent this, we now stop the network manager only when Gecko is actually being paused. In order to avoid unmatched start/stop calls, we need to treat the calls to start() similarly and provide an additional code path for the initial call to start() immediately after startup.

Since the BatteryManager is only started and currently never stopped, we can use this for its startup, too, so as to avoid duplicated calls to its start() method.

MozReview-Commit-ID: 6NdScT5cLYL

--HG--
extra : rebase_source : 629d9a252125cfe4db1c30d6fcbe6607ac81ab33
2017-02-05 15:47:51 +01:00
Jan Henning
4fe7cf54b6 Bug 1336734 - Part 2 - Implement GeckoActivityStatus for the FxAccountStatusActivity. r=sebastian
Since we're no longer pausing Gecko when entering this activity, it must implement this interface so we can still properly pause Gecko if we get backgrounded while on the Sync preferences screen.

Most actions here are actually done via the application context (i.e. GeckoApplication), so overriding startActivity et al. and using mGeckoActivityOpened doesn't achieve all that much for most cases, but since we currently at most exit the screen (activity is finishing, so won't trigger a GeckoThread.onPause() call) and stay within our application (open a new tab in Firefox), we're still fine for now.

MozReview-Commit-ID: 3760hXMjckX

--HG--
extra : rebase_source : 026654ca101082140f9fbbc922562f9890daab50
2017-02-06 20:30:20 +01:00
Jan Henning
e2bd26424d Bug 1336734 - Part 1 - Have GeckoPreferences properly support GeckoActivityStatus. r=sebastian
Currently, GeckoPreferences always returns "false" for isGeckoActivityOpened(), which means that when we're e.g. opening a new settings screen, GeckoApplication's onActivityPause() code assumes that Firefox is being backgrounded for real, calling GeckoThread.onPause(). This is then immediately followed by a call to onActivityResume() which unpauses Gecko again.

To avoid this, GeckoPreferences needs to properly implement support for GeckoActivityStatus and check the target of outgoing intents along the lines of the implementation in GeckoActivity.

Since checkIfGeckoActivity() is now used outside GeckoActivity as well, we refactor it into our IntentUtils.

MozReview-Commit-ID: UfPNAic5os

--HG--
extra : rebase_source : 6167836e9a20763724c62aade1d2f0a5e976a890
2017-02-05 15:35:00 +01:00
Ralph Giles
35ff9b03f3 Bug 1338311 - Update builders to rust 1.15.1. r=mshal
Update to the point release. These are repacks of the
upstream builds for 1.15.1 stable with appropriate
libstd builds for each target.

This incorporates the -fPIC fix for linux32 so we can
use upstream builds instead of our patched toolchain.
It also corrects the signature of vec::IntoIter::as_mut_slice
which was incorrect in 1.15.0.

MozReview-Commit-ID: JvEdGPwgS03

--HG--
extra : rebase_source : 9edd9970d8328274311493c2c3c4fffa97b258a9
2017-02-09 14:43:26 -08:00
Tom Klein
eb6efc1e99 Bug 1337897 - RTL the padding between the close button and title in tab grid layouts. r=sebastian
There's apparently a bug which causes *both* paddingRight and paddingEnd to be
applied (in my case on an API 23 emulator); the workaround, in this case, is to
also specify paddingLeft and paddingStart (with values "0dp").

MozReview-Commit-ID: 98hm1GcSPxi

--HG--
extra : rebase_source : 90b63521b410836615134eb7310ac0c2fb15081b
2017-02-08 16:50:22 -06:00
Julian_Chu
ea2e6be7cb Bug 1337771 - Let ActionButton works in some apps r=sebastian
If the intent from 3rd-party app doesn't have data url, directly call
PendingIntent.send() will perform nothing. To use current url as
polyfill to fix it.

MozReview-Commit-ID: IIP7hGd1cBH

--HG--
extra : rebase_source : 14010c9f0b566e1320598a2edc0a6538d9c6150e
2017-02-10 15:47:56 +08:00
Nevin Chen
6c1328a7f4 Bug 1319366 - When fullscreen, defer new tab selection until exiting fullscreen completed. r=jchen,sebastian
MozReview-Commit-ID: 2vAkpp7M7Cv

--HG--
extra : rebase_source : f6444974a190e8f0992bb7af6446739c14821a11
2017-02-03 18:00:27 +08:00
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