Commit Graph

25270 Commits

Author SHA1 Message Date
Jan Henning
eb55129af7 Bug 1423566 - Hide tabs tray when receiving an Assist App intent. r=nechen
We're still somewhat undecided on how to exactly handle external intents
arriving while the tabs tray is open, however in the case of Assist App intents
- opening a new tab in editing mode while the tabs tray remains open causes some
  weird behaviour (the keyboard appears in front of the tabs tray and no matter
  which tab is selected on the tabs tray, you first enter editing mode and then
  always end up in the tab opened by the Assist App intent)
- the goal of our Assist App intent handling is to allow the user to enter a
  search query or an address into the URL bar

hence we should hide the tabs tray (if open) when handling such an intent.

MozReview-Commit-ID: GpwrscdNjZP

--HG--
extra : rebase_source : 5275a8323a0ca5bcebdc6fe2148a8de4b87a7651
2018-01-05 17:33:06 +01:00
Andreea Pavel
51d4c2d9ce Merge inbound to mozilla-central r=merge a=merge 2018-01-06 11:50:13 +02:00
Sebastian Hengst
6c6df154cd merge mozilla-central to mozilla-inbound. r=merge a=merge 2018-01-06 01:56:19 +02:00
Florian Quèze
e44246d6d2 Bug 1428401 - Remove obsolete getPref helpers, r=Gijs. 2018-01-06 00:25:51 +01:00
Grigory Kruglov
1d7eabd8d8 Bug 1428165 - Part 2: fix history expiration query r=nalexander
'modified' value might be missing; in SQLite, max(123, null) is null, and so we must
coalesce fields which might be missing values.

MozReview-Commit-ID: Bn1P0kdaHHT

--HG--
extra : rebase_source : 9f54208c3dd0de8cf602f0e34376e1ac0a511017
2018-01-04 23:15:42 -05:00
Grigory Kruglov
86a3dcb890 Bug 1428165 - Part 1: ensure that 'modified' and 'created' timestamps are set when inserting history from sync r=nalexander
This fixes a regression introduced in Bug 1291821. History records would be bulk-inserted from sync, and our ContentProvider
would erroneously forget to set these two timestamp fields.

MozReview-Commit-ID: 2k0afijN62H

--HG--
extra : rebase_source : 143fbcbad3b7a822650c1e132f5ae809c4399ab8
2018-01-05 21:15:55 -05:00
Michael Kaply
35c807f11b Bug 1428188 - Add Yandex for Russian users of English Firefox. r=flod
MozReview-Commit-ID: 6EfYyqli0jZ

--HG--
extra : rebase_source : 536754c5296d9e6a2dd0481661f137247eec0ea1
2018-01-04 16:19:54 -06:00
Nevin Chen
28e886417a Bug 1423185 - Update document for the event when user finish first run on-boarding. r=liuche
Data review request comment:

1. What questions will you answer with this data?
   We want to know when the user exit on-boarding. So we can start to A/B testing on other contextual hints. We don't want to overlap them.

2. Why does Mozilla need to answer these questions? Are there benefits for users?
   We need this information to know if users had done on-boarding

3. What alternative methods did you consider to answer these questions? Why were they not sufficient?
  I can't think of any.

4. Can current instrumentation answer these questions?
   No

5. List all proposed measurements and indicate the category of data collection for each measurement, using the Firefox data collection categories on the found on the Mozilla wiki.
   I can't find one for Android

6. How long will this data be collected? Choose one of the following:
   We want to permanently monitor this data. (Joe Cheng)

5. What populations will you measure?
   All Fennec users

6. Which release channels?
   All channels

7.Which countries?
   All countries

8. Which locales?
   All locales

9. Any other filters? Please describe in detail below.
   No

10.Please provide a general description of how you will analyze this data.
   We'd like to use Leanplum to cross-reference those events

11.Where do you intend to share the results of your analysis?
   We'll use it internally

MozReview-Commit-ID: 2s7Hnc97dhp

--HG--
extra : rebase_source : 81736b5222490347fbc275fc8c8c06a4a2ee19c5
2017-12-05 21:27:57 +08:00
J. Ryan Stinnett
4c9e80f00f Bug 1417978 - Stop packaging layout debugger on Android. r=nalexander
The layout debugger UI is only accessible on desktop platforms, so there's no
need to include it for Android builds.

MozReview-Commit-ID: 8PTDwExU5xz

--HG--
extra : rebase_source : 0cf22b85afd0b036a4899761eca3248ba3ffafbe
2018-01-04 15:22:35 -06:00
Michael Kaply
d45b324046 Bug 1428185 - regionOverrides handles US/CA for en-US. r=florian
MozReview-Commit-ID: KqulWZ84TgS

--HG--
extra : rebase_source : 64a936b72cd026999155a5c864062174383f5de4
2018-01-04 16:07:33 -06:00
Jan Henning
cfe25c27c6 Bug 1428128 - Store omni.ja uncompressed when packaging via Gradle. r=nalexander
- We already do this when packaging conventionally via ./mach package
- The omnijar is itself already a compressed archive, so no need to compress it
  again
- Gecko (especially the GeckoJarReader) expects the file to be STORED within the
  APK, doing otherwise may cause read access to the omnijar to fail

MozReview-Commit-ID: GcpeAehLe5h

--HG--
extra : rebase_source : b0c2562dc39f00541a9f3da308779c7ffe9fe584
2018-01-04 19:48:43 +01:00
Jan Henning
a9c822e409 Bug 1352133 - Handle selected tab not yet existing when exiting BrowserSearch. r=nechen
Early during startup there might not be a selected tab yet, so we can't use its
data to decide which home panel to show again.

Fortunately showHomePager can be called with a null panelId, in which case it
will eventually simply fall back to using the default home panel from our
settings.

MozReview-Commit-ID: GbmozJeYZVb

--HG--
extra : rebase_source : 0ed294b6820faa1934105c2719460dd7bef1a852
2017-12-28 15:29:24 +01:00
Jan Henning
1f2c9d7c76 Bug 1414309 - Tell ToolbarEditLayout's title background about private mode changes. r=nechen
The background is enabled when using a theme to increase readability of the URL,
but disabled in private mode, because we don't show the theme while in private
mode.

However for the latter feature to work, the respective layout needs to be told
about the private mode state of the toolbar in the first place. We did this
for the ToolbarDisplayLayout, but had forgotten the ToolbarEditLayout.

MozReview-Commit-ID: 3GAesHvwDEX

--HG--
extra : rebase_source : 753be3bcbdbe7fef05fddfcb77e7b69926e6fbef
2017-12-22 19:46:20 +01:00
Margareta Eliza Balazs
c06fd8b9d6 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2018-01-04 10:07:11 +02:00
Grigory Kruglov
656416871a Bug 1426305 - Migrate FxA state machine to store only derived keys, not kB itself r=nalexander
MozReview-Commit-ID: 8npk7bTAYDA

--HG--
extra : rebase_source : 4564b7fa9837ccb8e2e9c99f706a4fa4cc95faa0
2018-01-03 16:08:06 -05:00
Gijs Kruitbosch
a8bb5924c6 Bug 1425356 - remove XUL template support, r=bz
MozReview-Commit-ID: HdBoQ15DFOu

--HG--
rename : dom/xul/templates/nsIXULSortService.idl => dom/xul/nsIXULSortService.idl
rename : dom/xul/templates/nsXULContentUtils.cpp => dom/xul/nsXULContentUtils.cpp
rename : dom/xul/templates/nsXULContentUtils.h => dom/xul/nsXULContentUtils.h
rename : dom/xul/templates/nsXULSortService.cpp => dom/xul/nsXULSortService.cpp
rename : dom/xul/templates/nsXULSortService.h => dom/xul/nsXULSortService.h
extra : rebase_source : e3f3504c529e7bd9aa52aecf34b94bb5b0ff92b4
2017-12-19 14:11:06 +00:00
Ryan VanderMeulen
be0c88278f Bug 1426943 - Add a comment to mobile-l10n.js so it doesn't generate a clashing hash during packaging. r=nalexander 2018-01-03 16:29:38 -05:00
Mike Hommey
a478a3435e Bug 1427155 - Don't set STRIP_FLAGS from in-tree mozconfigs. r=gps
The reason it was set from mozconfigs is that profiling require it. But
since it was added, bug 751355 made it implied by --enable-profiling,
and bug 1144842 further made sure that profiling and STRIP_FLAGS were
tied together.

--HG--
extra : rebase_source : c2a6b03bf007e661db48e40cca98e81aaa04c878
2017-12-27 15:44:12 +09:00
Jan Henning
558586f7ec Bug 1427285 - Fix typo in build.gradle to correctly reflect crash reporter state in BuildConfig. r=JanH
MozReview-Commit-ID: DSypUp5s5O9

--HG--
extra : rebase_source : fffa4ece34bad5570586eba0d27a475019eab669
2017-12-28 17:15:05 +01:00
Jan Henning
dcb579af66 Bug 1426864 - Determine private mode via browser toolbar, 2nd edition. r=nechen
Similar to maybeSwitchToTab in bug 1426613, a search might be launched while we
don't have a selected tab yet. Therefore we determine private mode state via the
browser toolbar instead.

MozReview-Commit-ID: 4idUR8v7MCx

--HG--
extra : rebase_source : 7104ffbb752b6c0d499b85c47910168391291797
2017-12-22 18:51:11 +01:00
Jan Henning
712f90afb9 Bug 1426613 - Determine private mode via browser toolbar. r=nechen
The currently selected tab might not actually exist immediately after startup,
in which case the browser toolbar is a safer bet for determining whether we're
in private mode or not.

I think the current worst case is when we're
- not restoring a previous session, and
- need to open some tab queue tabs, and
- also need to open some other tab in response to our launch intent

in which case we won't have a selected tab in Java until after Gecko is up and
running. This in turn can take a while, especially when a fresh copy of
libxul.so needs to be extracted after an update/installation/cleared cache/...,
which potentially gives the user ample time to click on a search result/Top
Sites entry/... that then triggers this crash.

MozReview-Commit-ID: FlJZw2aL8OM

--HG--
extra : rebase_source : 41f6bb1e83d4f47c1ba04f8ce919753a14dfd9c6
2017-12-22 18:23:03 +01:00
Mark Banner
e70f340ca0 Bug 1425052 - Enable ESLint rule no-undef for as much of mobile/android as possible. r=nechen
MozReview-Commit-ID: IKqMxBgsKqt

--HG--
extra : rebase_source : 34d54abea5bf2fdf7736fe6ce0e7dbb6f93f5781
2017-12-13 10:14:37 -06:00
Mark Banner
f53d814657 Bug 1424864. Fix some minor issues raised by ESLint when enabling no-undef on mobile/android. r=nechen
MozReview-Commit-ID: Bd052TWrbBv

--HG--
extra : rebase_source : bbce9203a7e717ca2b87af73b008b6a426e2c642
2017-12-11 19:34:05 +00:00
Jan Henning
130aace3dc Bug 1424523 - Lazify Sanitizer.jsm's imports. r=nechen
Even though the Sanitizer itself will be lazy-loaded, most imports are only
required for specific data categories. Therefore for users who aren't clearing
all data at once, lazy-loading can still be beneficial.

MozReview-Commit-ID: CLM1BN0XeJj

--HG--
extra : rebase_source : 346124db74eeb1a5dc4cb8c2c6aefcb290b1caf2
2017-12-09 20:23:56 +01:00
Andreea Pavel
78bc55ae1f Merge inbound to mozilla-centra r=merge a=merge 2017-12-22 11:54:07 +02:00
Mike Hommey
21011a977a Bug 1426555 - Use mozconfig.no-compile in non-compiling android jobs. r=chmanchester
Instead of manually unsetting a few variables and adding
--disable-compile-environment, we can rely on the mozconfig that does
all that.

--HG--
extra : rebase_source : 47e0b63d08b98f258344648f1aa002b3da50646b
2017-12-21 09:54:20 +09:00
Jim Chen
e8c53dde84 Bug 1425038 - Fix aCheckMsg typo in GeckoViewPrompt; r=me
Fix the aCheckMsg/aCheckLabel name mismatch in GeckoViewPrompt; r=me for
trivial patch.
2017-12-20 16:10:34 -05:00
Jim Chen
69413f980c Bug 1425033 - Fix frame handling in FormAssistant; r=me
Remove the invalid `content` reference when traversing the frame tree;
Checking for `frameElement` should be enough. r=me for trivial patch.
2017-12-20 16:10:34 -05:00
Jim Chen
52370a906b Bug 1425262 - 3. Follow-up to fix wrong comment; r=me
Fix comment referencing support for transformation matrix.
2017-12-20 12:14:01 -05:00
Bevis Tseng
f0a31f1b23 Bug 1415793 - Check the removal of a tab until next tick. r=rpl
--HG--
extra : rebase_source : 2a4937ec1816cdd943c6d15de2b34a73e8890693
2017-12-20 16:46:24 +08:00
Nick Alexander
93938b5b2b Bug 1413240 - Build webext langpack for mobile/android. r=gandalf
This cargo cults a few things from browser/ and works when following
the instructions from
https://bugzilla.mozilla.org/show_bug.cgi?id=1413240#c0.

MozReview-Commit-ID: ciA7nfc8BR

--HG--
extra : rebase_source : 30edde6d670dd9a081a691959d298066895ab335
2017-12-15 12:19:15 -08:00
Jim Chen
7a04621843 Bug 1425262 - 2. Use new GeckoDisplay from GeckoView; r=rbarker
Use the new GeckoDisplay class and acquireDisplay/releaseDisplay calls
from GeckoView.

MozReview-Commit-ID: 7Y9VYrZCdvQ

--HG--
extra : rebase_source : 8cb4144d49d74846613feacb7e1be9772b3c62c0
2017-12-19 17:17:38 -05:00
Jim Chen
320c4d7d7b Bug 1425262 - 1. Implement GeckoDisplay as a class managed by GeckoSession; r=rbarker
Implement GeckoDisplay as a class managed by GeckoSession and used by
GeckoSession clients. Also add `acquireDisplay` and `releaseDisplay`
methods to manage the GeckoDisplay instance.

MozReview-Commit-ID: 6yTdXmx4yIO

--HG--
extra : rebase_source : 05c6a80ada847e7effa1cf938476e999439ff3d0
2017-12-19 17:17:37 -05:00
Jim Chen
8a3fd41d0a Bug 1425553 - Only process input calls when Gecko is ready; r=esawin
Track the Gecko ready state in TextInputController through
GeckoSession's NativeQueue, and only pass through input calls when Gecko
is ready.

MozReview-Commit-ID: KugQ6whg2QA

--HG--
extra : rebase_source : 6ea266d9746d22c58cdd21c7122fa7f20ec730fc
2017-12-19 17:02:46 -05:00
Dorel Luca
8d7dc32e0f Merge mozilla-inbound to mozilla-central r=merge a=merge
--HG--
extra : amend_source : ab6e52d7abe431d1530dac3f5b0b09f7a8c18d62
2017-12-19 12:08:53 +02:00
Gurzau Raul
eec5c4c1a9 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-12-19 00:01:37 +02:00
Mark Banner
e3391599af Bug 1425003 - Fix GeckoViewNavigation.jsm referencing undefined URIFIxup - switch to Services.uriFixup. r=snorp
MozReview-Commit-ID: IKs6HBQwLAU

--HG--
extra : rebase_source : 10c1d4b44f19ba69d5e4ab65501b23a021480705
2017-12-13 09:02:36 -06:00
Dylan Roeh
3bc4b07b8e Bug 1422902 - Handle exceptions from WebAppManifest code rather than crashing. r=snorp 2017-12-08 15:53:30 -06:00
Gijs Kruitbosch
ffc0ed12d2 Bug 1425363 - remove onWindowTitleChanged given that nobody uses it, r=bgrins
MozReview-Commit-ID: ALslAwZo4K9

--HG--
extra : rebase_source : ca1add0015eea86128c0c5f209252ebb6a228998
2017-12-14 21:55:44 -06:00
Gijs Kruitbosch
400701814b Bug 1425363 - remove the windowds XPCOM component, r=spohl
MozReview-Commit-ID: qKiQCuDiMq

--HG--
extra : rebase_source : da492d14b23f749690d7747d8445d81fccb99012
2017-12-14 21:39:16 -06:00
Zibi Braniecki
c18a5d5ba2 Bug 1425689 - Move search-plugin resource entry to fennec's chrome jar.mn. r=nalexander
MozReview-Commit-ID: F9cFX7vtXMB

--HG--
extra : rebase_source : 250ac7bd5aa15f7a874f8a827e0d9679a53b735e
2017-12-16 13:24:59 -06:00
Nevin Chen
903f8af32b Bug 1424179 - Hide PWA badge when site identity updates to mix content. r=walkingice
https://m.aliexpress.com is a good target to test. But it sometimes show mixed content, sometimes not.
I also chnage the check when adding a PWA shortcut. Only fail fast in nightly and local build.

MozReview-Commit-ID: 4sLoNERIYuW

--HG--
extra : rebase_source : 18663f8aafa5029afa1dd443cb9029ad3dd44abd
2017-12-08 15:07:42 +08:00
John Lin
81b9b2832c Bug 1422263 - turn on fullscreen video orientation lock for all channels. r=jwwang
MozReview-Commit-ID: EGCx0AdH4Yy

--HG--
extra : rebase_source : 7019a1d697dc64663f76e0280e4b0f88f5b4a7f6
2017-12-13 09:07:28 -06:00
Narcis Beleuzu
88be244907 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-12-15 03:47:38 +02:00
Nathan Froyd
cd85ab8af7 Bug 1422734 - move --enable-small-chunk-size to moz.configure; r=chmanchester 2017-12-03 13:44:55 -05:00
Jim Chen
af3a18ee62 Bug 1416918 - 4b. Move GeckoEditable{Client,Listener} to TextInputController; r=esawin
Move GeckoEditableClient and GeckoEditableListener to inside
TextInputController, next to TextInputController.Delegate. This
consolidates the three internal interfaces used for IME in one place.

The patch also changes the last notifyIMEContext parameter to an int
flag to indicate private browsing or user action. This allows for future
expansion without adding more parameters to notifyIMEContext.

MozReview-Commit-ID: BjscdNr9TkO

--HG--
extra : rebase_source : 87166a55e5978eda4a7c3065db9b68658e33af35
2017-12-13 22:57:21 -05:00
Jim Chen
9db87f4a1c Bug 1416918 - 4. Remove unused code; r=esawin
Remove InputConnectionListener, which was replaced by
TextInputController.Delegate, and remove IME_STATE_PLUGIN, which is not
used anymore.

MozReview-Commit-ID: GCbJXWNCmTk

--HG--
extra : rebase_source : c90bc79585ce4c5b9c0de5e07b0ea52531b65e04
2017-12-13 22:57:21 -05:00
Jim Chen
96ffac273d Bug 1416918 - 3. Use TextInputController in GeckoView; r=esawin
Use the new TextInputController API in GeckoView to process key events
and input method interactions.

MozReview-Commit-ID: H0oyCDkGHul

--HG--
extra : rebase_source : a0ab70e77aa05b7d3aa05982c47299a0222f3ee5
2017-12-13 22:57:21 -05:00
Jim Chen
9ba6dc8991 Bug 1416918 - 2. Make GeckoEditable/GeckoInputConnection work with TextInputController; r=esawin
Let GeckoEditable be created and managed by TextInputController, instead
of being managed by native code. Let GeckoInputConnection also be
managed by TextInputController, instead of being managed by
GeckoEditable. Getting rid of native calls in GeckoEditable makes it
easier to separate native code into a separate process down the road.

MozReview-Commit-ID: HQI3qcAzOvT

--HG--
extra : rebase_source : 83ad25bab663b6652cfeecdf10bbf8e0b28dadfa
2017-12-13 22:57:21 -05:00
Jim Chen
6075204d7c Bug 1416918 - 1. Add TextInputController; r=esawin
Add TextInputController and add a getter for it in GeckoSession.
TextInputController is used to process key events and to interact with
the input method manager.

MozReview-Commit-ID: 1j2Moqukf8U

--HG--
extra : rebase_source : 03fee51ba3e2034b8689c4fa6fe58f7432dc1ad4
2017-12-13 22:57:21 -05:00