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

696280 Коммитов

Автор SHA1 Сообщение Дата
Erik Nordin b6f5189943 Bug 1621415 - Ensure adopted styles are applied when printing r=emilio
- Add functionality to clone adopted style sheets for printing.
- Add reftest to ensure that the document's adopted styles show in print.
- Add reftest to ensure that a shadow root's adopted styles show in print.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 21:20:22 +00:00
Bianca Danforth 95f41e25c5 Bug 1616356 - Record a telemetry event the first time password generation autocomplete is shown for a site r=MattN
* To ensure it is only recorded the first time for a site per session, the event is recorded in the parent process.
* To ensure it is recorded any time the option could be displayed in the popup, there is a check everywhere AutoCompleteResultView.setResults gets called, since the 'results' object represents the options presented in the autocomplete popup, including the password generation option.
  * AutoCompleteParent.showPopupWithResults
    * This covers the case when 'results' changes, and the popup is not currently open.
  * AutoCompleteParent.invalidate
    * This covers the case when 'results' changes, and the popup is already open.
* Also removed some dead code (an extraneous if/else block) in showPopupWithResults.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 21:09:07 +00:00
Vlad Filippov b2e173a799 Bug 1590946 - Remove `service=sync` from account management links. r=rfkelly
Differential Revision: https://phabricator.services.mozilla.com/D63737

--HG--
extra : moz-landing-system : lando
2020-03-13 20:53:12 +00:00
Sylvestre Ledru 70e97e578f Bug 1622405 - Remove ConEmu r=dmajor
Depends on D66829

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

--HG--
extra : moz-landing-system : lando
2020-03-13 21:15:53 +00:00
Sylvestre Ledru 59307d7c00 Bug 1622405 - Remove MSYS2 r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D66829

--HG--
extra : moz-landing-system : lando
2020-03-13 21:14:34 +00:00
Lina Cambridge 9697819fb5 Bug 1622082 - Expose `NS_CreateBackgroundTaskQueue` to `moz_task`. r=KrisWright
This commit moves `NS_CreateBackgroundTaskQueue` into an `extern "C"`
block, adds a `create_background_task_queue` function to `moz_task`,
and makes it possible to dispatch Rust `TaskRunnable`s to any event
target, instead of just an `nsIThread`.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 21:15:51 +00:00
Andrew Halberstadt 8722570b34 Bug 1620051 - [ci] Stand up a shadow-scheduler to measure the SETA optimization strategy r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D65403

--HG--
extra : moz-landing-system : lando
2020-03-13 20:33:53 +00:00
Andrew Halberstadt 41e1cf03ee Bug 1603463 - [tryselect] Ignore 'auto' and 'empty' selectors in estimates and history, r=gbrown
Neither of these selectors involve the user choosing tasks, so showing
estimates or saving them in the 'mach try again' history doesn't make much
sense.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 20:33:51 +00:00
Andrew Halberstadt 2cf0c4fbc5 Bug 1603463 - [tryselect] Add the ability to run 'mach try auto' with alternative scheduling algorithms, r=tomprince
This allows us to change the default optimization strategy used in try pushes.
While probably not super useful to developers, it can help us easily test
changes to new and experimental optimizations on try.

This also changes the default to the 'bugbug_push_schedules' strategy, since
SETA is more or less random and shouldn't be used by 'mach try auto'. In the
future, we'll switch this back to simply using the default optimization as the
default will ideally be the best one that we have.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 20:32:14 +00:00
Andrew Halberstadt 56ba8a9ddf Bug 1603463 - Implement |mach try auto| which selects tasks on try automatically, r=tomprince
The 'auto' in 'mach try auto' stands for two things:

1. It automatically picks tasks for you.
2. It runs the same scheduling algorithms as autoland.

It accomplishes this by creating a new target_tasks method that spoofs the
'project' parameter to autoland.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 20:35:43 +00:00
Andrew Halberstadt 20db0eb3ac Bug 1603459 - [ci] Add a shadow-scheduler for the new 'bugbug-push-schedules' optimizer, r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D65586

--HG--
extra : moz-landing-system : lando
2020-03-13 20:30:57 +00:00
Andrew Halberstadt b395876bc4 Bug 1603459 - [taskgraph] Add an optimizer that queries the bugbug /push/schedules endpoint, r=tomprince
Creates an optimizer that queries https://bugbug.herokuapp.com/push/<branch>/<rev>/schedules
to determine which tasks to run.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 20:30:34 +00:00
Andrew Halberstadt 31e8f2e640 Bug 1615333 - [taskgraph] Upload an artifact from the decision task mapping tests to manifests r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D62822

--HG--
extra : moz-landing-system : lando
2020-03-13 20:30:09 +00:00
Andrew Halberstadt 616e33a998 Bug 1615333 - [taskgraph] gzip the manifests-by-task.json artifact r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D62821

--HG--
extra : moz-landing-system : lando
2020-03-13 20:29:46 +00:00
Daosheng Mu 9258842ca9 Bug 1621369 - Part 4: Support WebXR to WebVR gamepad button/axis re-mapping. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D66680

--HG--
extra : moz-landing-system : lando
2020-03-13 20:57:15 +00:00
Daosheng Mu 81a78595ce Bug 1621369 - Part 3: Adjust Oculus controller button/axis order for WebXR. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D66679

--HG--
extra : moz-landing-system : lando
2020-03-13 20:57:07 +00:00
Daosheng Mu c385d94fc2 Bug 1621369 - Part 2: Replace OpenVRControllerType with VRControllerType in IPC. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D66678

--HG--
extra : moz-landing-system : lando
2020-03-13 20:56:59 +00:00
Daosheng Mu 5469f66b91 Bug 1621369 - Part 1: Refactor OpenVR controller and adjust its button/axis order for WebXR. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D66677

--HG--
extra : moz-landing-system : lando
2020-03-13 20:56:52 +00:00
Iain Ireland b2e798ad9e Bug 1620020: Turn on optimization knobs r=mgaudet
This patch turns on various optimization options by default. A later patch will allow us to control these flags with JitOptions.

Depends on D66104

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

--HG--
extra : moz-landing-system : lando
2020-03-13 04:23:47 +00:00
Iain Ireland db8d4a568c Bug 1620020: Use MergeSort instead of std::stable_sort to appease check_vanilla_allocations.py r=mgaudet
std::stable_sort allocates a buffer internally for temporary scratch space, but SpiderMonkey doesn't want anybody to allocate memory without going through us. This patch appeases our static analysis.

Depends on D66103

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

--HG--
extra : moz-landing-system : lando
2020-03-13 04:23:47 +00:00
Iain Ireland 4817a87890 Bug 1620020: Remove invalid implementation of FixedArray r=mgaudet
FixedArray must store v8 Objects (aka JS::Values), but because it is allocated during parsing, it can't be a GC thing itself. The current implementation doesn't work. Writing a correct implementation is a little delicate. Fortunately, we only need it to support named captures, which are future work. For now, I am stubbing out the implementation of FixedArray to get rid of some GC hazards.

Depends on D66102

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

--HG--
extra : moz-landing-system : lando
2020-03-13 04:23:46 +00:00
Iain Ireland 55f9bcdb49 Bug 1620020: Implement StdoutStream r=mgaudet
StdoutStream is used for debug output when trace-regexp-parser is enabled. The existing code doesn't actually print anything. V8's implementation goes to great lengths to make output work, even on Android. Instead of pulling in dozens of lines of code just to get some debug output working, this implementation just tapes a piece of paper to its chest with "std::cerr" written in crayon and pretends.

The snprintf changes are to satisfy a static analysis (SprintfLiteralChecker).

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

--HG--
extra : moz-landing-system : lando
2020-03-13 04:23:46 +00:00
Iain Ireland 66f9cd33f5 Bug 1620020: Fix Zone implementation r=mgaudet
For obvious reasons, irregexp does not contain any calls to EnsureBallast. We therefore need to make our LifoAlloc allocation fallible so that it can allocate a new chunk if necessary.

Also, we want to use the current size of the LifoAlloc, not the peak size, to decide whether we've allocated too much memory. Nobody was using the old ComputedSizeOfExcludingThis, so I rewrote it to use the value we're already tracking.

Depends on D66100

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

--HG--
extra : moz-landing-system : lando
2020-03-13 04:23:47 +00:00
Iain Ireland e02bdf87a7 Bug 1620020: Add ICU support r=mgaudet
When ICU is available, case-insensitive non-unicode matches (/i, not /iu) are performed using precomputed sets of characters that need special handling to follow the JS spec's weird rules. These sets live in special-case.cc. In V8, special-case.cc is generated at compile time with a special build step. This is overkill. Barring changes to gen-regexp-special-case.cc, special-case.cc will only change when we import a new version of ICU, and even then only if Unicode defines new case-folding shenanigans. This patch checks in a copy of special-case.cc. I'll open another bug to hook this process up to make_unicode.py.

PS: This version of special-case.cc is actually wrong due to a bug in V8. My patch to fix it upstream is under review; I'll fix it here in a later patch.

Depends on D66099

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

--HG--
extra : moz-landing-system : lando
2020-03-13 04:23:46 +00:00
Iain Ireland 191e514387 Bug 1620020: Stub definitions for JSRegExp r=mgaudet
The actual definition of these methods depends on future changes to RegExpShared. For now, we just stub them out.

Depends on D66098

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

--HG--
extra : moz-landing-system : lando
2020-03-13 04:23:46 +00:00
Iain Ireland aa800a7eef Bug 1620020: Import non-ICU Unicode implementation r=mgaudet
This patch fills in the ICU-less Unicode implementation by copying the relevant code from V8's implementation. There are a number of big tables here, but they are all only defined when we're not using ICU (aka only in local shell builds).

Depends on D65573

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

--HG--
extra : moz-landing-system : lando
2020-03-13 04:23:45 +00:00
Iain Ireland 0aef5fd6bc Bug 1620020: Implement Factory methods on Isolate r=sfink
In V8, the Isolate (~JSContext) owns a Factory, which is responsible for allocating objects. The SM shim unifies Isolate and Factory into a single class.

This patch implements the Factory methods using the Handle infrastructure from previous patches.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 04:23:45 +00:00
Iain Ireland 9692fba2ab Bug 1620020: Implement ByteArray r=sfink
A ByteArray is a fixed-length array of bytes. V8 uses ByteArrays to store bytecode for the irregexp interpreter, and to store lookup tables when compiling regexps. V8's ByteArrays are GC things (meaning that we have to be able to store them in a Value), but SM's version can't be a GC thing, because we have to be able to allocate a ByteArray while generating masm. We therefore end up with this approach, where a ByteArray is a PrivateValue pointing to a ByteArrayData (a length-prefixed buffer).

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

--HG--
extra : moz-landing-system : lando
2020-03-13 20:50:46 +00:00
Iain Ireland 8f1bec0479 Bug 1620020: Handles and HandleScopes r=sfink
SM's roots are a linked list that lives on the stack. V8's stack roots are stored in a side table, which allows them to allocate handles that outlive the current stack frame. The lifetimes of those handles are instead determined by HandleScope objects. When a HandleScope goes out of scope, all "roots" created in that scope are freed simultaneously. This patch implements the V8 API inside SM.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 04:23:45 +00:00
Andreea Pavel ae4651826b Backed out changeset cc4ec8298e52 (bug 1618696) backed out for causing bugs 1621191 and 1565363 on a CLOSED TREE 2020-03-13 22:51:21 +02:00
Chris Peterson 67b21f14a1 Bug 1622173 - Consolidate redundant MOZ_ALWAYS_TRUE/FALSE/OK/ERR definitions. r=froydnj
MOZ_ASSERT(false) will evaluate to a no-op in release builds, so there should be no overhead from using MOZ_ASSERT(false) to define MOZ_ALWAYS_TRUE/FALSE/OK/ERR in both debug and release.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 17:47:14 +00:00
James Willcox fdb196df32 Bug 1619778 - Wait for Gecko to be ready when delivering Web Push events r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D66586

--HG--
extra : moz-landing-system : lando
2020-03-13 20:08:26 +00:00
James Willcox 3c21ccc32c Bug 1619778 - Add `GeckoThread#waitForState()`. r=geckoview-reviewers,aklotz
This allows us to asynchronously wait for a given `GeckoThread` state
to be reached.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 19:49:48 +00:00
James Willcox 97a1646a17 Bug 1619778 - Remove unused `GeckoThread#waitOnGecko` methods. r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D66584

--HG--
extra : moz-landing-system : lando
2020-03-12 15:33:57 +00:00
Jason Laster 332ec2ba27 Bug 1620025 - Improve source front management. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D65803

--HG--
extra : moz-landing-system : lando
2020-03-13 20:04:49 +00:00
Kartikaya Gupta 67bc5d7367 Bug 1617427 - Add a test for the scenario being fixed. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D66428

--HG--
extra : moz-landing-system : lando
2020-03-13 19:59:41 +00:00
Kartikaya Gupta c4913fea1d Bug 1617427 - Resurrect IsCurrentlyCheckerboarding and make it more correct. r=botond
This improves the implementation of IsCurrentlyCheckerboarding (which is not
invoked from anywhere prior to this patch) so that it takes into account the
recursive clipping applied by ancestor layers' composition bounds. In other
words, the visible rect for a layer may be additionally clipped because
ancestor scrollframes have scrolled, and this patch accounts for that.

It also records the currently-checkerboarding state into the APZTestData
at the time that the compositor APZTestData instance is fetched.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 19:59:30 +00:00
Kartikaya Gupta 61b5c2e638 Bug 1617427 - Extract helper method to normalize visible rect computation. r=botond
Slight functional changes:
- the checkerboard event call site will now include mTestAsyncScrollOffset
when calculating the visible rect, which should impact overall behaviour if
there's a test that cares about checkerboard events (there currently isn't).
- the IsCurrentlyCheckerboarding call site will use the compositing effective
scroll offset instead of the raw metrics scroll offset. This function is
not called from anywhere so it doesn't matter, but it makes sense to align
it with the other uses and I'll be using it in future patches.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 19:58:56 +00:00
Kartikaya Gupta 7d07c4a8b1 Bug 1617427 - Miscellaenous documentation fixes. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D66425

--HG--
extra : moz-landing-system : lando
2020-03-13 19:56:56 +00:00
Kartikaya Gupta 6d4a82e018 Bug 1617427 - Add a DOMWindowUtils API to disable APZ on a particular element. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D66424

--HG--
extra : moz-landing-system : lando
2020-03-13 19:56:33 +00:00
Kartikaya Gupta 5ebf4f9e11 Bug 1617427 - Rename things and fix up comments. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D66423

--HG--
extra : moz-landing-system : lando
2020-03-13 19:55:18 +00:00
Kartikaya Gupta e4ce8449ae Bug 1617427 - Prefer using the root frame's displayport to the root composition bounds. r=tnikkel
If we can get the root frame's displayport, then we should use that
rect instead of the root composition bounds when clipping the scrollframe's
displayport. That way if APZ is disabled on the scrollframe, but the root
frame scrolls to bring a part of it into view, it will be fully painted and
not perma-checkerboard-y.

Note that this patch is the main fix, but leaves a bunch of comments/variables
with bad names; the next patch cleans that up.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 19:55:11 +00:00
Kartikaya Gupta f81f55c129 Bug 1617427 - Refactor to extract helper method; no functional changes. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D66420

--HG--
extra : moz-landing-system : lando
2020-03-13 19:55:03 +00:00
Jessie Bonisteel 7a871da043 Bug 1615049 - Shipping WebRender to modern intel laptops with small screen. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D66643

--HG--
extra : moz-landing-system : lando
2020-03-13 19:59:43 +00:00
Andreea Pavel c63a7a8d35 Bug 1424914 - adjust disabling condition on a CLOSED TREE r=test-only 2020-03-13 21:26:25 +02:00
Andreea Pavel ffe2fa6ae0 Backed out changeset 180f1350fdd3 (bug 1615049) for build bustages at /GfxDriverInfo.cpp on a CLOSED TREE 2020-03-13 21:23:56 +02:00
Andreea Pavel b311b0453c Bug 1618386 - temporary disable browser_fullscreen_window_focus.js on linux fission r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D66451

--HG--
extra : moz-landing-system : lando
2020-03-13 19:15:47 +00:00
Jessie Bonisteel 37e2c5ab60 Bug 1615049 - Shipping WebRender to modern intel laptops with small screen. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D66643

--HG--
extra : moz-landing-system : lando
2020-03-13 18:35:55 +00:00
Zibi Braniecki a67d7debed Bug 1622149 - Switch away from NS_ERROR_DOM_* in DOMLocalization. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D66706

--HG--
extra : moz-landing-system : lando
2020-03-13 17:36:53 +00:00
Zibi Braniecki 44eca5f333 Bug 1560038 - Switch uses of FluentBundle to use fluent-rs. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57403

--HG--
extra : moz-landing-system : lando
2020-03-11 23:29:05 +00:00