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

751365 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 168b2347b3 Bug 1700871 - Only allow focus move for links / form submission iff actually handling user input. r=smaug
The other navigation that allows focus moves (window.open) already goes
through the popup blocker, so that one is fine.

I think given how weird yet conservative other browsers are, this should
be a good trade-off to avoid false positives.

Differential Revision: https://phabricator.services.mozilla.com/D110196
2021-03-31 01:51:46 +00:00
Kartikaya Gupta 2c09fd18ba Bug 1700562 - Ensure we pass string literals to panic's first argument. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D110351
2021-03-31 01:06:28 +00:00
Glenn Watson bb6799c7b5 Bug 1700539 - Allow negative scale in ScaleOffset type. r=gfx-reviewers,kvark
Previously, a transform with a negative scale would result in a
new coordinate system being created when updating the spatial
tree.

This meant that a primitive in that space with a clip in a parent
space would create a clip mask (and was thus unable to be promoted
to a compositor surface).

This change allows negative scales to be part of the same coord
system (since they are still axis-aligned with the parent) and
avoid a clip mask in this case.

Differential Revision: https://phabricator.services.mozilla.com/D109580
2021-03-31 00:48:48 +00:00
Mike Hommey 85e065c14d Bug 1700885 - Add a runtime way to disable MozWalkTheStack. r=Gankra
WalkTheStack* is the function that is being called to print stacks to
the user on e.g. MOZ_CRASH on debug builds. Until bug 1699375, some
cases weren't covered, which now cause unwanted side-effects with e.g.
fuzzing. At least as a stop-gap, allow to runtime-disable the behavior
via an environment variable.

Other uses of the stack-walker, like the profiler's, are not affected
when setting the environment variable.

Differential Revision: https://phabricator.services.mozilla.com/D110199
2021-03-31 00:47:58 +00:00
Emma Malysz 8a5dada450 Bug 1701025, ensure menuseparators are shown in proton app menu r=desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D110145
2021-03-31 00:34:22 +00:00
Dorel Luca 8f585f5b28 Backed out 4 changesets (bug 1700184) for Browser-chrome failures in formautofill/test/browser/browser_check_installed.js. CLOSED TREE
Backed out changeset 2944365f6a2e (bug 1700184)
Backed out changeset b48692ff9385 (bug 1700184)
Backed out changeset 1fc2d71ba21c (bug 1700184)
Backed out changeset c4ac52593f2e (bug 1700184)
2021-03-31 03:39:22 +03:00
Mike Hommey b8c3926de9 Bug 1700562 - Update builders to rustc 1.51. r=firefox-build-system-reviewers,andi,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D109850
2021-03-30 23:26:29 +00:00
Kartikaya Gupta b3b9a2d6d6 Bug 1700562 - Remove stray semicolon in windows-only rust file. r=gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D110307
2021-03-30 23:26:29 +00:00
Jeff Gilbert 46f5573f62 Bug 1702069 - Cleanup of GLContextGLX code. r=lsalzman
* More const
* RAII wrapper instead of macro wrappers
* Add function name to X ERROR spew
* Reduce buffer size, because 100 is plenty. (usual len is <10)

Differential Revision: https://phabricator.services.mozilla.com/D110340
2021-03-30 23:16:11 +00:00
Emilio Cobos Álvarez 22df991215 Bug 1701830 - Remove LookAndFeelCache. r=cmartin,geckoview-reviewers,mstange,esawin
Now that RemoteLookAndFeel is enabled everywhere, this is dead code.

Differential Revision: https://phabricator.services.mozilla.com/D110179
2021-03-30 22:58:22 +00:00
Iain Ireland 45cf139faf Bug 1701208: Specialize OSR-only phis before inserting conversions r=jandem
If we specialize OSR-only phis to `MIRType::Value` during conversion, then it is possible for `adjustPhiInputs` to see a phi that is still `MIRType::None`. On x86, this ends up with us crashing while trying to box a Value.

It's more robust to do a separate pass at the end of phi specialization, before we start converting.

Differential Revision: https://phabricator.services.mozilla.com/D109976
2021-03-30 22:38:33 +00:00
Iain Ireland 6f2d48ba35 Bug 1701713: Re-enable recover-objects.js r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D110124
2021-03-30 22:38:20 +00:00
Kris Maglione 97ee1a3fa1 Bug 1594921: Don't send top-level location change events early in BrowserChild lifetime. r=nika
Doing so results in unexpected load events for the initial about:blank
document, which the frame script implementation did not see.

Differential Revision: https://phabricator.services.mozilla.com/D110173
2021-03-30 21:52:25 +00:00
Alexandre Poirot 247b41df3c Bug 1696372 - [devtools] Migrate the rest of DevTools from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110212
2021-03-30 21:29:40 +00:00
Alexandre Poirot 23ca20118f Bug 1696372 - [devtools] Migrate styleditor panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110211
2021-03-30 21:29:39 +00:00
Alexandre Poirot 76159a7d58 Bug 1696372 - [devtools] Migrate netmonitor panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110210
2021-03-30 21:29:39 +00:00
Alexandre Poirot 6b3fd01026 Bug 1696372 - [devtools] Migrate inspector panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110209
2021-03-30 21:29:38 +00:00
Alexandre Poirot 1e42ba365c Bug 1696372 - [devtools] Migrate options panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110208
2021-03-30 21:29:38 +00:00
Alexandre Poirot 22f744cdaf Bug 1696372 - [devtools] Migrate debugger panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110207
2021-03-30 21:29:38 +00:00
Alexandre Poirot ed6eb0f3ae Bug 1696372 - [devtools] Migrate application panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110206
2021-03-30 21:29:37 +00:00
Alexandre Poirot 4e9f73a03a Bug 1696372 - [devtools] Migrate accessibility panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110205
2021-03-30 21:29:37 +00:00
Luca Greco 40f60fbd27 Bug 1700184 - Bump webcompat builtin addon version. r=twisniewski,webcompat-reviewers
Depends on D109396

Differential Revision: https://phabricator.services.mozilla.com/D109397
2021-03-30 20:46:45 +00:00
Luca Greco cabc8b59dc Bug 1700184 - Bump screenshots builtin addon version. r=mixedpuppy
Depends on D109395

Differential Revision: https://phabricator.services.mozilla.com/D109396
2021-03-30 20:46:45 +00:00
Luca Greco 6624e7317d Bug 1700184 - Bump formautofill builtin addon version. r=mixedpuppy
Depends on D109394

Differential Revision: https://phabricator.services.mozilla.com/D109395
2021-03-30 20:46:44 +00:00
Luca Greco 2071c84ed3 Bug 1700184 - Bump report-site-issue version and remove redundant Services definition from aboutConfigPrefs.js API. r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D109394
2021-03-30 20:46:43 +00:00
Kagami Sascha Rosylight fecaac5d19 Bug 1701824 - Hide ondevicelight behind a flag r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D110177
2021-03-30 20:44:47 +00:00
Kagami Sascha Rosylight b046eaa662 Bug 1701789 - Restore UserProximityEvent r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D110172
2021-03-30 20:44:47 +00:00
Stephen A Pohl f01ba326dd Bug 1700371: Update references for Mac OS X to macOS in nsIWidget.h. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D110146
2021-03-30 20:07:10 +00:00
Stephen A Pohl 0080232ffc Bug 1700371: Improve contrast of close, minimize and maximize buttons on macOS with a light Firefox theme when the system is in dark mode. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D109981
2021-03-30 20:07:09 +00:00
Andrew Halberstadt 5e72685bda Bug 1694828 - [ci] mochitest-media: Enable windows10 debug with fission, r=jmaher
This enables the following configuration on autoland and mozilla-central:
> test-windows10-64-qr/debug-mochitest-media-fis-e10s

Differential Revision: https://phabricator.services.mozilla.com/D110161
2021-03-30 20:02:10 +00:00
Andrew Halberstadt 75a75f1c2b Bug 1694828 - [ci] mochitest-media: Enable linux64 tsan with fission r=jmaher
This enables the following tasks on autoland and central:

> test-linux1804-64-tsan/opt-mochitest-media-fis-e10s

Depends on D110159

Differential Revision: https://phabricator.services.mozilla.com/D110160
2021-03-30 20:02:10 +00:00
Molly Howell 90fe7779d5 Bug 1696054 Part 2 - Remove doorhanger what's new link from app update code. r=application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D110190
2021-03-30 19:51:33 +00:00
Molly Howell 70c88a07ee Bug 1696054 Part 1 - Update copy for application update notification panels. r=mconley,flod
Also remove the What's New links from the notifications that had those, along
with the associated string, since the new designs do not include those links.

Differential Revision: https://phabricator.services.mozilla.com/D110189
2021-03-30 19:51:32 +00:00
Jason Orendorff abe3d9f761 Bug 1662559 - Part 20: Tweak some comments in NameOpEmitter.h. r=arai
Depends on D108301

Differential Revision: https://phabricator.services.mozilla.com/D108302
2021-03-30 19:44:35 +00:00
Jason Orendorff 6340560d46 Bug 1662559 - Part 19: Emit DeclarationKind::PrivateName declarations and use all the optimized paths in PrivateOpEmitter. r=arai
At the same time, the initialization and storage of private methods is changed
to what the PrivateOpEmitter expects.

There are some barely-observable differences in behavior, resulting in two jit-test changes:

*   fields/bug1683784.js - An error message changed. Not really better or worse.

*   js/src/jit-test/tests/parser/script-source-extent.js - The debugger is able
    to observe initializers as individual scripts. We are no longer using
    initializers for private methods that can be optimized, and the debugger
    therefore observes the change.  I adjusted the test to expect the new
    behavior.

All js/src/tests pass.

Depends on D108300

Differential Revision: https://phabricator.services.mozilla.com/D108301
2021-03-30 19:44:35 +00:00
Jason Orendorff 37b6d0f84c Bug 1662559 - Part 18: Remove all support for private members from ElemOpEmitter. r=arai
Depends on D108299

Differential Revision: https://phabricator.services.mozilla.com/D108300
2021-03-30 19:44:34 +00:00
Jason Orendorff 13e102bcd2 Bug 1662559 - Part 17: Change BytecodeEmitter to use the new PrivateOpEmitter class. r=arai
Depends on D108298

Differential Revision: https://phabricator.services.mozilla.com/D108299
2021-03-30 19:44:34 +00:00
Jason Orendorff 37db8e0f5f Bug 1662559 - Part 16: Add PrivateOpEmitter, based on PropOpEmitter. r=arai
Depends on D108297

Differential Revision: https://phabricator.services.mozilla.com/D108298
2021-03-30 19:44:34 +00:00
Jason Orendorff 5632dc4fab Bug 1662559 - Part 15: Add AST node types for private member access expressions (`obj.#member`). r=arai
The new parse nodes then need to be handled throughout the BytecodeEmitter. No
change in behavior.

Depends on D108296

Differential Revision: https://phabricator.services.mozilla.com/D108297
2021-03-30 19:44:33 +00:00
Jason Orendorff d6e083026b Bug 1662559 - Part 14: Minor refactor for BytecodeEmitter::emitSetOrInitializeDestructuring. r=arai
The diff is a mess, but this is very straightforward--we have a combination of
if-statements and a switch that could just be a single switch.

Depends on D108295

Differential Revision: https://phabricator.services.mozilla.com/D108296
2021-03-30 19:44:33 +00:00
Matthew Gaudet 987970aa33 Bug 1662559 - Part 13: Disallow invocation of private methods inside of evalInFrame r=arai
In order to correctly support this with the optimized storage for methods we
would need new bytecode like GetAliasedVar which is able to traverse
non-EnvironmentObject environments like DebugEnvironmentProxy.

Unfortunately, for safety this means we will ultimately disable this for a number of
different private field and accessor invocations.

Differential Revision: https://phabricator.services.mozilla.com/D109402
2021-03-30 19:44:32 +00:00
Matthew Gaudet f659b44788 Bug 1662559 - Part 12: Modify effectiveScopePrivateFieldCache to store NameLocations as well. r=arai
By storing NameLocations we also get a BindingKind, which allows us to disambiguate between
PrivateMethods and Synthetics.

Differential Revision: https://phabricator.services.mozilla.com/D109401
2021-03-30 19:44:32 +00:00
Jason Orendorff 87afbb1c4f Bug 1662559 - Part 11: Move .privateBrand to a fixed location and add BytecodeEmitter::lookupPrivate() to find it. r=arai
Depends on D108294

Differential Revision: https://phabricator.services.mozilla.com/D108295
2021-03-30 19:44:32 +00:00
Jason Orendorff 5888c1da3d Bug 1662559 - Part 10: Propagate BindingKind::PrivateMethod to scope data. r=arai
This would cause private methods to be marked as such on scopes, except that
the parser still declares them as `DeclarationKind::Synthetic` for now.

Depends on D108293

Differential Revision: https://phabricator.services.mozilla.com/D108294
2021-03-30 19:44:31 +00:00
Jason Orendorff 135221fe07 Bug 1662559 - Part 9: Migrate all ClassBodyScope bindings to be Synthetic. r=arai
This affects bytecode, as Synthetic bindings do not get TDZ checks.

This patch also tightens up some assertions when creating ScopeData. There are
several methods that create ScopeData, and they had gotten out of sync. The
assertions check that the ScopeData is not silently dropping bindings that were
present in ParseContext::Scope::declared_.

Depends on D108292

Differential Revision: https://phabricator.services.mozilla.com/D108293
2021-03-30 19:44:31 +00:00
Jason Orendorff 1058803247 Bug 1662559 - Part 8: Add BindingKind::PrivateMethod. r=arai
This is how the frontend will later identify private methods in order to emit
special bytecode.

Depends on D108291

Differential Revision: https://phabricator.services.mozilla.com/D108292
2021-03-30 19:44:30 +00:00
Jason Orendorff f1c8c6faae Bug 1662559 - Part 7: Add BindingKind::Synthetic, a kind of binding for pseudo-bindings. r=arai
This is currently used only by the bindings in a ClassBodyScope.

The behavior of these bindings is like Var bindings. There is no longer a TDZ
check, and we don't bother marking them as Uninitialized. So the special case
introduced in bug 1683746, peeking at the binding name to see if we should skip
the TDZ check, is no longer needed.

Depends on D108290

Differential Revision: https://phabricator.services.mozilla.com/D108291
2021-03-30 19:44:30 +00:00
Jason Orendorff 6c5e5a41ff Bug 1662559 - Part 6: Stamp the private brand on instances. r=arai
This adds a hasPrivateBrand bit to the MemberInitializers struct in the
stencil. It is necessary to persist this bit across compilation units because
emitInitializeInstanceMembers can be called in direct eval code inside a
derived-class constructor.

Since .privateBrand is currently a `let` binding, this currently emits an
unnecessary CheckAliasedLexical instruction in the constructor for each class
that has nonstatic private methods. We'll eliminate these later on.

Depends on D108289

Differential Revision: https://phabricator.services.mozilla.com/D108290
2021-03-30 19:44:30 +00:00
Jason Orendorff a4acd0d48c Bug 1662559 - Part 5: Add .privateBrand to class body scopes. r=arai
Not every class gets this special binding. It will be needed for all classes
that have any nonstatic private methods, getters, or setters. With this patch,
we create a .privateBrand binding in the scopes for such classes, and populate
it with a symbol when initializing the class. However, it is not yet being used
anywhere; the constructor does not yet stamp instances with the private brand.

Depends on D108288

Differential Revision: https://phabricator.services.mozilla.com/D108289
2021-03-30 19:44:29 +00:00
Jason Orendorff 378cc43549 Bug 1662559 - Part 4: Introduce ClassBodyLexicalEnvironmentObject. r=arai
It is a copy of BlockLexicalEnvironmentObject. Note that

-   ClassBodyScope is *not* a LexicalScope, BUT

-   ClassBodyLexicalEnvironmentObject *is* a LexicalEnvironmentObject

This is strictly a matter of how much implementation is shared. The word
"Lexical" in LexicalEnvironmentObject, and to some extent throughout
SpiderMonkey, is alas already pretty meaningless. In the language
specification, all environments are lexical environments.

Depends on D108286

Differential Revision: https://phabricator.services.mozilla.com/D108287
2021-03-30 19:44:29 +00:00