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

766102 Коммитов

Автор SHA1 Сообщение Дата
Lee Salzman 608abb2330 Bug 1719886 - Support translated no-repeat patterns in canvas FillRect. r=jrmuizel
This is a bandaid designed to cope with a subset of the encountered transforms that
may be applied to a pattern inside FillRect. The existing code did not consider the
transform at all that might be applied to a pattern when it tried to manually clip
the geometry to a no-repeat pattern.

This manual clipping only seems to occur in FillRect, whereas no-repeat patterns
are not properly handled anywhere else in canvas entry-points. To fix this more
generally requires a clamp-to-transparent tile mode (like Skia's decal or Cairo's
none) which we can't currently rely upon with our D2D support. However, that is
much beyond the scope of this temporary workaround.

Differential Revision: https://phabricator.services.mozilla.com/D122186
2021-08-10 17:37:45 +00:00
Butkovits Atila 69c0a6cb2c Backed out changeset b70a28c9a533 (bug 1723563) for causing failures on browser_accessibility_indicator.js. CLOSED TREE 2021-08-10 22:25:00 +03:00
Neil Deakin 9042a35faa Bug 1718766, only use session history in parent to get items for back-forward button context menu if items are available, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D122039
2021-08-10 17:27:11 +00:00
Bob Owen 537f72decb Bug 1723214: If BorrowDrawTarget fails in GetTextureClient just return the current front buffer. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D122261
2021-08-10 17:19:29 +00:00
Drew Willcoxon df04062dca Bug 1724786 - Fix intermittent TV failure in browser_hideHeuristic.js by requesting a longer timeout. r=harry
I had this `requestLongerTimeout()` call in my local patch in the original
revision D121785 (bug 1723158) but I forgot to push it to Phabricator before
landing. I saw this Mac TV timeout on my try pushes too, and this fixed it.

Differential Revision: https://phabricator.services.mozilla.com/D122160
2021-08-10 16:36:20 +00:00
Shane Caraveo 728ee84a7d Bug 1722942 use beConservative for proxy failover to direct r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D121234
2021-08-10 16:29:06 +00:00
Eitan Isaacson afdc2b3bcc Bug 1723563 - Get activated state from widget instead of storing it. r=Jamie
Firefox shows a blank window and then swaps it for the real thing for
percieved startup performance. This causes us to throw away the
activated state stored on the initial root widget. Instead of storing
the state, we should retrieve it from widget.

Differential Revision: https://phabricator.services.mozilla.com/D122168
2021-08-10 16:24:40 +00:00
Emma Malysz 5d067bee46 Bug 1723812: allow IOUtils promise rejection in test_strictcompatibility.js r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D122257
2021-08-10 16:24:12 +00:00
Kimberly Sereduck cc8b5f4f49 Bug 1716825: Navigate to a sub-page rather than about:blank for warm pageloads;r=perftest-reviewers,Bebe,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D120718
2021-08-10 16:18:54 +00:00
Tooru Fujisawa bf852f44b2 Bug 1723124 - Part 2: Add JS shell testing function for promise jobs. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D122004
2021-08-10 16:04:22 +00:00
Tooru Fujisawa ceba89bc46 Bug 1723124 - Part 1: Use GetFunctionRealm when creating promise reaction/thenable jobs. r=jandem
Also changed the unwrap performed in EnqueuePromiseReactionJob from unchecked
to checked, given we don't rely on the job's realm there, and fallbacking
to the current realm works.

Differential Revision: https://phabricator.services.mozilla.com/D121816
2021-08-10 16:04:21 +00:00
Greg Tatum 418e9b4700 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 16:01:19 +00:00
Greg Tatum d389d769f4 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 16:01:18 +00:00
Greg Tatum e1a87990da Bug 1719550 - Remove unused nsLocaleConstructors.h; r=platform-i18n-reviewers,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D121433
2021-08-10 16:01:18 +00:00
Greg Tatum 2684357ea1 Bug 1719550 - Unify collator in mozStorageService and SQLCollations; r=platform-i18n-reviewers,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D121432
2021-08-10 16:01:18 +00:00
Greg Tatum ae55a94309 Bug 1719550 - Unify collator in nsDirectoryIndexStream.cpp; r=platform-i18n-reviewers,necko-reviewers,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D121431
2021-08-10 16:01:17 +00:00
Greg Tatum 7525f574c9 Bug 1719550 - Unify collator in txXPathResultComparator; r=platform-i18n-reviewers,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D121430
2021-08-10 16:01:17 +00:00
Greg Tatum 26533165c0 Bug 1719550 - Unify collator in nsXULSortService and nsXULContentUtils; r=platform-i18n-reviewers,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D121429
2021-08-10 16:01:17 +00:00
Greg Tatum 6bd8bc49dc Bug 1719550 - Unify collation in nsNavHistory.cpp; r=platform-i18n-reviewers,nordzilla
This patch swaps out the nsCollation for the mozilla::intl::Collator. Note how
the options bag is now opinionated towards ECMA-402's Intl.Collator.

Differential Revision: https://phabricator.services.mozilla.com/D120526
2021-08-10 16:01:16 +00:00
Greg Tatum 8f0678e0b4 Bug 1719550 - Add a TryCreateComponent to LocaleService; r=platform-i18n-reviewers,nordzilla
This method will allow mozilla::intl components to be initialized in the current
Gecko app's locale.

Differential Revision: https://phabricator.services.mozilla.com/D121428
2021-08-10 16:01:16 +00:00
Greg Tatum ebe4dfeceb Bug 1719550 - Use mozilla::intl::Collator in the SpiderMonkey; r=anba,platform-i18n-reviewers,nordzilla
This patch attempts to directly wire the Intl.Collator implementation to the
mozilla::intl::Collator::Options bag. The only complexity that wasn't factored
out was the use of the locale keywords, which would invalidate the locale in
the current implementation.

Differential Revision: https://phabricator.services.mozilla.com/D120904
2021-08-10 16:01:15 +00:00
Greg Tatum b41f145a38 Bug 1719550 - Add support for BCP 47 extensions to mozilla::intl::Collator; r=platform-i18n-reviewers,nordzilla
SpiderMonkey requires the BCP 47 locale extensions, which involves iterating
over the keywords in ICU, and mapping them to the BCP 47 version. Specifically,
this will change the "phonebook" keyword to "phonebk". This should hopefully
expose a simpler API to SpiderMonkey, the only consumer.

Differential Revision: https://phabricator.services.mozilla.com/D120903
2021-08-10 16:01:15 +00:00
Greg Tatum c2cf97af11 Bug 1719550 - Build an initial unified mozilla::intl::Collator; r=platform-i18n-reviewers,nordzilla
This collator attempts to match the options bag from the Intl.Collator API
from ECMA-402. It is built to be compatible and consistent across both Gecko
code and SpiderMonkey code. Its behavior is designed to match ECMA-402.

Differential Revision: https://phabricator.services.mozilla.com/D120494
2021-08-10 16:01:15 +00:00
Alexandre Lissy f41c9baf2b Bug 1723753 - Remove XRE_USER_SYS_EXTENSION_DEV_DIR r=handyman,robwu,haik,gcp
Differential Revision: https://phabricator.services.mozilla.com/D121647
2021-08-10 15:54:02 +00:00
Narcis Beleuzu 625f7a5de1 Backed out changeset 4f793a75cd93 (bug 1724072) for geckoview failures . CLOSED TREE 2021-08-10 19:19:35 +03:00
Narcis Beleuzu 12bf02b2bc Backed out 2 changesets (bug 1724751) for GTest failure on ChromiumCDMAdapter.cpp . CLOSED TREE
Backed out changeset 8100f4674794 (bug 1724751)
Backed out changeset 1744680ee04d (bug 1724751)
2021-08-10 19:05:57 +03:00
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