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

732731 Коммитов

Автор SHA1 Сообщение Дата
Greg Tatum 5054c8bf2a Bug 1674189 - Warn the user if their PYTHONPATH is set in mach bootstrap; r=rstewart DONTBUILD
This environment variable can cause the module resolution to break
and have unexpected behavior while running mach bootstrap.

Differential Revision: https://phabricator.services.mozilla.com/D95185
2020-10-30 09:28:05 +00:00
Emilio Cobos Álvarez 925f58dbf1 Bug 1674228 - Speed up HasFontTable checks for freetype fonts. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D95280
2020-10-30 11:56:27 +00:00
Olli Pettay 0819023ff0 Bug 1673947 - CreatedDynamically isn't updated on parent side, r=kashav
Depends on D94904

Differential Revision: https://phabricator.services.mozilla.com/D95068
2020-10-30 11:48:30 +00:00
Olli Pettay d07f915174 Bug 1671962 - Iframes loaded from restored session are loaded out of order when Fission enabled, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D94904
2020-10-30 11:48:23 +00:00
David Teller 8e0c2cbd01 Bug 1426219 - Assert.throws now cleans up recentJSDevError;r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D94973
2020-10-30 11:06:32 +00:00
David Teller 7e3cd23b78 Bug 1426219 - Extend PromiseTestUtils to uncaught JavaScript Developer Errors;r=florian
This patch uses (and somewhat abuses) the existing PromiseTestUtils
mechanism to also be able to whitelist uncaught errors that are not
actual Promise rejections.

This uses `ChromeUtils.recentJSDevError`, which lets us find out
whether there is a recent ReferenceError/SyntaxError/TypeError in
chrome code, even if that error was caught.

MozReview-Commit-ID: 5z1pffURNYm

Differential Revision: https://phabricator.services.mozilla.com/D94972
2020-10-30 11:34:37 +00:00
David Teller 72a77b9404 Bug 1426219 - TypeError is not a developer error anymore;r=yulia
This patch is part of an ongoing work to help our test suite show developer errors that are currently being swallowed by `try { ... } catch (e) { ... }`.

Previous patches in the work used the heuristic that all instances of `TypeError`, `SyntaxError` and `ReferenceError` are developer errors unless specified otherwise. As it turns out, we are throwing `TypeError` in many cases that are not type errors. Since we have no manner of distinguishing which of these cases are actual (developer) errors and which are runtime exceptions, this patch removes `TypeError` from the list of developer errors.

Ideally, a followup patch would carefully reactivate `TypeError`, with a mechanism to annotate which actually represent type errors (typically, those thrown by SpiderMonkey or `throw new TypeError`) and which do not (typically, most of the instances of `TypeError` thrown by DOM operations).

Differential Revision: https://phabricator.services.mozilla.com/D95276
2020-10-30 11:34:37 +00:00
David Teller 9660112fc3 Bug 1661312 - In about:processes, count the cost of shared memory as part of the parent process;r=florian
Since bug 1652813, we have stopped counting shared memory as part of every single process. However, we haven't really counted it as part of any process. With this patch, we count shared memory as part of the parent process.

We also take this opportunity to harmonize the name of the (empty) CSS classes that we use to display memory, as they had distinct names on different rows for no reason.

Differential Revision: https://phabricator.services.mozilla.com/D95259
2020-10-30 11:09:07 +00:00
Emilio Cobos Álvarez 9505500c5e Bug 1674227 - Handle -moz-emoji generic in gfxPlatformFontList. r=jfkthame
And tweak the code so that it doesn't happen next time we add a new
generic font.

Differential Revision: https://phabricator.services.mozilla.com/D95211
2020-10-30 10:10:06 +00:00
Valentin Gosu 96fa831c85 Bug 1663571 - Resolve single label DNS queries using DnsQuery_A r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D91117
2020-10-30 08:16:25 +00:00
James Graham a898bfc90c Bug 1674030 - Set mixed content upgrade pref in anticipation of test sync, r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D95265
2020-10-30 10:19:14 +00:00
Sebastian Hengst 9188a9284b Bug 1673877 - update test expectations for first paint tests. r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D95134
2020-10-29 20:39:47 +00:00
Nicolas Silva 1e1f1c839a Bug 1653649 - Limit widget size to 16k. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D94332
2020-10-30 09:40:25 +00:00
Daisuke Akatsuka c3aace4366 Bug 1673199: Add a test whether it can access a filed in MediaList with normal privilege after accessing with chrome privilege. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95257
2020-10-30 09:37:19 +00:00
Csoregi Natalia c0c1814841 Backed out 5 changesets (bug 1635117) for failures on browser_aboutprocesses_show_threads.js. CLOSED TREE
Backed out changeset d6225550a9a3 (bug 1635117)
Backed out changeset 8226dbbbacc0 (bug 1635117)
Backed out changeset 825d6c917092 (bug 1635117)
Backed out changeset 426a4185018b (bug 1635117)
Backed out changeset 992c72ba1400 (bug 1635117)
2020-10-30 15:14:17 +02:00
Dmitry Bezhetskov b36ab928fd Bug 1639153 - Part 8: Adapt Cranelift-based Wasm to use ABI-2020. r=lth CLOSED TREE
This patch makes use of the new "Baldrdash2020" ABI support in Cranelift
to support the "ABI 2020" refactor in the Wasm compiler.

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

Depends on D83064
2020-10-29 14:45:44 +00:00
Dmitry Bezhetskov 7af45ed871 Bug 1639153 - Part 7: Remove Frame::tls. r=lth
We remove Frame::tls and fix prologue/epilogue. Runtime, Ion and Baseline are ready for this move already.

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

Depends on D83051
2020-10-30 09:12:21 +00:00
Dmitry Bezhetskov e76220e2c0 Bug 1639153 - Part 5: Remove remaining uses of Frame::tls. r=lth
Here we remove remaining uses of Frame::tls. There are many places where
we use it: in debug frames, in profiling frames, in jit activation, etc.
All these places require short fixes to use our new scheme for getting
tls, so I gathered them together.

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

Depends on D83045
2020-10-23 18:17:38 +00:00
Dmitry Bezhetskov d3cf03327d Bug 1639153 - Part 4: Untie frame iteration from Frame::tls. r=lth
Here we replace usage of Frame::tls in frame iteration with GetNearestEffectiveTls.
We also maintain current tls for frame iteration object to not to call GetNearestEffectiveTls everytime.

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

Depends on D83044
2020-10-23 18:17:37 +00:00
Dmitry Bezhetskov c44c616ecc Bug 1639153 - Part 3: Implement the algorithm for obtaining tls and use it for wasm signal handling. r=lth
This is the third part of series of patches to Frame without tls pointer.
Here we preserve initial tls in all entry stubs and then use it to find a proper tls instance for a given frame.

To find the TlsData* for specific frame we start from a entry stub's tls
and then track tls through all possible cross-instance calls. This logic
is implemented in GetNearestEffectiveTls procedure.

Then, we use this new procedure to make singal handling free from Frame::tls.

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

Depends on D82888
2020-10-23 18:17:37 +00:00
Dmitry Bezhetskov c2bb890057 Bug 1639153 - Part 2: Preserve callee and caller tls'es. r=lth
This is a followup patch for removing Frame::tls.
Now, we are preserving caller's and callee's tls'es for all possible cross-instance calls in the previously allocated abi slots.
We also use preserved tls values to restore the caller's tls in Ion. Baseline doesn't need this because it restores the caller tls from its private stack slot after the call.

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

Depends on D82881
2020-10-23 18:17:37 +00:00
Dmitry Bezhetskov 9534446dab Bug 1639153 - Part 1: Reserve two slots after stack arguments for the future tls preservation. r=lth
We are going to remove Frame::tls and support trampolines for indirect calls, so we need to get rid of using Frame::tls.
In this and the followup patches I will iteratively remove all dependencies of Frame::tls and remove it eventually.

In this patch I changed wasm ABI to allocate two stack slots after stack args to preserve caller's and callee's tls'es in the near future.

Differential Revision: https://phabricator.services.mozilla.com/D82881
2020-10-23 18:17:36 +00:00
Edgar Chen 2737da4055 Bug 1671657 - setPointerCapture should do nothing if the element's node document is not active document for the pointer; r=smaug
Depends on D94297

Differential Revision: https://phabricator.services.mozilla.com/D94001
2020-10-30 08:31:42 +00:00
Henri Sivonen 33c996c701 Bug 1667736 - Update packed_simd to compile on Rust 1.48. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D91572
2020-10-30 08:29:53 +00:00
Masayuki Nakano 1fe9274aa4 Bug 1663725 - Add reported test as a crashtest (the crash bug itself was fixed by bug 1663601) r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D95127
2020-10-30 04:18:36 +00:00
Masayuki Nakano 9b606cfb10 Bug 1624005 - Make `WSScanResult` have error state and make the scan methods of `WSRunScanner` use it when it fails to initialize `TextFragmentData` r=m_kato
The test runs `execCommand("insertHorizontalRule")` when the document node
has no children.  In this case, `TextFragmentData` fails to initialize itself.
In this case, our editor cannot do anything.  Therefore, returning error
in this case must be better.

This patch makes all callers of the scan methods handle the error case unless
the caller cannot return error.

Comparing with Blink, perhaps, we should insert `<html>` and `<body>` element
in this case first and keep doing the requested operation in the future.
Currently, doing it may cause another complicated issue with mutation event
listeners.

Differential Revision: https://phabricator.services.mozilla.com/D95126
2020-10-30 07:33:39 +00:00
Masayuki Nakano e58b93b3d9 Bug 1613521 - Make `NeedsToDispatchBeforeInputEvent()` return false if the edit action requires a clipboard event and it's not dispatched yet r=m_kato
The reason of hitting the assertion is, a clipboard event listener nests
another edit action, initializing the editor, runs, and tries to create an
anonymous `<br>` element with transaction, but it checks whether `beforeinput`
event has already been dispatched or not with the parent edit action data.

For fixing it, this patch adds a flag to edit action data to indicate whether
a clipboard event has already been dispatched or not.  If it's already been
dispatched, it's **okay** to modify the DOM tree.  Ideally, we should put off
modifying the DOM tree after dispatching `beforeinput` event, but this case
does not notify web apps anything so that this patch should be fine.

Although this patch adds a crash test which is attached by the reporter,
it's not reproducible with current editor code because we stopped modifying
native anonymous nodes with transaction, but it depends on the behavior.
Still this assertion hits in `test_clipboard_noeditor.html` intermittently,
but I don't have idea how to reproduce this permanently.  Therefore, this
patch does not contain a test to check to regression actually.

Differential Revision: https://phabricator.services.mozilla.com/D95115
2020-10-30 07:21:40 +00:00
Jeff Walden a2a228d955 Bug 1663365 - Followup jsglue.cpp fix.
Differential Revision: https://phabricator.services.mozilla.com/D95261
2020-10-30 07:38:46 +00:00
David Teller 3caf75572b Bug 1635117 - Publish about:processes for localization;r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94761
2020-10-30 07:15:12 +00:00
David Teller 2ef50da963 Bug 1635117 - Let fluent internationalize duration and memory units;r=flod,fluent-reviewers,florian
Differential Revision: https://phabricator.services.mozilla.com/D94843
2020-10-30 07:16:05 +00:00
David Teller 1a834c1e6a Bug 1635117 - Trust fluent with internationalization of Memory usage and delta;r=florian,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D94760
2020-10-30 07:16:05 +00:00
David Teller 1b31454668 Bug 1635117 - Trust fluent with internationalization of CPU percentage and total duration;r=florian,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D94759
2020-10-30 07:13:03 +00:00
David Teller 928485dc48 Bug 1635117 - get rid of camelCasing in about:processes fluent labels;r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94758
2020-10-29 10:29:14 +00:00
Eitan Isaacson ef1779b14c Bug 1672776 - Return nil TextMarker(Range) if GeckoTextMarker(Range) is invalid. r=morgan
It seems like the GeckoTextMarker::Range can sometimes return invalid ranges.
We need to check if they are valid or not before marshalling them.

Differential Revision: https://phabricator.services.mozilla.com/D95230
2020-10-30 04:41:20 +00:00
Jeff Walden c7bc4f2846 Bug 1663365 - Don't include "js/friend/ErrorMessages.h" in jsfriendapi.h. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D95208
2020-10-30 06:33:56 +00:00
Jeff Walden 57b620bc42 Bug 1673793 - detachArrayBuffer and ArrayBuffer-stealing capabilities should permit wrapped ArrayBuffers. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D95101
2020-10-29 07:58:50 +00:00
Makoto Kato 85f53704b2 Bug 1673816 - DeleteNodeWithTransaction should allow non-editable node which parent is editable. r=masayuki
Actually, `DeleteNodeWithTransaction` cannot remove non-editable node. But
we should allow it which parent node is ediatble.

Differential Revision: https://phabricator.services.mozilla.com/D94937
2020-10-30 01:38:41 +00:00
Jeff Muizelaar 9678494ff8 Bug 1674175 - Add a memory reporter for memory allocated in NativeFontResourceMac::Create. r=mstange
It's very hard for us to encourage the system to free this memory so we
should make sure we report it.

Differential Revision: https://phabricator.services.mozilla.com/D95233
2020-10-30 00:29:55 +00:00
Gregory Mierzwinski 9ed7a7b8be Bug 1674243 - Check for colon when deciding between old/new metric format. r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D95218
2020-10-29 23:39:08 +00:00
Adam Gashlin aa5c0ed6ca Bug 1672707 - Recover from error string lookup failure. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D95100
2020-10-29 17:07:31 +00:00
Mats Palmgren b4f241c3d5 Bug 1673006 - [css-flexbox] Propagate the flex-shrink/flex-grow/flex-basis style to the table-wrapper box. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95086
2020-10-29 23:08:57 +00:00
Ting-Yu Lin c4f22dc89f Bug 1672462 - Compute flex item's content size suggestion in inline axis via nsIFrame::ComputeSize. r=emilio
Flex item's content size suggestion is the min-content size in the main
axis. Quoting from the CSS Sizing spec, section "5.1. Intrinsic Sizes",

    The min-content size of a box in each axis is the size it would have
    if it was a float given an auto size in that axis (and no minimum or
    maximum size in that axis) and if its containing block was
    zero-sized in that axis. (In other words, the minimum size it has
    when sized as “shrink-to-fit”.)

However, all the frame types' GetMinISize() doesn't consider aspect
ratio (either the intrinsic aspect ratio on images or svg, or the
preferred aspect ratio set by the aspect-ratio property). That is, we
currently don't allow `aspect ratio * definite block-size` as part of
the equation in `inline-size:min-content` (bug 1646100 or bug 1670151).

Luckily, nsIFrame::ComputeSize() already takes care of this [2]. We just
need to add a flag to let ComputeSize() behave as if the flex item had
an auto inline size. The code should be similar to FloatMarginISize() in
BlockReflowInput.cpp except we are calculate the flex item's content-box
size.

[1] https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes
[2] https://searchfox.org/mozilla-central/rev/dbced93f1c57942501c23d4633d01ce59d9087a1/layout/generic/nsContainerFrame.cpp#2732,2735-2736

Differential Revision: https://phabricator.services.mozilla.com/D94802
2020-10-29 22:43:53 +00:00
Ting-Yu Lin 766ede2dec Bug 1672462 - Print transferred size suggestion only if it exists. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D94801
2020-10-29 22:39:51 +00:00
Razvan Maries aa6c94921b Backed out changeset b952d7de3e3e (bug 1650956) for perma failures on browser_ext_tabs_successors.js. CLOSED TREE 2020-10-30 01:29:15 +02:00
Razvan Maries 74cfe80c4d Backed out changeset 56a8a402e139 (bug 1668965) for perma failures on browser_all_files_referenced.js and browser_protectionsUI_milestones.js. CLOSED TREE 2020-10-30 01:25:58 +02:00
stransky a41fd188d4 Bug 1672945 Ship PipeWire 0.3 headers and library wrapper to build PW support out of the box, r=dminor
- Ship PipeWire 0.3 headers at third_party/pipewire/pipewire
- Ship SPA 0.2 headers at third_party/pipewire/spa
- Ship PipeWire library wrapper at third_party/pipewire/libpipewire

Differential Revision: https://phabricator.services.mozilla.com/D94580
2020-10-29 22:15:32 +00:00
Iain Ireland d095428907 Bug 1673497: Part 2: Cancel off-thread compiles when invalidating Warp r=jandem
Depends on D94875

Differential Revision: https://phabricator.services.mozilla.com/D94876
2020-10-28 07:57:43 +00:00
Iain Ireland dfe0b97563 Bug 1673497: Part 1: Invalidate Warp when failing to attach for a transpiled IC r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D94875
2020-10-29 16:20:26 +00:00
Dão Gottwald bb69f91862 Bug 1674251 - Simplify partner_link telemetry. r=teon
Differential Revision: https://phabricator.services.mozilla.com/D95225
2020-10-29 21:58:07 +00:00
Tim Giles 6252069544 Bug 1668965 - Remove mention of Lockwise mobile apps from about:logins. r=sfoster,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D93260
2020-10-29 21:07:54 +00:00