Граф коммитов

765976 Коммитов

Автор SHA1 Сообщение Дата
Nika Layzell 15880d1df1 Bug 1722832 - Streamline UX for `./mach ide vscode` with existing settings or in remote shells, r=andi
This patch has a few minor improvements to `./mach ide vscode` to make
it nicer to use in various situations. Specifically:

 * Tries to locate the `code` using `shutil.which` in addition to the
   existing methods so that the binary is found when being run from
   within a vscode remote shell.

 * If locating the code binary fails, only prompts to ask whether or not
   to continue, rather than requiring entering the complete path. The
   only use of the vscode command is to start an instance connected to the
   correct path, so if no binary was found, a message is logged instead.
   (bug 1699943)

 * When changes need to be made to the settings.json file, a full diff is
   shown between the old and new files, rather than just showing the
   computed state before and after.

 * If parsing the existing settings.json file fails (e.g. because there
   were c-style comments in it - see bug 1670997), the diff is shown and
   an additional warning is emitted to ask if the change should be made.

Differential Revision: https://phabricator.services.mozilla.com/D121157
2021-08-10 15:34:44 +00:00
Dana Keeler 2a64c08522 Bug 1724072 - allow enabling 3DES only when deprecated versions of TLS are enabled r=rmf
Chrome has removed 3DES completely[0], but we're still seeing some uses of it
in telemetry. Our assumption is that this is either due to old devices that
can't be upgraded, and hence probably use TLS 1.0, or servers that bafflingly
choose 3DES when there are other, better, ciphersuites in common.
This patch allows 3DES to only be enabled when deprecated versions of TLS are
enabled. This should protect users against the latter case (where 3DES is
unnecessary) while allowing them to use it in the former case (where it may be
necessary).

NB: The only 3DES ciphersuite gecko makes possible to enable is
TLS_RSA_WITH_3DES_EDE_CBC_SHA. This patch also changes the preference
corresponding to this ciphersuite from "security.ssl3.rsa_des_ede3_sha" to
"security.ssl3.deprecated.rsa_des_ede3_sha".

[0] https://www.chromestatus.com/feature/6678134168485888

Differential Revision: https://phabricator.services.mozilla.com/D121797
2021-08-10 15:25:37 +00:00
Edgar Chen 89f9ad2708 Bug 1723521 - Part 3: Implement and ship ElementInternals.shadowRoot; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D121566
2021-08-10 15:15:37 +00:00
Edgar Chen a599b69db0 Bug 1723521 - Part 2: Add available-to-element-internals flag in ShadowRoot; r=smaug
See https://github.com/whatwg/dom/pull/893.

Differential Revision: https://phabricator.services.mozilla.com/D121565
2021-08-10 15:15:36 +00:00
Edgar Chen 8a6f168f50 Bug 1723521 - Part 1: Add "precustomized" custom element state; r=smaug
See https://github.com/whatwg/dom/pull/894 and https://github.com/whatwg/html/pull/5909

Differential Revision: https://phabricator.services.mozilla.com/D121564
2021-08-10 15:15:36 +00:00
Haik Aftandilian 4c3aebfa63 Bug 1714382 - Patch 2 - Correct description of MacMemoryPressureSysctl r=jrmuizel DONTBUILD
Correct the description of the MacMemoryPressureSysctl crash annotation to indicate 1 is the value for normal memory pressure.

The integer values are from the XNU kernel event.h header file and observable with `$ sysctl kern.memorystatus_vm_pressure_level`.

Differential Revision: https://phabricator.services.mozilla.com/D122032
2021-08-10 15:08:36 +00:00
Toshihito Kikuchi 265f10f0b9 Bug 1708741 - Add a new testcase for WinRemoteMessageReceiver. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D122170
2021-08-10 15:07:17 +00:00
Mathieu Leplatre e552281894 Bug 1654693 - Make sure Remote Settings doesn't use HTTP3 r=mixedpuppy,jwhitlock
This patch upgrades the kinto-http.js library to add a `fetchFunc` hook.

We then replace calls to `fetch()` everywhere by `Utils.fetch()` which will leverage ServiceRequest, a derivative of XMLHTTPRequest that sets the beConservative flag.

Differential Revision: https://phabricator.services.mozilla.com/D121531
2021-08-10 14:54:04 +00:00
Bryce Seager van Dyk ffe6a8ce4d Bug 1724751 - Plumb key system arg to CDM creation. r=alwu
This enables us to use CDMs that support multiple key systems. E.g. if we have a
CDM that supports keySystem1 and keySystem2, and it needs to know which key
system we want, this lets us tell it which.

This exact case can be used to let us have a more flexible and configurable
clearkey CDM with differently behaved key systems for specific tests.

Differential Revision: https://phabricator.services.mozilla.com/D122137
2021-08-10 14:54:02 +00:00
Bryce Seager van Dyk 260bbe6069 Bug 1724751 - Instead of tags, accept a key system as an argument to GeckoMediaPluginService::GetCDM. r=alwu
Right now, GetCDM is only called with aTags containing a key system string. This
patch changes the function args to reflect that. This makes it easier to reason
about the function without having to look up call sites.

Differential Revision: https://phabricator.services.mozilla.com/D122136
2021-08-10 14:54:02 +00:00
Jan Varga 4311e5674b Bug 1599979 - Enable LSNG on Release; r=dom-storage-reviewers,jari,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D121941
2021-08-10 14:53:34 +00:00
Andrew McCreight 9a1e961b28 Bug 1724946 - Remove XP_BEOS from Preferences.cpp. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D122250
2021-08-10 14:53:19 +00:00
Michelle Goossens e4f0a37c76 Bug 1723573 - Migrate mochitest-devtools-chrome from AWS to Azure r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D122110
2021-08-10 14:49:46 +00:00
Andrew McCreight 4236f6d708 Bug 1724947 - Remove uses of XP_BEOS from nsFileStreams.cpp. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D122251
2021-08-10 14:43:52 +00:00
Narcis Beleuzu daed5248e2 Backed out 12 changesets (bug 1719550) for bustages on TestCollator.cpp . CLOSED TREE
Backed out changeset 3b2735a29138 (bug 1719550)
Backed out changeset 5e2019335244 (bug 1719550)
Backed out changeset 105676dd2d6f (bug 1719550)
Backed out changeset b4b0d58778e9 (bug 1719550)
Backed out changeset 3ef5792020bb (bug 1719550)
Backed out changeset 389a77da6ddc (bug 1719550)
Backed out changeset 48f39b5ef77f (bug 1719550)
Backed out changeset bd125cc5b9b4 (bug 1719550)
Backed out changeset a8b778ca2375 (bug 1719550)
Backed out changeset b14702168fb9 (bug 1719550)
Backed out changeset 7b46b5cc7424 (bug 1719550)
Backed out changeset 6b04162618a1 (bug 1719550)
2021-08-10 17:46:34 +03:00
Tooru Fujisawa 1e719cb331 Bug 1724553 - Fix include files in js/public/String.h. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D122185
2021-08-10 14:40:35 +00:00
Emilio Cobos Álvarez 624584c368 Bug 1724405 - Make ui.caretBlinkCount a proper widget int, and make it respect GTK settings. r=stransky
And make sure the caret ends up being visible, rather than _not_
visible.

This should be implementable on windows as well. It seems macOS doesn't
have a timeout thing.

Differential Revision: https://phabricator.services.mozilla.com/D122132
2021-08-10 14:39:27 +00:00
Nika Layzell 9a93da8ebd Bug 1650089 - Part 9: Report errors back to caller when messaging from outside of a GeckoView controlled window, r=agi
Differential Revision: https://phabricator.services.mozilla.com/D122147
2021-08-10 14:31:19 +00:00
Nika Layzell 08996b5877 Bug 1650089 - Part 8: Avoid race when calling loadContentPage with about:blank, r=kmag
Without this change, there was a race where the promiseBrowserLoaded promise
from the loadURL call could return early due to observing the load completing
for the default about:blank document, rather than for the second explicit
about:blank load, leading to intermittent timeouts due to loads interrupting
one-another. This change skips the default about:blank document load with
nodefaultsrc, avoiding the issue.

Differential Revision: https://phabricator.services.mozilla.com/D121778
2021-08-10 14:31:19 +00:00
Nika Layzell f0aa6596df Bug 1650089 - Part 7: Avoid process-switching in devtools test to keep it passing, r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D121286
2021-08-10 14:31:18 +00:00
Nika Layzell d1e4226c32 Bug 1650089 - Part 6: Don't set maychangeremoteness on non-e10s browsers, r=Gijs
This change makes all browsers which were not created with an initial `remote`
attribute within a non-`useRemoteTabs` window be unable to process-switch, as
otherwise we may attempt to switch loads into a content process. We need to
keep process switching enabled for explicitly-remote browsers loaded in a
non-`useRemoteTabs` window as it's relied on for tests and can lead to
assertion failures due to loading remote content in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D121285
2021-08-10 14:31:18 +00:00
Nika Layzell beae93f726 Bug 1650089 - Part 5: Skip the unnecessary about:blank load when loading view-source for a document, r=Gijs
This load was causing a process switch after the changes in this patch.
This caused the view-source load to also process-switch back when loaded
and confused some view-source machinery. The load isn't necessary, and
if skipped the process switch due to navigation will not occur.

Differential Revision: https://phabricator.services.mozilla.com/D120736
2021-08-10 14:31:17 +00:00
Nika Layzell e856f2d394 Bug 1650089 - Part 4: Update various tests with new expectations, r=annyG,kmag
The changes in the previous part had a few behaviour changes which are visible
in tests, including cross-origin iframes with sandboxed origins now loading
remotely, and process selection for chrome-triggered null principal loads
behaving differently. In general this caused more process switches.

Differential Revision: https://phabricator.services.mozilla.com/D120674
2021-08-10 14:31:17 +00:00
Nika Layzell aa9b1db7d6 Bug 1650089 - Part 3: Rework DocumentChannel-triggered process switches to support null principals, r=annyG,kmag
This is a large refactoring of the DocumentChannel process switch codepath,
with the end goal of being better able to support future process switch
requirements such as dynamic isolation on android, as well as the immediate
requirement of null principal handling.

The major changes include:
1. The logic is in C++ and has less failure cases, meaning it should be harder
   for us to error out unexpectedly and not process switch.
2. Process selection decisions are more explicit, and tend to rely less on
   state such as the current remoteType when possible. This makes reasoning
   about where a specific load will complete easier.
3. Additional checks are made after a "WebContent" behavior is selected to
   ensure that if an existing document in the same BCG is found, the load will
   finish in the required content process. This should make dynamic checks such
   as Android's logged-in site isolation easier to implement.
4. ProcessIsolation logging is split out from DocumentChannel so that it's
   easier to log just the information related to process selection when
   debugging.
5. Null result principal precursors are considered when performing process
   selection.

Other uses of E10SUtils for process selection have not yet been migrated to the
new design as they have slightly different requirements. This will be done in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D120673
2021-08-10 14:31:17 +00:00
Nika Layzell 0ebcf6961e Bug 1650089 - Part 2: Track which ContentParent is used to create a DocumentLoadListener, r=annyG,kmag
There are races which are more common after these patches where an implicit
about:blank load races with a speculative parent process load's process switch.
In this situation, bad behaviour can result as we process a navigation started
by a process which we process-switched away from. By tracking the explicit
ContentParent which is making the DocumentLoadListener request, we can catch
situations like this and avoid navigations being started from the wrong
processes.

Differential Revision: https://phabricator.services.mozilla.com/D120672
2021-08-10 14:31:16 +00:00
Nika Layzell a50cefe2cf Bug 1650089 - Part 1: Add a remoteTypeOverride option for about:blank loads triggered by chrome, r=annyG,kmag
After the changes in this bug, about:blank loads triggered by chrome will
finish in a "web" content process, as they have an untrusted null principal
without a precursor. In a few places throughout the codebase, however, we
perform about:blank loads with the explicit expectation that they do not change
processes. This new remoteTypeOverride option allows the intended final process
to be explicitly specified in this situation.

For security & simplicity reasons, this new attribute is limited to only be
usable on system-principal triggered loads of about:blank in toplevel browsing
contexts.

Differential Revision: https://phabricator.services.mozilla.com/D120671
2021-08-10 14:31:16 +00:00
Emilio Cobos Álvarez 59692ca913 Bug 1724907 - Don't use system-ui as a fallback generic. r=jfkthame
As it's usually not very useful. I don't know how easily we can add a
reliable test for this, let me know if you come up with an idea to do
that.

Differential Revision: https://phabricator.services.mozilla.com/D122222
2021-08-10 14:19:04 +00:00
Nicolas Silva 9cfa0db31b Bug 1722316 - Add UseCounter telemetry for various svg filters. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120850
2021-08-10 14:14:37 +00:00
lyavor 0ff3599ca4 Bug 1723996 - Refactor HSTS Check in NS_ShouldSecureUpgrade. r=ckerschb,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D121733
2021-08-10 14:00:22 +00:00
Jan Varga fc6c77e407 Bug 1724377 - QM: Replace nsresult with QMResult in InvalidateCache; r=jari
Differential Revision: https://phabricator.services.mozilla.com/D121947
2021-08-10 13:59:05 +00:00
Jan Varga d017e0a42a Bug 1724897 - QM: Introduce QM_TO_RESULT sub-macro; r=jari
Differential Revision: https://phabricator.services.mozilla.com/D122208
2021-08-10 13:59:05 +00:00
Jan Varga 4ad6f0533e Bug 1724895 - QM: Introduce type alias for Result<Ok, QMResult>; r=jari
This patch introduces a new type alias OkOrErr for Result<Ok, QMResult> and also converts some existing occurencies of Result<Ok, QMResult> to OkOrErr.

Differential Revision: https://phabricator.services.mozilla.com/D122206
2021-08-10 13:59:04 +00:00
Jamie Nicol 0537af1fe9 Bug 1719345 - Don't invalidate render targets after use on PowerVR. r=gfx-reviewers,jrmuizel
On PowerVR devices we have seen reports of red lines and shapes
appearing randomly on the screen. What is happening is that clip masks
are being rendered in to the RGBA8 texture atlases that were the
previous pass' target, rather than the current R8 render target. Red
shapes therefore appear on top of the cached items in the RGBA texture
atlases, and parts of these subsequently get rendered to picture cache
tiles then the screen.

This appears to be due a bug with glInvalidateFramebuffer. We call
this function once we have finished using a render target for the
frame (ie we have rendered all items which need a clip mask). But
presumably, due to the asynchronicity of OpenGL, the draw calls to
render the clip masks to the render target are in fact still pending
at this point. Perhaps the driver incorrectly recycles the render
target's memory too early, and as a result the masks get written to
the wrong texture.

This patch therefore omits the calls to glInvalidateFramebuffer on
PowerVR devices. While this bug has been hard to reproduce reliably,
it appears to solve the issue.

Differential Revision: https://phabricator.services.mozilla.com/D122221
2021-08-10 13:52:21 +00:00
Dave Townsend 7750ff39f3 Bug 1724917: Avoid work when the selector has been destroyed. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D122216
2021-08-10 13:47:55 +00:00
Dave Townsend 64e984d86f Bug 1724910: Use https test urls. r=harry
Without this this test fails when HTTPS-first mode is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D122215
2021-08-10 13:47:36 +00:00
Jonathan Kew 1f7af5607b Bug 1724795 - Fix leak in cairo-cff-subset (patch from https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/192, already merged upstream). r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D122201
2021-08-10 13:41:34 +00:00
André Bargull 682c52a924 Bug 1724913 - Part 3: Update test262 test exclusions. r=mgaudet
Depends on D122226

Differential Revision: https://phabricator.services.mozilla.com/D122227
2021-08-10 13:39:38 +00:00
André Bargull 21c56f32ca Bug 1724913 - Part 2: Update test262. r=mgaudet
Depends on D122220

Differential Revision: https://phabricator.services.mozilla.com/D122226
2021-08-10 13:39:36 +00:00
André Bargull a65531cb05 Bug 1724913 - Part 1: Update list of unsupported features. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D122220
2021-08-10 13:39:35 +00:00
Tooru Fujisawa b841c14175 Bug 1723457 - Bump jsparagus version for bug 1722002. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D122228
2021-08-10 13:08:02 +00:00
Lars T Hansen 4607b0e1be Bug 1724375 - Clean up SSE flags override code. r=jandem
The SSE flags override must be sure to reset the SSE flags first, for
reasons already stated in the code.  But if multiple flags are present
the semantics of the flag overrides is a little opaque.  We clean this
up.

Cleanup turns out to be not straightforward due to an existing latent
bug: in the presence of parallel compiles and SSE flags overrides the
flag computations can become racy.  We fix this here by forcing an
early computation of the flags and verifying that the flags are
computed before we spawn multiple threads.

There is a minor semantic change here in that the most restrictive
setting is now kept, while previously the last setting was kept, and
this was (given the structure of the calling code) always the least
restrictive setting.  In practical terms this should not matter, and
if it does we can fix fallout later.

Differential Revision: https://phabricator.services.mozilla.com/D121953
2021-08-10 12:48:39 +00:00
Frederik Braun 9294e89efa Bug 1723998 - Refactor jshacks detection and adapt for use in system principal telemetry r=ckerschb,tjr
Differential Revision: https://phabricator.services.mozilla.com/D121838
2021-08-10 12:41:02 +00:00
Rob Wu 6d4afa244f Bug 1723198 - Don't delete user.js in remotexpcshelltests.py + tests r=jmaher
The new tests in testing/xpcshell/example/ cover the following scenarios:

- Local AND remote xpcshell tests. In contrast, modifications to
  selftest.py in bug 1635227 only covered runxpcshelltests.

- `prefs=` inheritance from ancestor manifests as implemented by
  https://hg.mozilla.org/mozilla-central/rev/ac51a01611dc

- Per-file `prefs` setters (used in bug 1638099).

- Multiple prefs and comments per `prefs` line.

Differential Revision: https://phabricator.services.mozilla.com/D121632
2021-08-10 12:14:05 +00:00
Rob Wu dbf28212c1 Bug 1723536 - Clear generated user.js before start of xpcshell test r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121631
2021-08-10 12:14:04 +00:00
Rob Wu 2b1fb1c638 Bug 1716307 - Only run test_SocketScalars when there's a socket process r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D122012
2021-08-10 12:14:04 +00:00
Sebastian Hengst c15160eba4 Bug 1724715 - set mathml/relations/css-styling/color-00X.html as passing on Windows code coverage. a=perma-pass DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D122219
2021-08-10 12:11:03 +00:00
Greg Tatum e7657ad036 Bug 1719550 - Remove nsCollation; r=platform-i18n-reviewers,nordzilla
All the call sites now use mozilla::intl::Collator

Differential Revision: https://phabricator.services.mozilla.com/D121435
2021-08-10 11:46:38 +00:00
Greg Tatum 62f050ecec Bug 1719550 - Use Intl.Collator in test_locale_collation.js; r=platform-i18n-reviewers,nordzilla
This now uses JavaScript's standardized Intl.Collator.

Differential Revision: https://phabricator.services.mozilla.com/D121434
2021-08-10 11:46:38 +00:00
Greg Tatum 5fcb44e2d4 Bug 1719550 - Remove unused nsLocaleConstructors.h; r=platform-i18n-reviewers,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D121433
2021-08-10 11:46:38 +00:00
Greg Tatum ee5176c26e Bug 1719550 - Unify collator in mozStorageService and SQLCollations; r=platform-i18n-reviewers,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D121432
2021-08-10 11:46:37 +00:00