Commit Graph

24127 Commits

Author SHA1 Message Date
Emily Toop
3fd2272331 Bug 1546851 - Ensure that the context menu is closed when performing a paste. r=geckoview-reviewers,droeh
This issue was caused by the updating of the caret position after the paste occurs firing an `updateposition` event resulting in an `GeckoView:ShowSelectionAction` message to reposition context menu without any attempt to close the context menu. The solution is to hide the context menu before the repositioning of the caret occurs such that the `updateposition` event doesn't trigger a redisplay.

I tried several versions of this trying to trigger the menu close from inside `GeckoViewSelectionActionDelegate`, including making the call to `docShell.doCommand("cmd_paste");` asynchronous and firing `ACTION_HIDE` before firing `ACTION_PASTE`, but the result is always the same - one of the events is processed before the other and so the second event is rejected as a stale response.

Therefore we are firing the `pagehide` from inside the code that performs the paste. This has to be done before the paste occurs otherwise the `updateposition` event is fired before the page hide event and the context menu redisplays before being hidden.

Differential Revision: https://phabricator.services.mozilla.com/D29665

--HG--
extra : moz-landing-system : lando
2019-05-02 15:06:58 +00:00
Narcis Beleuzu
762dbd77f4 Backed out changeset 0727a51d7ae1 (bug 1547929) as requested by petru. CLOSED TREE 2019-05-02 13:46:56 +03:00
diana.iacos
3af8effac4 Bug 1547929 - [Tablet] Make default browser option not displayed on top of the Settings Menu; r=VladBaicu
Differential Revision: https://phabricator.services.mozilla.com/D29636

--HG--
extra : moz-landing-system : lando
2019-05-02 09:16:05 +00:00
Noemi Erli
54a0234766 Backed out 6 changesets (bug 1540573) for failures in test_CSP.html
Backed out changeset 599e6e06599d (bug 1540573)
Backed out changeset bf725b7daa5b (bug 1540573)
Backed out changeset 814c94b26028 (bug 1540573)
Backed out changeset 3496ca48f6e0 (bug 1540573)
Backed out changeset 2c4303b175ec (bug 1540573)
Backed out changeset b49cd2b191ae (bug 1540573)
2019-05-02 06:41:33 +03:00
Cosmin Sabou
a884fb99d8 Backed out 4 changesets (bug 1320404) for xperf failures on permissions.sqlite-journal.
Backed out changeset fbacf18b6532 (bug 1320404)
Backed out changeset fed7c475d75c (bug 1320404)
Backed out changeset 557b586f774a (bug 1320404)
Backed out changeset 5a20b5f43280 (bug 1320404)
2019-05-02 04:51:18 +03:00
Chris Pearce
ce390c7a4f Bug 1540573 - P6. Use frugal preloading of media data when on cellular, otherwise aggressive. r=jya
We're allowed to take some liberties as to what the default value and behaviour
we assume for the 'preload' attribute on HTMLMediaElement by the spec. On
desktop we assumed preload="metadata", while on mobile we assumed the default
of preload="none" to save data. On mobile we also assumed that preload="auto"
meant preload="metadata".

I think it makes sense to instead of always assuming that data on Android is
always expensive, we can instead detect if we're running on a cellular connection,
and preload frugally then, otherwise aggressively.

Differential Revision: https://phabricator.services.mozilla.com/D26235

--HG--
extra : moz-landing-system : lando
2019-05-01 23:48:21 +00:00
Chris Pearce
4c240bf871 Bug 1540573 - P5. Only "always throttle" media download to the readahead on cellular connections. r=jya
Normally when downloading media data we throttle the download only if we're
ahead of the read cursor more than the "readahead limit", and if we estimate
that the connection is fast enough that we'll be able to download at a rate
fast enough to playback in real time if we resume it later.

On mobile we additionally override this so that we always throttle the download
once we're ahead of the read cursor by the readahead limit. This is to save
data.  I think we can relax this to only do this override if we're on a
cellular connection; if we're on WiFi we can assume data is cheap.

Differential Revision: https://phabricator.services.mozilla.com/D26234

--HG--
extra : moz-landing-system : lando
2019-05-01 23:48:17 +00:00
Chris Pearce
6d77c96a1d Bug 1540573 - P2. Have GeckoRuntime listen for network link changes when in the foreground. r=snorp
This allows Gecko to react to network link/status changes events as needed.

Differential Revision: https://phabricator.services.mozilla.com/D28942

--HG--
extra : moz-landing-system : lando
2019-05-01 23:45:53 +00:00
Eugen Sawin ext:(%2C%20Chris%20Pearce%20%3Ccpearce%40mozilla.com%3E)
03a2295044 Bug 1540573 - P1. Observe ProcessLifecycle events in GeckoRuntime. r=snorp
This is esawin's patch from Bug 1544076; D28083.

Differential Revision: https://phabricator.services.mozilla.com/D28941

--HG--
extra : moz-landing-system : lando
2019-05-01 23:45:33 +00:00
Andrea Marchesini
36718d66c8 Bug 1320404 - Remove appId from origin attributes - part 2 - NO_APP_ID UNKNOWN_APP_ID, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29354

--HG--
extra : moz-landing-system : lando
2019-05-01 23:21:54 +00:00
Ryan VanderMeulen
5e8e050d6a Bug 1547710 - Add FENNEC_NIGHTLY define to Fennec nightly builds. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D29203

--HG--
extra : moz-landing-system : lando
2019-05-01 18:37:29 +00:00
Kartikaya Gupta
dc2d079829 Bug 1544517 - On GeckoView default to treating mouse inputs as mouse. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D29484

--HG--
extra : moz-landing-system : lando
2019-05-01 14:53:01 +00:00
Sylvestre Ledru
e226046cb8 Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
# ignore-this-changeset

Depends on D28954

Differential Revision: https://phabricator.services.mozilla.com/D28956

--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Kartikaya Gupta
6487cabf8b Bug 1544517 - Add a pref that controls conversion of mouse events to touch events. r=geckoview-reviewers,rbarker
For TV devices, it is useful to have mouse events automatically
interpreted as touch events. On other devices, such as more desktop-like
Android devices, we want to treat mouse events as mouse events. This patch
makes this behaviour controllable by a pref, but keeps the existing default
behaviour of treating mouse events as touch events.

Differential Revision: https://phabricator.services.mozilla.com/D29188

--HG--
extra : moz-landing-system : lando
2019-04-30 15:28:21 +00:00
Johan Lorenzo
3bab3c3966 Bug 1546320 - Create mozconfigs for Fennec beta builds r=RyanVM
Create mozconfigs for Fennec beta builds.
This also prevents mergeday scripts from modifying nightly mozconfigs on beta

Differential Revision: https://phabricator.services.mozilla.com/D29350

--HG--
rename : mobile/android/config/mozconfigs/android-aarch64/nightly => mobile/android/config/mozconfigs/android-aarch64/beta
rename : mobile/android/config/mozconfigs/android-aarch64/debug => mobile/android/config/mozconfigs/android-aarch64/debug-beta
rename : mobile/android/config/mozconfigs/android-api-16/nightly => mobile/android/config/mozconfigs/android-api-16/beta
rename : mobile/android/config/mozconfigs/android-api-16/debug => mobile/android/config/mozconfigs/android-api-16/debug-beta
rename : mobile/android/config/mozconfigs/android-x86/nightly => mobile/android/config/mozconfigs/android-x86/beta
rename : mobile/android/config/mozconfigs/android-x86/debug => mobile/android/config/mozconfigs/android-x86/debug-beta
rename : mobile/android/config/mozconfigs/android-x86_64/nightly => mobile/android/config/mozconfigs/android-x86_64/beta
rename : mobile/android/config/mozconfigs/android-x86_64/debug => mobile/android/config/mozconfigs/android-x86_64/debug-beta
extra : moz-landing-system : lando
2019-04-30 13:57:48 +00:00
Narcis Beleuzu
8e7b38b0cd Backed out changeset 491709a630ef (bug 1544517) for geckoview failures 2019-04-30 07:55:35 +03:00
Sebastian Hengst
4dfe30642b Backed out 4 changesets (Bug 1501108) for causing very frequent leaks in macOS debug wpt tests: Set API key provided by api-lint tasks. a=backout
--HG--
extra : rebase_source : bc12d5324f51967f4c15ac9a896d4a6b26463f03
2019-04-29 22:53:40 +02:00
Sebastian Hengst
3dd01e8232 Backed out 4 changesets (bug 1501108) for causing very frequent leaks in macOS debug wpt tests. a=backout
Backed out changeset 23a77e063257 (bug 1501108)
Backed out changeset 335cec0aacd8 (bug 1501108)
Backed out changeset 99ba286125d1 (bug 1501108)
Backed out changeset 8f2d511ad49f (bug 1501108)

--HG--
extra : rebase_source : 01925c24ac47b37135fcfebab8ae7e9876d5b90e
2019-04-29 17:39:42 +02:00
Kartikaya Gupta
71bf7c3485 Bug 1544517 - Add a pref that controls conversion of mouse events to touch events. r=geckoview-reviewers,rbarker
For TV devices, it is useful to have mouse events automatically
interpreted as touch events. On other devices, such as more desktop-like
Android devices, we want to treat mouse events as mouse events. This patch
makes this behaviour controllable by a pref, but keeps the existing default
behaviour of treating mouse events as touch events.

Differential Revision: https://phabricator.services.mozilla.com/D29188

--HG--
extra : moz-landing-system : lando
2019-04-29 19:24:39 +00:00
Emily Toop
21210ed5c9 Bug 1546744 - Ensure we are testing for the correct things when validating screenshots r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D28983

--HG--
extra : moz-landing-system : lando
2019-04-26 20:49:00 +00:00
championshuttler
30cfc2b453 Bug 1484640 - Enable ESLint for mobile/android/chrome/content/browser.js (Manual Changes). r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D22891

--HG--
extra : moz-landing-system : lando
2019-04-29 14:17:13 +00:00
championshuttler
41dccc1a43 Bug 1484640 - Enable ESLint for mobile/android/chrome/content/browser.js (Automatic Changes). r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D22890

--HG--
extra : moz-landing-system : lando
2019-04-29 15:08:12 +00:00
Mark Banner
782aed646d Bug 1547291 - Update URLs for the Prisjakt search engine. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D29012

--HG--
extra : moz-landing-system : lando
2019-04-26 17:26:22 +00:00
Eitan Isaacson
160a13b668 Bug 1516048 - Introduce GeckoView.setVerticalClipping. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15240

--HG--
extra : moz-landing-system : lando
2019-04-26 22:38:10 +00:00
Matt Brubeck
47aeb82d30 Bug 1545170 - Fix outdated javadoc comment for LoadRequest.isRedirect. r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D28879

--HG--
extra : moz-landing-system : lando
2019-04-26 06:00:17 +00:00
Petru Lingurar
0b640ba5ae Bug 1545805 - Update Fennec Onboarding process; r=VladBaicu
The new Onboarding process will have updated imagery and strings.
It will also not show the "Customize" screen anymore.

It will only be shown if the new Strings are localized;

Differential Revision: https://phabricator.services.mozilla.com/D28863

--HG--
extra : source : 035da268a5d5585c2d7d5996ca7c73263ffdbbc8
2019-04-25 18:10:59 +00:00
Andreea Pavel
8f0472d6c8 Backed out changeset 035da268a5d5 (bug 1545805) android build bustages on a CLOSED TREE 2019-04-26 11:07:10 +03:00
Andrei Teslovan
74802378e0 Bug 1546617 - Land updated Onboarding UX strings; r=petru
Differential Revision: https://phabricator.services.mozilla.com/D28633

--HG--
extra : moz-landing-system : lando
2019-04-25 14:38:39 +00:00
Petru Lingurar
bfbfdce00a Bug 1545805 - Update Fennec Onboarding process; r=VladBaicu
The new Onboarding process will have updated imagery and strings.
It will also not show the "Customize" screen anymore.

It will only be shown if the new Strings are localized;

Differential Revision: https://phabricator.services.mozilla.com/D28863

--HG--
extra : moz-landing-system : lando
2019-04-25 18:10:59 +00:00
diana.iacos
19d60ce7a3 Bug 1546889 - Refresh Settings layout if default browser was changed while in background; r=petru
Handle 2 specific edge-cases:
- The user presses to change default browser, when he returns to the app the
app settings button to do so should not be displayed anymore.
- With the app in background showing the app settings the user changes to a
different default browser. When resuming the app it should show the option to
set Fennec as default.
All this without otherwise requiring the user to close app settings and opening
them again.

Depends on D28831

Differential Revision: https://phabricator.services.mozilla.com/D28832

--HG--
extra : moz-landing-system : lando
2019-04-25 13:59:49 +00:00
diana.iacos
8ed259ef67 Bug 1546889 - Update Default Browser toast message; r=petru,flod
Differential Revision: https://phabricator.services.mozilla.com/D28831

--HG--
extra : moz-landing-system : lando
2019-04-25 14:13:58 +00:00
Emily Toop
1cdb609e6a Bug 1527074 - Expose storage manager API to GeckoView r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D25408

--HG--
extra : moz-landing-system : lando
2019-04-25 16:20:48 +00:00
Gurzau Raul
dc61b90737 Merge inbound to mozilla-central. a=merge 2019-04-25 19:19:37 +03:00
Mathieu Leplatre
582063c263 Bug 1512451 - Read OneCRL blocklist from security-states/onecrl r=jcj,mgoodwin,glasserc
Read OneCRL blocklist from security-states/onecrl

Differential Revision: https://phabricator.services.mozilla.com/D23645

--HG--
rename : services/common/tests/unit/test_blocklist_certificates.js => services/common/tests/unit/test_blocklist_onecrl.js
extra : moz-landing-system : lando
2019-04-24 14:52:13 +00:00
Bogdan Tara
b77143169d Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-25 12:51:48 +03:00
Brindusan Cristian
e6bfbdb99f Backed out changeset a72c9df6c09a (bug 1527287) for build bustages at BrowserElementParent.cpp. CLOSED TREE 2019-04-25 03:15:59 +03:00
Ehsan Akhgari
691bad31ac Bug 1527287 - Add support for "noreferrer" feature argument to window.open(); r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28396

--HG--
extra : moz-landing-system : lando
2019-04-24 23:50:40 +00:00
Brindusan Cristian
b3b1ca15aa Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
rename : dom/ipc/TabParent.h => dom/ipc/BrowserParent.h
2019-04-25 01:43:17 +03:00
Brindusan Cristian
72339d0385 Backed out changeset ce050fe2bd45 (bug 1527287) for causing merge conflicts. CLOSED TREE 2019-04-25 01:39:26 +03:00
Brindusan Cristian
f92b05e5f0 Merge inbound to mozilla-central. a=merge
--HG--
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
2019-04-25 00:54:01 +03:00
diana.iacos
a542f0deda Bug 1544589 - Refactor isDefaultBrowser out from MmaDelegate to PackageUtil; r=petru
Depends on D28657

Differential Revision: https://phabricator.services.mozilla.com/D28673

--HG--
extra : moz-landing-system : lando
2019-04-24 15:28:36 +00:00
diana.iacos
9b8c32599a Bug 1544589 - Streamline the "Make Firefox your default browser" user settings workflow; r=petru
Differential Revision: https://phabricator.services.mozilla.com/D28657

--HG--
extra : moz-landing-system : lando
2019-04-24 15:28:18 +00:00
Eugen Sawin
33dc6347a7 Bug 1544076 - Fix gradle dependencies error.
Differential Revision: https://phabricator.services.mozilla.com/D28718

--HG--
extra : moz-landing-system : lando
2019-04-24 19:06:57 +00:00
Ehsan Akhgari
27e187b37d Bug 1527287 - Add support for "noreferrer" feature argument to window.open(); r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28396

--HG--
extra : moz-landing-system : lando
2019-04-24 18:09:44 +00:00
Eugen Sawin
9a2c465f9f Bug 1544076 - [1.1] Add lifecycle library dependency. r=nalexander,snorp
Differential Revision: https://phabricator.services.mozilla.com/D28082

--HG--
extra : moz-landing-system : lando
2019-04-24 17:51:32 +00:00
Eugen Sawin
23e0b455ee Bug 1544076 - [0.1] Upgrade Android support library to 28.0.0 to avoid version conflicts with the lifecycle library. r=nalexander,droeh
Differential Revision: https://phabricator.services.mozilla.com/D27971

--HG--
extra : moz-landing-system : lando
2019-04-24 16:22:50 +00:00
Andrei Teslovan
ed97bc825a Bug 1345104 - Show error when Find In Page returns no results; r=petru
Differential Revision: https://phabricator.services.mozilla.com/D28609

--HG--
extra : moz-landing-system : lando
2019-04-24 10:48:55 +00:00
Agi Sferro
c1f4fbd0dd Bug 1546411 - [geckoview] Hide all @IntDef and @StringDef. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D28503

--HG--
extra : moz-landing-system : lando
2019-04-24 02:22:39 +00:00
Agi Sferro
21a71a33f2 Bug 1546135 - [geckoview] Use flags in WebExtension constructor. r=esawin,snorp
Differential Revision: https://phabricator.services.mozilla.com/D28365

--HG--
extra : moz-landing-system : lando
2019-04-24 02:22:39 +00:00
Razvan Maries
f66c2eb864 Backed out 2 changesets (bug 1546411, bug 1546135) for build bustages. CLOSED TREE
Backed out changeset a66f1ffd23ea (bug 1546411)
Backed out changeset a322ec5c25e6 (bug 1546135)
2019-04-24 02:34:50 +03:00