Commit Graph

760375 Commits

Author SHA1 Message Date
Butkovits Atila
e4394b27a2 Backed out 3 changesets (bug 1715142) for causing build bustages. CLOSED TREE
Backed out changeset 7e67994f6a65 (bug 1715142)
Backed out changeset f58d5156f332 (bug 1715142)
Backed out changeset f8a7bd4519c6 (bug 1715142)
2021-06-11 21:20:02 +03:00
Daniel Holbert
5b30ebbe89 Bug 1713912 followup: drop trailing blank space. (no review, whitespace-only) DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D117555
2021-06-11 18:05:45 +00:00
Dana Keeler
f84faf1bf5 Bug 1715142 - introduce nsIPublicKeyPinningService and remove 'type' parameter from nsISiteSecurityService r=rmf,necko-reviewers
The public key pinning implementation is much less complex than the HSTS
implementation, and only needs a small subset of the parameters of the latter.
Furthermore, the information it relies on is static, and so is safe to access
from content processes. This patch separates the two implementations, thus
simplifying both of them and avoiding some unnecessary IPC calls in the
process.

Differential Revision: https://phabricator.services.mozilla.com/D117096
2021-06-11 17:58:19 +00:00
Dana Keeler
26694f522d Bug 1715142 - convert pinning to use a static pref r=rmf
This patch converts the pinning preference
"security.cert_pinning.enforcement_level" to be static. It also removes some
unused pinning preferences and parameters.

Differential Revision: https://phabricator.services.mozilla.com/D117095
2021-06-11 17:58:19 +00:00
Dana Keeler
6c87c3560b Bug 1715142 - clear the TLS session cache in SetDisableAllSecurityChecksAndLetAttackersInterceptMyData r=rmf
Previously, SetDisableAllSecurityChecksAndLetAttackersInterceptMyData would
only work as expected if another operation happened to clear the TLS session
cache (namely, changing a preference that caused nsNSSComponent to change its
TLS options and clear the TLS session cache). This patch ensures that this
function works without relying on such coincidences.

Differential Revision: https://phabricator.services.mozilla.com/D117495
2021-06-11 17:58:18 +00:00
Gavin Lazar Suntop
6862151ddf Bug 1713187 - adding unique button ids r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D117445
2021-06-11 17:32:40 +00:00
Daniel Holbert
d888a478ae Bug 1713912: Remove skip-if-fission annotations for tests browser_modal_print.js and browser_print_in_container.js. r=emilio
In the former case (for browser_modal_print.js), the test-failures seem to just
be bug 1700803, a known intermittent that's not asan/fission-specific (though
it might be worse with fission -- we can keep an eye on failure rates to see).

In the latter case (for browser_print_in_container.js), it looks like the test
has some known intermittent timeouts on slow configurations, and it's had some
observed timeouts on **non-fission** Linux-ASAN runs.  So it seems likely that
our Linux+ASAN+fission annotation there was accidentally too-specific, and
fission probably wasn't a relevant subcondition there.  Therefore, this patch
is just removing fission from that condition, so the test will now be skipped on
Linux ASAN testruns in general.

Differential Revision: https://phabricator.services.mozilla.com/D117363
2021-06-11 17:32:03 +00:00
Emilio Cobos Álvarez
4636894911 Bug 1715251 - Reset native appearance on macOS in-content menulist popups as well. r=mconley
The windows bit doesn't need to be win10 specific since bug 1713563 either,
really.

Differential Revision: https://phabricator.services.mozilla.com/D117464
2021-06-11 17:11:43 +00:00
Nicolas Chevobbe
7463b2b837 Bug 1715951 - [devtools] Remove testActor#waitForEventOnNode. r=bomsy.
Depends on D117509

Differential Revision: https://phabricator.services.mozilla.com/D117511
2021-06-11 15:53:59 +00:00
Nicolas Chevobbe
3862784164 Bug 1715949 - [devtools] Remove testActor#getWindowDimensions. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D117509
2021-06-11 15:53:58 +00:00
Nicolas Chevobbe
eeca16e6eb Bug 1714291 - [devtools] Remove unused reflow helper method. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D117508
2021-06-11 15:53:58 +00:00
Nicolas Chevobbe
b352b0b314 Bug 1715938 - [devtools] Remove testActor#scrollWindow. r=jdescottes.
Depends on D117438

Differential Revision: https://phabricator.services.mozilla.com/D117507
2021-06-11 15:53:57 +00:00
Gregory Mierzwinski
4c06787a22 Bug 1708760 - Add a pageload test for about:welcome. r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D117190
2021-06-11 15:52:47 +00:00
Gregory Mierzwinski
27a0af4fdf Bug 1708760 - Build conditioned profiles during the tests. r=perftest-reviewers,AlexandruIonescu
This patch adds the ability to build conditioned profiles during a test (i.e. in-test, prebuilt, or in-task for CI). Using the `artifact:` prefix in --conditioned-profile will cause the conditioned profile to be downloaded from mozilla-central rather than being built locally.

The condprof package was also modified to prevent it from building and saving logs that are not very useful in local runs, preventing useless downloads or archiving, and to also be able to obtain the location of the test-built profile.

Differential Revision: https://phabricator.services.mozilla.com/D116520
2021-06-11 15:52:47 +00:00
Dorel Luca
71abb3ab93 Backed out changeset 43a82597dade (bug 1699837) for Crashtest in layout/printing/crashtests/1671503.html. CLOSED TREE 2021-06-11 19:48:10 +03:00
Dorel Luca
051b42edec Backed out 4 changesets (bug 1714141) for Mochitest failures in builds/worker/checkouts/gecko/js/src/vm/HelperThreads.cpp. CLOSED TREE
Backed out changeset b4a5d2747861 (bug 1714141)
Backed out changeset ab5b2926963a (bug 1714141)
Backed out changeset 49dcb1536d0a (bug 1714141)
Backed out changeset a2e92a213ed2 (bug 1714141)
2021-06-11 19:34:41 +03:00
Dorel Luca
8720353dbf Backed out changeset 1968ba484b6f (bug 1697905) on dev's request 2021-06-11 18:04:51 +03:00
Julian Descottes
60a999f8a1 Bug 1715741 - [devtools] Enable a few inspector tests which already work with bfcache in parent r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D117407
2021-06-11 14:39:07 +00:00
Nicolas Chevobbe
bce69a58f1 Bug 1715985 - [devtools] Upgrade to pretty-fast 0.2.7. r=jdescottes.
This will unblock the migration to Node 12.

Differential Revision: https://phabricator.services.mozilla.com/D117537
2021-06-11 14:39:05 +00:00
Dorel Luca
e1f4d9bb38 Backed out changeset 17e7b969b830 (bug 1713491) for Linux build bustage in gecko/dom/events/ContentEventHandler.cpp. CLOSED TREE 2021-06-11 17:52:10 +03:00
Nicolas Silva
2be01aafa4 Bug 1711648 - Move LayoutRect to the Box2D representation. r=jrmuizel.
Differential Revision: https://phabricator.services.mozilla.com/D117293
2021-06-11 13:33:10 +00:00
Nicolas Silva
8c3cb30358 Bug 1711648 - Move RasterRect to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117292
2021-06-11 13:33:09 +00:00
Nicolas Silva
2fd526f0b1 Bug 1711648 - Move TileRange to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117291
2021-06-11 13:33:09 +00:00
Nicolas Silva
4336044ca3 Bug 1711648 - Move TileRect to the Box2D representation. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D117290
2021-06-11 13:33:08 +00:00
Nicolas Silva
724b80d537 Bug 1711648 - Move PictureRect to the endpoint representation. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116825
2021-06-11 13:33:08 +00:00
Nicolas Silva
1e02b75f51 Bug 1711648 - Move some space conversion utilities from rect to box. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D116734
2021-06-11 13:33:07 +00:00
Andrew Osmond
805d9ce3e3 Bug 1715902 - Refuse WebRender on Linux if backed by software driver. r=jrmuizel
Reject software rasterizers on Linux (except Software WebRender) when
trying to create full WebRender, unless WebRender was force enabled.

Differential Revision: https://phabricator.services.mozilla.com/D117534
2021-06-11 13:15:17 +00:00
Emilio Cobos Álvarez
7af763acbe Bug 1699837 - Make sure that remote iframes honor print settings. r=mattwoodrow
This fixes it since we honor the print resolution properly now.

Differential Revision: https://phabricator.services.mozilla.com/D115263
2021-06-11 13:07:55 +00:00
Julian Descottes
5e8b5107e6 Bug 1715954 - [devtools] Remove in-tree copy of acorn.js r=nchevobbe
This file is no longer used. acorn is pulled from npm by the debugger and the pretty-print worker

Differential Revision: https://phabricator.services.mozilla.com/D117531
2021-06-11 12:56:00 +00:00
Julian Descottes
e21ba61a3d Bug 1715969 - [devtools] Remove debugger-tests try preset r=bomsy
Depends on D117524

This preset is redundant with the main devtools preset and not maintained

Differential Revision: https://phabricator.services.mozilla.com/D117530
2021-06-11 12:55:32 +00:00
Julian Descottes
abc180d3a7 Bug 1715969 - [devtools] Fix devtools try preset to include macos jobs r=bomsy
macos jobs moved from macosx1014 to macosx1015. Use a more generic string to match osx jobs

Differential Revision: https://phabricator.services.mozilla.com/D117524
2021-06-11 12:55:31 +00:00
Dorel Luca
5e16d5b3ba Backed out changeset c66a53cd194f (bug 1709838) for Browser-chrome failures in toolkit/components/antitracking/test/browser/browser_PBMCookieBehavior.js. CLOSED TREE 2021-06-11 16:48:32 +03:00
Dorel Luca
2190a59721 Backed out changeset c30c8b8dc0b5 (bug 1715902) on Dev's request. CLOSED TREE 2021-06-11 15:48:11 +03:00
Frederik Braun
d2731c3acc Bug 1715684 - block port 989 and 990 for ftps-data and ftps r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D117504
2021-06-11 12:35:02 +00:00
Andrew Osmond
330727f6e8 Bug 1715902 - Refuse WebRender on Linux if backed by software driver. r=jrmuizel
When trying to create a GLContextEGL or GLContextGLX, we should check to
see what our display is backed by. If using a software driver, we should
fail to create the context for WebRender, so that it can fallback to
Software WebRender.

Differential Revision: https://phabricator.services.mozilla.com/D117473
2021-06-11 12:16:36 +00:00
Christoph Kerschbaumer
e62dbaedd3 Bug 1709838: Enable HTTPS-First Mode in PBM Mode in Nightly r=arthuredelstein
Differential Revision: https://phabricator.services.mozilla.com/D114500
2021-06-11 12:11:31 +00:00
Dimi Lee
32e7bc465a Bug 1708455 - P10. Add signon.usernameOnlyForm.enabled preference r=sfoster,tgiles
Differential Revision: https://phabricator.services.mozilla.com/D116238
2021-06-11 11:56:05 +00:00
Dimi Lee
b3902dc5a9 Bug 1708455 - P9. Add telemetry probe to measure the performance of detecting username-only forms. r=sfoster,tgiles
This patch adds two telemetry to measure the performance impact after adding
multi-page login support.

Telemtry PWMGR_IS_USERNAME_ONLY_FORM gives us an idea among
all forms that contain a possible username input (type is email or text), the propotion
of those forms that are considered as a username-only form by our heuristic. We can
use this data as a hint of whether the username-only form heuristic works properly.

Telemetry PWMGR_NUM_FORM_HAS_POSSIBLE_USERNAME_EVENT_PER_DOC gives us an
idea how many forms contain a possible username input per page. If the data shows that there are a
lot of pages that contain multiple forms with a possible username input, which
triggers the new code path added in this bug, we might need to pay more attention to see whether the
change introduces performance overhead for page load.

Ex. A doc has 4 forms
<form><input type=email autocomplete=username/></form>  <!-- This is a form with a possible username input, and it is a username-only form-->
<form><input type=text autocomplete=username/></form>   <!-- This is a form with a possible username input, and it is a username-only form-->
<form><input type=email/></form>                        <!-- This is a form with a possible username input, but it is NOT a username-onlyc form -->
<form><input type=urk/></form>                          <!-- This is a form WITHOUT a possible username input -->

PWMGR_IS_USERNAME_ONLY_FORM records
bucket[0] = 1  // 1 form with a possible username input but not a username-only form
bucket[1] = 2  // 2 forms are username-only form.

PWMGR_NUM_FORM_HAS_POSSIBLE_USERNAME_EVENT_PER_DOC records
bucket[0] = 0
bucket[1] = 1  // 1 doc has 1 or more than 1 form with a possible-username input
bucket[2] = 1  // 1 doc has 2 or more than 2 form with a possible-username input
bucket[3] = 1  // 1 doc has 3 or more than 3 form with a possible-username input
bucket[4] = 0  // 0 doc has 4 or more than 4 form with a possible-username input

Depends on D113802

Differential Revision: https://phabricator.services.mozilla.com/D116237
2021-06-11 11:56:05 +00:00
Dimi Lee
4b3fa3554b Bug 1708455 - P8. Add AutoFillResult.FILLED_USERNAME_ONLY_FORM to record autofill in username-only forms. r=sfoster,tgiles
Depends on D113801

Differential Revision: https://phabricator.services.mozilla.com/D113802
2021-06-11 11:56:05 +00:00
Dimi Lee
c79fee63b8 Bug 1708455 - P7. Support login capture for multipage login forms. r=sfoster,tgiles
This patch saves the username field in a username-only form when the form is submitted.
When another form in the same document is submitted after that, if the form doesn't
have a username field, we then use the username field found in the username-only form to capture login.

This fits the case that in a multipage sign-in form, the first form is
usually a username-only form and the second form is usually a password-only form.

However, in the current approach, if in the second form, there is an input field before the
password field, we will use the input field in the second form as the username field, not the username field
in the first form. For example, in a multipage registration form, the first form is a username-only form to
enter your email, and the second form has an input field to enter the last name and a password field. With the
current approach, we will save "last name" + "password" instead of "username" + "password".

An alternate is always using the username field in the first form or coming up with a heuristic
to "compare" the two username fields. But since I haven't found a real-world example of the above scenario,
using the current approach seems a safer way to introduce the feature.

Depends on D113800

Differential Revision: https://phabricator.services.mozilla.com/D113801
2021-06-11 11:56:04 +00:00
Dimi Lee
604e31d5d3 Bug 1708455 - P6. Support autocomplete in a username-only form. r=sfoster,tgiles
In the previous patch to support autofill, a username field in a
username-only form is marked as a login manager field in '_fillForm'.
So this patch only makes autocomplete highlight work when autocomplete a username field.

This patch calls '_highlightFilledField' in 'onUsernameAutoCompleted'
when the autocompleted field is the username field in a username-only
form.
This is because when we autocomplete a username field in a form with password fields,
the highlight is done in '_fillForm'. However, in the case of a username-only
form, we don't have to call '_fillForm' anymore due to no password to fill.

Depends on D113799

Differential Revision: https://phabricator.services.mozilla.com/D113800
2021-06-11 11:56:04 +00:00
Dimi Lee
c03a1fd348 Bug 1708455 - P5. Support autofilling a username-only form. r=sfoster,tgiles
This patch does two things:
1. Checks whether a form is a username-only form after receiving 'DOMFormHasPossibleUsername' event.
   If it is, fetch logins from the parent to trigger form autofill.
2. Makes LoginManagerChild._fillForm compatible with an empty password field when there is an username field.

Depends on D113798

Differential Revision: https://phabricator.services.mozilla.com/D113799
2021-06-11 11:56:03 +00:00
Dimi Lee
a8a701a4a6 Bug 1708455 - P4. Add DOMFormHasPossibleUsernameField event to notify the password manager when a form has a text input or an email input. r=sfoster,tgiles,smaug
Right now, we limit the type of a username field in username-only forms to be either text or email.
This is different from what the password manager currently support in LoginHelper.isUsernameFieldType.
This is because text and email type are the most common cases for a username field, and we want to focus
on the cases that are more likely a username field.

This patch adds "DOMFormHasPossibleUsername" event to notify the password manager when a form has a possible
username field (text or email). The event works similar to the existing "DOMFormHasPassword" event.

Depends on D113797

Differential Revision: https://phabricator.services.mozilla.com/D113798
2021-06-11 11:56:03 +00:00
Dimi Lee
bb8bb066b1 Bug 1708455 - P3. Support showing password manager items in context menu for username fields that are in a username-only form. r=sfoster,tgiles
Before the patch, we don't show password manager items when there is no password fields found in a form.

In this patch, we do two things to support a username-only form in the context menu:
1. Add "other" category to fieldname hints. "other" is used for fields that are
   in a form but are neither "current-password", "new-password", nor "username".
   With the change, the "username" hint is now only used for fields that are considered a username field by the password manager.

2. When there is no password field in a form, ContextMenu also treat a
   form as a login form when the active field is a username field, which means it is a username-only form.

Depends on D113796

Differential Revision: https://phabricator.services.mozilla.com/D113797
2021-06-11 11:56:02 +00:00
Dimi Lee
8d762cf0e6 Bug 1708455 - P2. Support username-only forms in _getFormFields r=sfoster,tgiles
Before this patch, '_getFormFields' doesn't support forms without password fields.
In this patch, when a form doesn't have a password field, we use the
heuristic added in the previous patch to determine whether the form is a
username-only form. If it is, return the username field.

Depends on D113795

Differential Revision: https://phabricator.services.mozilla.com/D113796
2021-06-11 11:56:02 +00:00
Dimi Lee
28a04bb7a6 Bug 1708455 - P1. Add a heuristic to detect username-only login forms r=sfoster,tgiles
Differential Revision: https://phabricator.services.mozilla.com/D113795
2021-06-11 11:56:02 +00:00
Kagami Sascha Rosylight
74760a9a0e Bug 1713491 - Return std::pair from nsIFrame::GetOffsets r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D117520
2021-06-11 11:37:11 +00:00
Marian-Vasile Laza
1710dd4296 Backed out changeset a722491ae6b3 (bug 1713491) on devs request
CLOSED TREE
2021-06-11 14:31:46 +03:00
Kagami Sascha Rosylight
2d398fce26 Bug 1713491 - Remove return type of nsIFrame::GetOffsets r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D117485
2021-06-11 10:59:12 +00:00
Jon Coppeard
e19f735ced Bug 1714141 - Remove unused 'producer' condition variable r=sfink
This is unused since the internal thread pool has its own now.

Differential Revision: https://phabricator.services.mozilla.com/D117162
2021-06-11 10:34:43 +00:00