Commit Graph

24081 Commits

Author SHA1 Message Date
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
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
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
Agi Sferro
e69ce95872 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-23 22:58:50 +00:00
Agi Sferro
f13395483f 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-23 22:58:50 +00:00
Andreea Pavel
75578f7684 Backed out changeset a19d696f96fb (bug 1512451) for failing bc at browser_all_files_referenced.js on a CLOSED TREE
--HG--
rename : services/common/tests/unit/test_blocklist_onecrl.js => services/common/tests/unit/test_blocklist_certificates.js
2019-04-24 00:59:27 +03:00
Mathieu Leplatre
6e4798bb72 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-23 18:40:40 +00:00
Christoph Kerschbaumer
42672fde72 Bug 1544863: Explicitly pass csp to createContentWindow(). r=Gijs,baku
Differential Revision: https://phabricator.services.mozilla.com/D27871

--HG--
extra : moz-landing-system : lando
2019-04-23 14:37:40 +00:00
Dorel Luca
facaf244e4 Backed out changeset 7d3f2f4c53be (bug 1544863) for eslint failure 2019-04-23 17:16:13 +03:00
Christoph Kerschbaumer
73a324ee2d Bug 1544863: Explicitly pass csp to createContentWindow(). r=Gijs,baku
Differential Revision: https://phabricator.services.mozilla.com/D27871

--HG--
extra : moz-landing-system : lando
2019-04-23 13:02:40 +00:00
Oana Pop Rus
bb64503da3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-23 01:15:48 +03:00
Oana Pop Rus
cd403eabd2 Merge inbound to mozilla-central. a=merge 2019-04-23 00:48:20 +03:00
Grisha Kruglov
b44585f969 Bug 1545232 - Add AuthStateProvider r=nalexander,sebastian
See comments in the patch for details.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 20:07:34 +00:00
Agi Sferro
d9c6b51564 Bug 1529119 - Expose msaa-level, double_tap_zooming, autozoom. r=snorp
FxR uses these prefs and they might be helpful to other embedders so we can
just add them to GeckoRuntimeSettings.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 18:50:08 +00:00
Agi Sferro
9caa256abd Bug 1529119 - Remove duplicate entry in CHANGELOG. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D28238

--HG--
extra : moz-landing-system : lando
2019-04-22 18:50:15 +00:00
Andrei Teslovan
3b97c744e8 Bug 1545838 - Update Fennec's AMO URL; r=petru
Differential Revision: https://phabricator.services.mozilla.com/D28335

--HG--
extra : moz-landing-system : lando
2019-04-22 15:07:01 +00:00
Makoto Kato
4697a6c63e Bug 1540628 - Don't use restartInput when no composition. r=esawin
Since `restartInput` resets all keyboard state, it isn't good to call this
everytime. So we should call this when discarding composition only.

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

--HG--
extra : rebase_source : 3c1c88cb18351fc220ba36fea5a86334cbf68029
extra : amend_source : 089346137a471096b72f3ee77de154f3fcc16069
extra : histedit_source : 39481df24b6be63c96310143e4bb03d09db1883a
2019-04-15 15:24:55 +09:00
prathiksha
37cee0f171 Bug 1185000 - Show a dismissed password manager doorhanger when credit card numbers are detected. r=jaws
In certain straight-forward cases where we detect a credit card number being used with password fields we will show a dismissed password manager doorhanger. The user can still choose to save in case the valid credit card number is actually their username or password.

1) If the Luhn checksum matches on the username field (see CreditCard.jsm) AND the password is 3 numerical digits (don't handle 4 for now even though it's used by Visa since there are banks that use 4 digits passwords for online banking still).
2) If the Luhn checksum matches on the password value AND we detect that the type=password field is a credit card field via autocomplete=cc-number.
** We must include the @autocomplete check otherwise sites will abuse this loophole on legit login forms and set autocomplete=cc-number on their password fields to avoid saving.

For both of these cases we  should `dismissed:true` doorhanger, rather than not showing one at all, in case there are false-negatives.

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

--HG--
extra : source : e9be442c871e173a409f3b969f5bcea0e1ae4d71
extra : histedit_source : c942a81512be954abe595fa41ca44c26cd89b0e6
2019-04-19 13:52:58 -07:00
Ciure Andrei
636eb74c5d Backed out changeset e9be442c871e (bug 1185000) for turning 1272849 into perma CLOSED TREE 2019-04-21 10:34:39 +03:00
prathiksha
8c683ae2fc Bug 1185000 - Show a dismissed password manager doorhanger when credit card numbers are detected. r=jaws
In certain straight-forward cases where we detect a credit card number being used with password fields we will show a dismissed password manager doorhanger. The user can still choose to save in case the valid credit card number is actually their username or password.

1) If the Luhn checksum matches on the username field (see CreditCard.jsm) AND the password is 3 numerical digits (don't handle 4 for now even though it's used by Visa since there are banks that use 4 digits passwords for online banking still).
2) If the Luhn checksum matches on the password value AND we detect that the type=password field is a credit card field via autocomplete=cc-number.
** We must include the @autocomplete check otherwise sites will abuse this loophole on legit login forms and set autocomplete=cc-number on their password fields to avoid saving.

For both of these cases we  should `dismissed:true` doorhanger, rather than not showing one at all, in case there are false-negatives.

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

--HG--
extra : transplant_source : %A9%94_%9A%03%00%A1u%F3%28%C6%00H%16z%8A%8F%D6%18O
2019-04-19 13:52:58 -07:00
Petru Lingurar
3e45f049fa Bug 1544525 - Update about:addons's AMO link; r=AndreiLazar
Depends on D27858

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

--HG--
extra : moz-landing-system : lando
2019-04-17 09:51:57 +00:00
Petru Lingurar
d90041e847 Bug 1544525 - Update about:addons's AMO title; r=Pike,JanH
And ensure we will always show a localized title, even if we have to fallback
to the old already localized one.

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

--HG--
extra : moz-landing-system : lando
2019-04-19 07:14:54 +00:00
Ciure Andrei
b8140fd374 Backed out changeset dc1cbac5213d (bug 1545232) for causing lint build bustages CLOSED TREE 2019-04-19 07:52:03 +03:00
Vlad Baicu
dfbb92ce9d Bug 1527666 - Handle long back press manually only on Android N.r=petru
On versions >= N all long back presses we're handled manually in onKeyDown
and onKeyUp which could lead to certain complications. I have changed it
only for Android N where onKeyLongPress does not trigger as it should.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 12:06:53 +00:00
Grisha Kruglov
97a57c2a7a Bug 1545232 - Add AuthStateProvider r=nalexander,sebastian
See comments in the patch for details.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 22:22:40 +00:00
Agi Sferro
89c2a88513 Bug 1545106 - Fix javadoc issue in GeckoSessionSettings. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D28079

--HG--
extra : moz-landing-system : lando
2019-04-18 21:00:07 +00:00
Agi Sferro
0451bbb54e Bug 1545106 - Add GeckoSession-specific message delegate. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D27955

--HG--
extra : moz-landing-system : lando
2019-04-18 20:59:55 +00:00
Agi Sferro
8dfaf9c29e Bug 1545106 - Remove useless MessageDelegateInfo. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D28078

--HG--
extra : moz-landing-system : lando
2019-04-18 20:50:25 +00:00
James Willcox
aad7c3abc2 Bug 1545039 - Correctly copy request bodies in GeckoWebExecutor r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D28095

--HG--
extra : moz-landing-system : lando
2019-04-18 19:56:30 +00:00
Thomas Wisniewski
8e80a6d3d8 Bug 1540933 - move the buttons on about:compat's mobile view to the left in rtl mode; r=miketaylr,denschub
move the buttons on about:compat's mobile view to the left in rtl mode

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

--HG--
extra : moz-landing-system : lando
2019-04-18 15:50:03 +00:00
Dylan Roeh
542b50c669 Bug 1538294 - Add internal support for flushing session state to GV and flush state in response to a GeckoSession being set inactive. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D27081

--HG--
extra : moz-landing-system : lando
2019-04-17 15:26:53 +00:00
Rob Wu
1af4c55c01 Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao
- `Array.forEach` becomes for-of loop or `array.forEach`.
- `Array.slice(a)` or `Array.slice(a, 0)` becomes `Array.from(a)`.
- `Array.map` becomes `Array.from`
- `Array` copy + concatenation becomes Array literal + spread syntax.
- All other `Array.X(a, ...)` become `Array.prototype.X.call` or `Array.from(a).X(...)`

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

--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:17 +00:00
Makoto Kato
7426d1f4e9 Bug 1539827 - Handle RuntimeException when setting clipboard data r=geckoview-reviewers,snorp
When setting large clipboard data, it may cause `TransactionTooLargeException`
in binder IPC. So we have to handle `RuntimeException`.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 10:13:38 +00:00
Petru Lingurar
e732102628 Bug 1543680 - Set playbackState as playing when entering in PiP mode; r=JanH
playbackState's default value is PlaybackState.STOPPED.
We can only enter PiP mode if media is playing but we don't save this playing
state.
If the user hasn't done anything to change this, like pause-play, when we check
the playbackState in BrowserApp to know to force fullscreen if still playing
we will not do so because the state is PlaybackState.STOPPED.

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

--HG--
extra : moz-landing-system : lando
2019-04-17 17:00:00 +00:00
Brian Grinstead
381332c51e Bug 1544051 - Part 3 - Scripted change to remove references to AddTask.js r=ahal
This was generated with the script at https://bug1544051.bmoattachments.org/attachment.cgi?id=9058672

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

--HG--
extra : moz-landing-system : lando
2019-04-18 16:51:01 +00:00
Thomas Wisniewski
90ba7f941b Bug 1545081 - Give the about:compat overrides for bug 1177298 unique ids so they can be properly disabled in the UI; r=denschub
Give the about:compat overrides for bug 1177298 unique ids so they can be properly disabled in the UI

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

--HG--
extra : moz-landing-system : lando
2019-04-17 17:03:36 +00:00
Agi Sferro
83bc10f815 Bug 1518843 - GeckoView WebExtension Messaging. r=snorp,esawin,robwu,kmag
This change allows GeckoView embedders to respond to
`runtime.sendNativeMessage` and `runtime.connectNative` sent from
WebExtensions.

These APIs are available behind the new privileged-only permission
`geckoViewAddons` and are used by GeckoView apps to communicate between content
and the app.

Depends On D22621

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

--HG--
extra : moz-landing-system : lando
2019-04-17 18:28:10 +00:00
Agi Sferro
f9fe9e667f Bug 1518843 - Add GeckoView API to unregister WebExtensions. r=snorp,mbrubeck
Depends On D23093

---
 .../components/geckoview/GeckoViewStartup.js  |  1 +
 mobile/android/geckoview/api.txt              |  1 +
 .../geckoview/test/WebExtensionTest.kt        | 17 +++++++--
 .../org/mozilla/geckoview/GeckoRuntime.java   | 31 +++++++++++++++-
 .../mozilla/geckoview/doc-files/CHANGELOG.md  |  6 ++-
 .../geckoview/GeckoViewWebExtension.jsm       | 37 ++++++++++++++++++-
 6 files changed, 85 insertions(+), 8 deletions(-)

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

--HG--
extra : moz-landing-system : lando
2019-04-17 18:27:40 +00:00
Thomas Wisniewski
6b2784ab70 Bug 1541019 - have 'more information' links in about:compat always open in a new tab; r=miketaylr
have 'more information' links in about:compat always open in a new tab

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

--HG--
extra : moz-landing-system : lando
2019-04-17 20:24:12 +00:00
Thomas Wisniewski
f21778c900 Bug 1541418 - use pointer:fine vs coarse/none to decide whether to show the mobile or desktop UX for about:copmat, rather than min-width media queries; r=denschub
use pointer:fine vs coarse/none to decide whether to show the mobile or desktop UX for about:compat, rather than min-width media queries

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

--HG--
extra : moz-landing-system : lando
2019-04-17 19:09:04 +00:00
Petru Lingurar
4b4898f15e Bug 1543058 - Display all pinned top sites even with identical base URLs; r=VladBaicu
Differential Revision: https://phabricator.services.mozilla.com/D27872

--HG--
extra : moz-landing-system : lando
2019-04-17 10:00:31 +00:00
Nick Alexander
dfeeb0c3e4 Bug 1533385 - Make GeckoView read configuration options from filesystem. r=droeh
The configuration file format is YAML and looks like:
```
prefs:
  foo.bar.boolean: true
  foo.bar.string: "string"
  foo.bar.int: 500
env:
  MOZ_LOG: nsHttp:5
args: [--marionette]
```
By default, if the consuming App is debuggable, GeckoView will read
configuration from `/data/local/tmp/$PACKAGE-geckoview-config.yaml` at
startup.

For consumers (including browsers) that want to allow the underlying
GeckoView to be remote controlled in some way, the
`GeckoRuntimeSettings.Builder.configFilePath()` method allows to avoid
the default behaviour depending on the `android:debuggable` flag.  For
example, release versions of Firefox for Android will want to allow
this configuration when appropriate App-level settings are toggled.

The additional configuration is appended after any existing configuration
methods, e.g., after anything specified using Intent argument extras
or existing `GeckoRuntimeSettings.Builder` methods.

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

--HG--
extra : moz-landing-system : lando
2019-04-17 17:05:05 +00:00
Eugen Sawin
0353b16889 Bug 1501108 - [3.4] Add a StorageController API to delete session context data. r=baku,snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D23732

--HG--
extra : moz-landing-system : lando
2019-04-17 13:03:49 +00:00
Eugen Sawin
c5f6173444 Bug 1501108 - [2.3] Add Session Context ID test. r=snorp,baku
Differential Revision: https://phabricator.services.mozilla.com/D20008

--HG--
extra : moz-landing-system : lando
2019-04-16 20:25:10 +00:00