Commit Graph

29319 Commits

Author SHA1 Message Date
Makoto Kato
d1e3979530 Bug 1491989 - <input autocomplete="email"> should be autofill target. r=geckoview-reviewers,snorp
Autofill service application uses email, username and password hint for login
form. Some sites use email value for autocomplete attribute even if
`<input type="text">`. So we should set autofill hint for this situation.

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

--HG--
extra : moz-landing-system : lando
2019-12-26 20:49:32 +00:00
James Willcox
7b42f9d399 Bug 1605991 - Avoid coercing null manifest colors into "null" r=geckoview-reviewers,rbarker
Differential Revision: https://phabricator.services.mozilla.com/D58255

--HG--
extra : moz-landing-system : lando
2019-12-26 16:32:16 +00:00
Jeff Gilbert
f703bd12e6 Bug 1605808 - Document ./mach run --setenv for GeckoView debugging. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D58178

--HG--
extra : moz-landing-system : lando
2019-12-24 02:02:45 +00:00
Emilio Cobos Álvarez
938b09ce59 No bug - Use pip to install MozPhab. r=snorp
It is the right way to do that now. Though again we should probably just link to
the moz-phab docs.

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

--HG--
extra : moz-landing-system : lando
2019-12-23 15:39:37 +00:00
James Willcox
4400a92a46 Bug 1604917 - Coerce WebManifest colors to rrggbbaa ?marcosc,jdescottes r=marcosc,jdescottes
We then convert that to `#aarrggbb` in GeckoView for convenient use
with `android.graphics.Color`.

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

--HG--
extra : moz-landing-system : lando
2019-12-23 15:29:08 +00:00
Emilio Cobos Álvarez
ba9ff49490 No bug - Fix quoting of arguments on git-cinnabar setup. r=agi
Somebody on #introduction on IRC got confused by this.

You need single quotes, other the `$PATH` variable will expand to whatever is
your `$PATH` in this particular moment.

Also there's no need to point to git-cinnabar's wrappers anymore.

But, why not redirecting / linking this page to:

 * https://github.com/glandium/git-cinnabar/wiki/Mozilla:-A-git-workflow-for-Gecko-development

Which is the main reference?

Or to:

 * https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html

Which contains the mercurial docs too?

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

--HG--
extra : moz-landing-system : lando
2019-12-20 21:29:55 +00:00
John Lin
e98ea9e53e Bug 1583565 - check if Java wrapper is still valid when updating media info. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D56973

--HG--
extra : moz-landing-system : lando
2019-12-19 04:10:50 +00:00
Eugen Sawin
b147cc9b18 Bug 1599873 - [4.1] Update changelog. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D57644

--HG--
extra : moz-landing-system : lando
2019-12-20 16:27:08 +00:00
Eugen Sawin
4d78316996 Bug 1599873 - [3.1] Add Login Storage Save API tests. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D57643

--HG--
extra : moz-landing-system : lando
2019-12-20 16:27:06 +00:00
Eugen Sawin
85d70f0acf Bug 1599873 - [2.2] Implement Login Storage Prompt API for save requests. r=snorp,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D57012

--HG--
extra : moz-landing-system : lando
2019-12-20 16:26:56 +00:00
Eugen Sawin
0127aa97c4 Bug 1599873 - [1.3] Implement Login Storage prompt backend for save requests. r=MattN,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D57011

--HG--
extra : moz-landing-system : lando
2019-12-20 16:26:53 +00:00
Eugen Sawin
ea808c81bb Bug 1604511 - [2.0] Fix Autofill backend nodes handling. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D57631

--HG--
extra : moz-landing-system : lando
2019-12-20 13:51:35 +00:00
Eugen Sawin
dbfdb589fc Bug 1604511 - [1.2] Ensure Autofill.Support is fully initialized before handling events and enforce UI thread only access. r=geckoview-reviewers,agi,snorp
Differential Revision: https://phabricator.services.mozilla.com/D57507

--HG--
extra : moz-landing-system : lando
2019-12-20 13:51:28 +00:00
James Teh
29e4eb9ab1 Bug 1604101: Fix Android a11y text navigation between nodes. r=MarcoZ
Talkback users expect that when you navigate past the end of the text in a node, Talkback will move into the next node and navigate there.
However, even though text navigation is async (client performs an action on the focused accessible and then waits for a text traversal event), firing a traversal event with a different accessible from the focused accessible is not supported by Talkback.
Firing a11y focus on the new node (as we did previously) doesn't fix this, but instead causes the entire node to be reported, among other weird behaviour.

1. Don't fire a11y focus for text traversal.
    Aside from Talkback reporting the entire node, this was also confusing Talkback, causing it to try to navigate several times into the new node.
2. When navigating text, cache whether we're at either edge.
    We do this because we need to be able to synchronously query whether we're at the edge, but we do navigation async.
    Special handling is needed for words at the end because words don't include trailing space.
3. When performing a text navigation action, check if we're already at the edge using the cache described above.
    If we are, synchronously return false, as Talkback expects.
    Talkback will then move to the next/previous node itself and navigate the text there.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 12:02:17 +00:00
Agi Sferro
3f510fc3b6 Bug 1605246 - Kill main process if child process dies during tests. r=snorp
Right now we only detect `onCrash` on mochitests/reftests and `onKill` on junit
tests.

This change makes it so we wait for both on every type of test.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 02:12:02 +00:00
Thomas Wisniewski
25d793d15f Bug 1603133 - Remove unused Fennec components in mobile/android/components; r=snorp
remove unused Fennec components in mobile/android/components (only the geckoview or extensions subdirs are used by GeckoView).

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

--HG--
extra : moz-landing-system : lando
2019-12-18 23:52:48 +00:00
Thomas Wisniewski
1e12d53224 Bug 1553265 - add a document.addCertException function to about:certerror pages and use it there; also treat GeckoView error pages as CallerIsTrusted(Net|Cert)Error; r=snorp,johannh,baku
Add a document.addCertException function to about:certerror pages, and use it on the desktop certerror page.

Also, as the CallerIsTrusted* functions expect URLs like about:certerror, but GeckoView error pages are data URLs, and so need to be handled differently for these special error-page methods to be exposed on their documents.

Example usage of document.addCertException:
  document.addCertException(
    true|false /* true == temporary, false == permanent */
  ).then(
    () => {
      location.reload();
    },
    err => {
      console.error(err);
    }
  );

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

--HG--
extra : moz-landing-system : lando
2019-12-18 21:55:32 +00:00
James Willcox
9d6b63b818 Bug 1595176 - Don't wait for a window to finish GeckoView startup r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D57543

--HG--
extra : moz-landing-system : lando
2019-12-18 20:22:22 +00:00
James Willcox
e18cd2bb90 Bug 1577596 - Expose autoplay permission requests in GeckoView r=geckoview-reviewers,rbarker,agi
Differential Revision: https://phabricator.services.mozilla.com/D57134

--HG--
extra : moz-landing-system : lando
2019-12-18 20:22:20 +00:00
James Willcox
847cf8c8d7 Bug 1603114 - Ensure Gecko channel is closed with WebResponse body stream. r=geckoview-reviewers,agi
This also fixes a lifetime issue where we may have been leaking the
native instance of `WebResponse.Support`.

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

--HG--
extra : moz-landing-system : lando
2019-12-18 20:22:18 +00:00
James Willcox
bfc273748e Bug 1603452 - Fix and re-enable WebExecutorTest#readTimeout() r=geckoview-reviewers,agi
Along with this comes a new test server for use with GeckoView JUnit
tests based on AndroidAsync. This allows us to have more control
over responses and gets us off of the end-of-lifed Jetty we were using
before.

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

--HG--
extra : moz-landing-system : lando
2019-12-18 20:22:11 +00:00
Alastor Wu
8d8a78e920 Bug 1578945 - part1 : remove handling audio focus related code in AudioChannelService. r=baku,sebastian
We have implemented new audio focus management in bug1565689 which would allow us to have one tab playing audio at the same time no matter we're using e10s or Fission.

Therefore, we can remove the old pref dom.audiochannel.audioCompeting and dom.audiochannel.audioCompeting.allAgents, which are only work on non-e10s mode.

In addition, the audio competing is only used by default on Fennec, but Fennec is now no longer following the latest m-c, it's using ESR68. So even if our new audio focus management is not on by default on Android, it won't affect current behavior on Fennec. We can 100% sure that we won't need those code for old audio competing anymore.

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

--HG--
extra : moz-landing-system : lando
2019-12-18 09:10:30 +00:00
Cosmin Sabou
fbd904633a Backed out changeset b1e1671fd704 (bug 1553265) for gv-unit failures. 2019-12-18 03:18:14 +02:00
Thomas Wisniewski
63935c0afe Bug 1553265 - add a document.addCertException function to about:certerror pages and use it there; also treat GeckoView error pages as CallerIsTrusted(Net|Cert)Error; r=snorp,johannh,baku
Add a document.addCertException function to about:certerror pages, and use it on the desktop certerror page.

Also, as the CallerIsTrusted* functions expect URLs like about:certerror, but GeckoView error pages are data URLs, and so need to be handled differently for these special error-page methods to be exposed on their documents.

Example usage of document.addCertException:
  document.addCertException(
    true|false /* true == temporary, false == permanent */
  ).then(
    () => {
      location.reload();
    },
    err => {
      console.error(err);
    }
  );

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

--HG--
extra : moz-landing-system : lando
2019-12-17 21:54:32 +00:00
Agi Sferro
f7b714c18c Bug 1553354 - Store messages when either the port or the delegate cannot be found. r=snorp
`port.connectNative` is synchronous, so there is the slim possibility that a
message could be sent before the app has been notified that the port has been
created. Similarly, if the app has not attached a listener yet, the port
message gets lost.

In either case, we now store this message in a list that we check when a
delegate is attached to the port object.

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

--HG--
extra : moz-landing-system : lando
2019-12-17 23:24:02 +00:00
Agi Sferro
f70dd054b3 Bug 1553354 - Add org.mozilla.gecko.MultiMap. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D57510

--HG--
extra : moz-landing-system : lando
2019-12-17 23:24:00 +00:00
Agi Sferro
dafbe96c98 Bug 1600742 - Implement WebExtensionController.list. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D56793

--HG--
extra : moz-landing-system : lando
2019-12-17 23:24:24 +00:00
Agi Sferro
f3e3650c45 Bug 1600742 - Add GeckoResult.allOf. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D56792

--HG--
extra : moz-landing-system : lando
2019-12-17 23:23:56 +00:00
Agi Sferro
14f0d7f3b6 Bug 1600742 - Use WebExtensionPolicy instead of AddonManager for actions. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D56791

--HG--
extra : moz-landing-system : lando
2019-12-17 23:23:54 +00:00
Agi Sferro
f8d68e46e1 Bug 1600742 - Move event listeners from WebExtension to WebExtensionController. r=snorp,esawin
Differential Revision: https://phabricator.services.mozilla.com/D57035

--HG--
extra : moz-landing-system : lando
2019-12-17 23:23:52 +00:00
Agi Sferro
6c81d2a85b Bug 1600742 - Require WebExtensionController in the WebExtension constructor. r=esawin,snorp
The controller will be used in a later patch to listen to delegates updates.

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

--HG--
extra : moz-landing-system : lando
2019-12-17 23:23:44 +00:00
Agi Sferro
8fb7253c6a Bug 1600742 - Add alias for webExtensionController in WebExtensionTest. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D57365

--HG--
extra : moz-landing-system : lando
2019-12-17 23:23:42 +00:00
Agi Sferro
f93d8916ac Bug 1600742 - Fix all kotlin warnings in Extension tests. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D57364

--HG--
extra : moz-landing-system : lando
2019-12-17 23:23:40 +00:00
Agi Sferro
07932cbbd1 Bug 1600742 - Rename DelegateObserver -> DelegateController. r=esawin,snorp
Differential Revision: https://phabricator.services.mozilla.com/D57034

--HG--
extra : moz-landing-system : lando
2019-12-17 23:23:38 +00:00
Agi Sferro
dd3f4eadd6 Bug 1600742 - Refactor WebExtension.Listener to be usable without a GeckoSession. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D57033

--HG--
extra : moz-landing-system : lando
2019-12-17 23:23:35 +00:00
Noemi Erli
00a57ab6c7 Backed out 3 changesets (bug 1603452, bug 1603114, bug 1577596) for causing lint failure in GeckoSession.java CLOSED TREE
Backed out changeset 1a9be6d049a7 (bug 1577596)
Backed out changeset 11e1f382ea77 (bug 1603114)
Backed out changeset d63c194d1c6c (bug 1603452)
2019-12-18 01:12:37 +02:00
James Willcox
833a7f9e2e Bug 1577596 - Expose autoplay permission requests in GeckoView r=geckoview-reviewers,rbarker,agi
Differential Revision: https://phabricator.services.mozilla.com/D57134

--HG--
extra : moz-landing-system : lando
2019-12-17 20:59:38 +00:00
James Willcox
3f1c533a24 Bug 1603114 - Ensure Gecko channel is closed with WebResponse body stream. r=geckoview-reviewers,agi
This also fixes a lifetime issue where we may have been leaking the
native instance of `WebResponse.Support`.

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

--HG--
extra : moz-landing-system : lando
2019-12-17 20:59:31 +00:00
James Willcox
754e1eb5ca Bug 1603452 - Fix and re-enable WebExecutorTest#readTimeout() r=geckoview-reviewers,agi
Along with this comes a new test server for use with GeckoView JUnit
tests based on AndroidAsync. This allows us to have more control
over responses and gets us off of the end-of-lifed Jetty we were using
before.

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

--HG--
extra : moz-landing-system : lando
2019-12-17 20:59:29 +00:00
Aaron Klotz
651331b493 Bug 1600658: Part 2 - Move content crash test into a session test and modify TestCrashHandler to selectively evaluate crash report submission; r=snorp
* We add bidirectional messaging to `TestCrashHandler`:
  1. The test sends a message to the `TestCrashHandler`, notifying it that an
     upcoming crash is intentional and its intent should be checked.
  2. Upon receipt of the crash report, the service reviews the contents of the
     crash intent, and then sends a message back to the test with the test results.
  3. The service deletes any crash dump artifacts belonging to crash intents
     that have been evaluated so that the harness doesn't pick up any
     intentional crashes.

* We remove `crashContent` from `CrashTest.kt` and create `ContentCrashTest.kt`
  for that case. The `crashParent` test remains unchanged other than switching
  its crash handler over to `TestCrashHandler`.

* We remove the `CrashTestHandler` service, as both `crashContent` and
  `crashParent` tests now use `TestCrashHandler`.

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

--HG--
rename : mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/crash/CrashTest.kt => mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/ContentCrashTest.kt
rename : mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/crash/CrashTest.kt => mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/crash/ParentCrashTest.kt
extra : moz-landing-system : lando
2019-12-16 20:15:22 +00:00
Aaron Klotz
50ae6481cf Bug 1603250: Do not set ah_crap_handler signal handler in debug x86 Android builds; r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D56852

--HG--
extra : moz-landing-system : lando
2019-12-16 20:15:01 +00:00
Eugen Sawin
54fee9a0ff Bug 1602881 - [5.1] Add Login Storage Fetch API test. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D57355

--HG--
extra : moz-landing-system : lando
2019-12-16 19:37:26 +00:00
Eugen Sawin
3ede8ad264 Bug 1602881 - [3.1] Enable login manager storage handling to enable the new GV backend. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D57010

--HG--
extra : moz-landing-system : lando
2019-12-16 19:37:09 +00:00
Eugen Sawin
74238d190c Bug 1602881 - [2.1] Update API changelog. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D56607

--HG--
extra : moz-landing-system : lando
2019-12-16 19:36:59 +00:00
Eugen Sawin
c1fd2bfe24 Bug 1602881 - [1.2] Enable the Login Storage Fetch API. r=snorp,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D56606

--HG--
extra : moz-landing-system : lando
2019-12-16 19:36:52 +00:00
J.C. Jones
942507de3e Bug 1594931 - Stop compiling NSS' DBM legacy database r=kjacobs,keeler,mhowell,MattN
This change modifies all tests that use key3/cert8 to use the new files. It
removes test_sdr_upgraded_with_password, as without the upgrade part that is now
the same test as test_sdr_preexisting_with_password.

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

--HG--
rename : security/manager/ssl/tests/unit/test_sdr_preexisting/key4.db => security/manager/ssl/tests/unit/test_broken_fips/key4.db
extra : moz-landing-system : lando
2019-12-16 17:35:49 +00:00
Csoregi Natalia
5f6f55422f Backed out changeset 5c137b3793a7 (bug 1594931) for failures on test_sdr_preexisting.js. CLOSED TREE
--HG--
rename : security/manager/ssl/tests/unit/test_broken_fips/key4.db => security/manager/ssl/tests/unit/test_sdr_preexisting/key4.db
2019-12-16 18:52:41 +02:00
J.C. Jones
4916451c01 Bug 1594931 - Stop compiling NSS' DBM legacy database r=kjacobs,keeler,mhowell,MattN
This change modifies all tests that use key3/cert8 to use the new files. It
removes test_sdr_upgraded_with_password, as without the upgrade part that is now
the same test as test_sdr_preexisting_with_password.

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

--HG--
rename : security/manager/ssl/tests/unit/test_sdr_preexisting/key4.db => security/manager/ssl/tests/unit/test_broken_fips/key4.db
extra : moz-landing-system : lando
2019-12-14 18:52:26 +00:00
James Teh
437c05d961 Bug 1601537: Fix text navigation in text leaf Accessibles on Android. ?MarcoZ r=MarcoZ
For paragraphs, divs, spans, etc., a11y focus on Android goes to text leaf Accessibles, rather than to the HyperTextAccessible container.
This does make sense, as these containers frequently embed other content, so the text needs to be reachable as a separate item.
However, previously, performing text navigation on these text leaf Accessibles returned the HyperTextAccessible parent.
This isn't supported by Talkback, and even if it were, it causes other problems; e.g. a11y focus being lost if the user was focused on a child other than the first child of such a container.
Therefore, if text navigation was performed on a text leaf Accessible, we now return a result within the text leaf Accessible if possible, rather than the HyperTextAccessible.

1. Make AccessibleWrap::GetTextContents support text leaf Accessibles (for both local and remote proxied Accessibles).
    This is used when providing text for text traversal events.

2. When navigating text on Android, we use Pivot::Next/PrevText.
    However, this will always return a HyperTextAccessible, even when starting on a text leaf.
    Therefore, if the result from Pivot::Next/prevText resides entirely within the same text leaf, translate the offsets from the HyperTextAccessible so they're relative to the text leaf and return the text leaf.

3. Pivot::Next/PrevText already supported starting from a text leaf Accessible.
    However, they ignored the offsets, which meant that navigating from a text leaf would always navigate to the start/end of the text leaf.
    Now, if a text leaf is passed to Pivot::Next/PrevText, the offsets (if specified) are translated to the HyperTextAccessible parent first.

4. Adjust the existing character/word/line tests so they ensure that navigation returns the node that has a11y focus; i.e. the text leaf.

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

--HG--
extra : moz-landing-system : lando
2019-12-16 06:25:54 +00:00
Andreea Pavel
1adff31cb1 Backed out changeset 7d55de92c194 (bug 1594931) for failing xpcshell at test_sdr_preexisting.js on a CLOSED TREE
--HG--
rename : security/manager/ssl/tests/unit/test_broken_fips/key4.db => security/manager/ssl/tests/unit/test_sdr_preexisting/key4.db
2019-12-13 22:48:02 +02:00