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

22268 Коммитов

Автор SHA1 Сообщение Дата
brainbreaker a8343a4b4b Bug 1312686 - Link "default browser" setting to app info screen on Android 7+; r=sebastian
Added support for changing default browser by opening settings screen in API Levels >=24.

MozReview-Commit-ID: 5rxJm6hQQ4A

--HG--
extra : rebase_source : e8fc23bc658e216c04c27e10067c16abf2b0cd5c
2017-02-15 02:27:26 +05:30
Andrzej Hunt 3302ca3ac8 Bug 1335814 - Add topsites page swipe telemetry r=Grisha
MozReview-Commit-ID: EN00Lh2I7V5

--HG--
extra : rebase_source : 84bbbffa312d860fdbfc1bdbef39442951de51a8
2017-02-14 10:42:00 -08:00
Andrzej Hunt 01132453b1 Bug 1325931 - Use compound drawable text centering hack for AS Topsites r=sebastian
MozReview-Commit-ID: 4reNZTHHZNw

--HG--
extra : rebase_source : 77b4a1d49a74dd0ee19ee1610214033e138cc359
2017-02-09 13:27:20 -08:00
Andrzej Hunt 4f70fd93a3 Bug 1325931 - Implement ViewUtil.setCenteredText() for TextViews with compound drawables r=sebastian
Compound drawables shift the point where text is "centered". This hack dynamically adds
equivalent padding on the opposite side from a compound drawable, to force the text
to be centered again. (We can't set this padding under all circumstances, it's unneeded
when the text is longer than the available space, i.e. when we wrap text we might
as well use the full width without fake padding.)

MozReview-Commit-ID: 8WDXCNOs2DX

--HG--
extra : rebase_source : d844e71587a7bd78233d88ea209b157a43004e09
2017-02-09 13:26:43 -08:00
Andrzej Hunt 5b0bb612da Bug 1325931 - Pre: add drawable padding to pin r=sebastian
Text is currently pushed directly against the pin in those cases
where the entire width is filled with text - this spacing
is needed to separate the pin, and text.

MozReview-Commit-ID: HOVH1SgcrLY

--HG--
extra : rebase_source : cfa33274601c419a39622c081c3e19298d5ff44f
2017-02-09 13:24:24 -08:00
Sebastian Hengst 54dd8e6804 Backed out changeset 76f34a9578d2 (bug 1335814) on request of developer. r=backout 2017-02-14 20:28:01 +01:00
Andrzej Hunt e95f7d6ea3 Bug 1335814 - Add topsites page swipe telemetry r=Grisha
MozReview-Commit-ID: EN00Lh2I7V5

--HG--
extra : rebase_source : 038628fad16a25ff8b815c59ec601d6598d56e0c
2017-02-14 10:42:00 -08:00
Jean-Yves Avenard df5f6701cd Bug 1336358: P1. Revert "Bug 1319987: P12. Disable RemoteDataDecoder.". r=jolin
This reverts commit ff9f57defc040b9a41a7b96361b5b286d2acff90

MozReview-Commit-ID: 1ta2wmzwcNo

--HG--
extra : rebase_source : 242a34c1d6ed95dc14dcd3ca0a80fdc5ffcb6b86
2017-02-07 21:31:49 +01:00
Aki Sasaki 6ea7c08a3a bug 1339087 - adjust android merge day configs for tc builds. r=rail
MozReview-Commit-ID: 7l7w2KEUtbe

--HG--
extra : rebase_source : 219e22ccb08e11a2aff944bb0fdf3cb4d3b42636
2017-02-13 13:34:26 -08:00
Jan Henning 927128811e Bug 1269210 - Part 2 - Notify the UI to update the button state on subframe navigation. r=ahunt
Even if we do the rest of our location change processing only for top level location changes, we still need to update the state of the back and forward buttons even on subframe navigation, so they can become enabled/disabled as necessary.

MozReview-Commit-ID: 2wuFZMKtTfj

--HG--
extra : rebase_source : 6085fee3818b0ce610f2ddca3f8be0657f355916
2017-02-11 20:32:32 +01:00
Jan Henning 01929d06f7 Bug 1269210 - Part 1 - Remove unused variables from location change message and Java tab object. r=ahunt
We used to need these for the back button long press history menu, but now we no longer do.

MozReview-Commit-ID: LAZYffLODN3

--HG--
extra : rebase_source : b6c10e3dc785230d247587b1a34c3b819424db9c
2017-02-11 20:13:00 +01:00
Jan Henning cc94d60ffc Bug 1338899 - Part 1 - Use getter/setter for accessing/modifying a tab's parent ID in Gecko. r=sebastian
This should be more foolproof than having to remember to use the dedicated setParentId() function when writing to that variable from outside of the tab constructor.

MozReview-Commit-ID: 1KlXf60VsoF

--HG--
extra : rebase_source : 3ae5234a0113b6077a91e873c7a5e5919b162af3
2017-02-12 15:34:00 +01:00
Jan Henning c298244987 Bug 1338899 - Part 0 - Fix test title. r=sebastian
Fix copy & paste error made when creating the new test file.

MozReview-Commit-ID: F0NbwipkX9P

--HG--
extra : rebase_source : 877c2c867235750972ee7865d52376636b0448f6
2017-02-12 15:25:42 +01:00
Jan Henning 55ecb8b313 Bug 1338893 - Don't use the window on application-foreground if it doesn't yet exist. r=sebastian
During a cold startup, depending how this exactly plays out we might receive an application-foreground notification before the browser window is ready. Since the code to restore the selected tab if it has been left zombified while in background is only relevant if Gecko was already running and backgrounded, we can simply add a null check for the window before accessing it.

MozReview-Commit-ID: Ahp5NAODKRF

--HG--
extra : rebase_source : bede266e13f48fbc2f7efd40bb9277be6d2bd3bf
2017-02-12 15:09:32 +01:00
Jan Henning 287248920a Bug 1337264 - Don't depend on page title changes for updating the displayed URL. r=sebastian
We've been displaying the URL in place of the page title in the toolbar for quite some time now, but still had the old logic in place whereby only title changes would trigger an update of the displayed text. Most of the time this works fine, because
- page navigation usually goes hand in hand with a DOMTitleChanged event, and
- when our loading progress bar stops, we update the displayed text anyway

however a page doing its navigation in-place using some fancy JS logic and the corresponding history APIs etc. can bypass both of these provisions, since it might trigger neither a title change nor a full browser-side page load.

MozReview-Commit-ID: KRrTSmz1xxi

--HG--
extra : rebase_source : ef3c96334ebb44320ffc7f77db0754f78ce0625a
2017-02-11 17:12:48 +01:00
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