Commit Graph

712391 Commits

Author SHA1 Message Date
Adam Vandolder
f294aa213c Bug 1644581 - Remove Iterator.prototype[@@toStringTag]. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D78983
2020-06-10 13:40:13 +00:00
André Bargull
2ae77fdd0a Bug 1564942 - Part 4: Lower MPow to a series of shift-instructions when the base operand is a power of two. r=jandem
In-tree users of `Math.pow` show that the function is often called with the base operand equal to
two. This case can easily be optimised to a series of shift-instructions for any power of two. For
now this optimisation is only taken for 2^i with i in {1..8} to avoid generating too many
consecutive shift-instructions. 2^8 = 256 was chosen as the limit, because it is the maximum power
of two base operand for `Math.pow` used in-tree.

Differential Revision: https://phabricator.services.mozilla.com/D37587
2020-06-10 13:49:46 +00:00
André Bargull
3b11638944 Bug 1564942 - Part 3: Avoid an extra mov when multiplying an operand with itself. r=jandem
Similar to `LIRGeneratorX86Shared::lowerForALU`, try to use the same register when multiplying an
operand with itself.

This change improves the generated assembly for `Math.pow(x, 2)` from:
```
# instruction MoveGroup
movl       %eax, %ecx
# instruction MulI
imull      %ecx, %eax
jo         .Lfrom0000
```

to:
```
# instruction MulI
imull      %eax, %eax
jo         .Lfrom0000
```

Differential Revision: https://phabricator.services.mozilla.com/D37586
2020-06-10 11:52:00 +00:00
André Bargull
b27cc67ef9 Bug 1564942 - Part 2: Avoid negative zero check when the base operand in MPow is an Int32. r=jandem
That way the trailing DoubleToInt32 doesn't emit the negative zero check sequence:

```
movq       %xmm0, %rax
cmpq       $0x1, %rax
jo         .Lfrom0000
```


When MPow is used with a constant power which can be folded to MMul, this change
will lead to better codegen, too. For example `Math.pow(x, 2)` where `x` is an
Int32 value, currently generates the following assembly:
```
# instruction MoveGroup
movl       %eax, %ecx
# instruction MulI:CanBeNegativeZero
imull      %ecx, %eax
jo         .Lfrom0000
testl      %eax, %eax
je         .Lfrom0000
```

With this patch, this assembly will be generated:
```
# instruction MoveGroup
movl       %eax, %ecx
# instruction MulI
imull      %ecx, %eax
jo         .Lfrom0000
```

Differential Revision: https://phabricator.services.mozilla.com/D37584
2020-06-10 11:51:58 +00:00
André Bargull
729f6a9522 Bug 1564942 - Part 1: Add braces to if-statements in MPow. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D37583
2020-06-10 11:50:53 +00:00
Andrei Oprea
d50f8f3348 Bug 1643272 - Group schemas and docs together for button actions and triggers r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D78307
2020-06-10 13:12:28 +00:00
Byron Campen [:bwc]
1c3be2b686 Bug 1644477: Make candidate pair insertion code easier to read/understand. r=mjf
Includes removing an error code for a function that never fails, and removing
an error return when the function successfully did what it said it would.

Differential Revision: https://phabricator.services.mozilla.com/D78929
2020-06-09 19:44:50 +00:00
Randell Jesup
d707e31043 Bug 1642290: stop the process preallocator during normal shutdown, not post-CC r=nika
Post-CC is no longer needed given the landing of bug 1642491

Differential Revision: https://phabricator.services.mozilla.com/D79017
2020-06-10 13:36:40 +00:00
Emilio Cobos Álvarez
88714c5091 Bug 1471854 - Make print.always_print_silent a static pref. r=jwatt
So that it shows up in about:config (and also it's faster that way).

Differential Revision: https://phabricator.services.mozilla.com/D79117
2020-06-10 13:41:17 +00:00
Emilio Cobos Álvarez
718ae23c74 Bug 1471854 - Don't make native format-choosing dependent on print preview. r=jwatt
Not returning a valid target for print output causes the whole printing
progress to fail. When printing silent, we choose "native" format, which in the
GTK backend just fails because we return null (wat).

This fixes printing with print.always_print_silent. Printing via the file
dialog gets an explicit format so we don't hit that code path.

Differential Revision: https://phabricator.services.mozilla.com/D79116
2020-06-10 13:41:04 +00:00
Mihai Tabara
7bd3b1d36c Bug 1635525 - fix broken nazgul links and deps. r=rail
Differential Revision: https://phabricator.services.mozilla.com/D79084
2020-06-10 14:17:02 +00:00
neil
6b1f254a89 Bug 1641324 Remove the layout.css.scrollbar-width.enabled and layout.css.scrollbar-color.enabled prefs r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D78400
2020-06-10 13:16:34 +00:00
Narcis Beleuzu
fe40425f38 Backed out changeset d5c26d99978e (bug 1642193) for wpt failures on event-timeout-order.any.worker.html . CLOSED TREE 2020-06-10 17:14:24 +03:00
Narcis Beleuzu
86aa1a058e Backed out 2 changesets (bug 1642667) for mda failures on test_peerConnection_basicAudioNATRelay.html . CLOSED TREE
Backed out changeset c1672891baf5 (bug 1642667)
Backed out changeset 4745600e205a (bug 1642667)
2020-06-10 16:34:45 +03:00
Emilio Cobos Álvarez
e6eb652a8f Bug 477157 - Annotate one more test as passing, and fix build in older compilers.
MANUAL PUSH: minor orange cleanup on a CLOSED TREE
2020-06-10 15:28:01 +02:00
Emilio Cobos Álvarez
025e7f804a Bug 1644688 - Simplify common.inc.css. r=dao
There's no default namespace in this stylesheet, so the *|* and *| are
just useless.

Differential Revision: https://phabricator.services.mozilla.com/D79077
2020-06-10 12:41:23 +00:00
Andrea Marchesini
68f456af30 Bug 1642971 - Support FTP scheme for cookies, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D78042
2020-06-10 12:28:54 +00:00
Sebastian Hengst
d6851f99fa Bug 1644626 - Set scrollend-event-for-user-scroll.html to time out on macOS opt. DONTBUILD 2020-06-10 14:26:41 +02:00
Andrea Marchesini
3ba071fd19 Bug 1642667 - Isolate alt-srv and connection pool per first-party when privacy.partition.network_state is set to true - part 2 - tests, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D78083
2020-06-09 11:55:21 +00:00
Andrea Marchesini
9cc4f89021 Bug 1642667 - Isolate alt-srv and connection pool per first-party when privacy.partition.network_state is set to true - part 1 - implementation, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D78082
2020-06-10 11:32:05 +00:00
Kershaw Chang
138dcb771c Bug 1642193 - Add new flags to see if premature abort events are already dispatched r=baku
Differential Revision: https://phabricator.services.mozilla.com/D78901
2020-06-09 16:09:07 +00:00
Simon Giesecke
9029b95922 Bug 1643289 - Move elements where possible in nsTPriorityQueue instead of copying them. r=froydnj
Also remove redundant check in Push method on result of infallible operation,
and change its return type to void.

Differential Revision: https://phabricator.services.mozilla.com/D78249
2020-06-10 10:46:34 +00:00
Simon Giesecke
4fc33e202f Bug 1643289 - Make nsTPriorityQueue non-copyable and remove use of CopyableTArray. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78248
2020-06-10 10:46:17 +00:00
Simon Giesecke
82dc9b2271 Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 10:46:14 +00:00
Emilio Cobos Álvarez
e8caef7a14 Bug 477157 - Ceil border and outline widths to 1 dev px at computed value time, but don't floor others to dev pixels until paint time. r=mats,dbaron
This seems to match what other browsers do, and seems saner layout-wise,
at least.

I only annotated outline-width-interpolation.html because it's already
fixed upstream in:

  8a489657bc

Differential Revision: https://phabricator.services.mozilla.com/D75360
2020-06-10 10:44:32 +00:00
Marco Bonardo
8a85578c00 Bug 1637973 - browser.downloads.download throws error with filenames having multiple spaces. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D78577
2020-06-10 00:16:55 +00:00
Bas Schouten
45104a7a29 Bug 1644292: Duplicate code for runnable telemetry for runnables executed inside TaskController. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D78888
2020-06-09 13:02:37 +00:00
Bas Schouten
c2dc5d2a40 Bug 1644288: Explicitly do not use timeDurationHelper when TaskController is enabled. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D78825
2020-06-09 12:42:24 +00:00
Andrea Marchesini
2f638f8699 Bug 1644458 - Propagate CookieJarSettings with the partition key to SharedWorkers and ServiceWorkers, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D78653
2020-06-10 10:05:24 +00:00
Paul Adenot
bcf7c27938 Bug 1644664 - Update cubeb to e2ffb10. r=cubeb-reviewers,kinetik
Differential Revision: https://phabricator.services.mozilla.com/D79044
2020-06-10 09:52:25 +00:00
Valentin Gosu
cac985a474 Bug 1636888 - Allow specifying entire rust modules in MOZ_LOG r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78265
2020-06-10 07:18:40 +00:00
Dimi Lee
7e11856355 Bug 1643128 - Add log in AllowAccessFor r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D78137
2020-06-10 09:31:27 +00:00
R. Martinho Fernandes
30d350f9a0 Bug 1594119 - include pk11pub.h in nsNSSComponent.cpp for PK11_GetCertsMatchingPrivateKey r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D78255
2020-06-10 09:19:36 +00:00
Emilio Cobos Álvarez
ee72abe007 Bug 1644264 - Mark frame with text-overflow ellipsis as modified when overflow changes. r=mattwoodrow
This prevents us not descending to rebuild the display list if the
overflow changes during an intermediate layout like a flex layout.

To capture Matrix discussion: This is a bit unfortunate, but the idea is
that text-overflow is usually pretty small (at most one line of content)
so we can probably live with this.

An alternative would be to do something like
nsDisplayListBuilder::MarkFrameForDisplayIfVisible, which could work as
well.

Note that this is a bit of a speculative fix because neither me or
Cameron have been able to reproduce the issue in local builds (I tried
all the combinations of gfx-things that I could think about). :-(

If this doesn't fix it on next nightly, we should back out and try to
repro some other way, I guess. But the hypothesis of why it happens
makes sense to me, and if it's correct it should fix the issue.

Differential Revision: https://phabricator.services.mozilla.com/D79009
2020-06-10 01:09:02 +00:00
Jan de Mooij
1dbf9c2c8e Bug 1643888 - Support using AutoScratchFloatRegister with ensureDoubleRegister. r=anba
Differential Revision: https://phabricator.services.mozilla.com/D78863
2020-06-09 09:49:53 +00:00
Jonathan Kew
3a81ba136e Bug 1642223 - Add test for multiclick-and-drag selection behavior. r=mbrodesser
Differential Revision: https://phabricator.services.mozilla.com/D78546
2020-06-08 13:52:34 +00:00
Jonathan Kew
501e5caa97 Bug 1642223 - Fix behavior of AdjustNormalSelection when moving back into the maintained range from before it, to avoid collapsing to the end of the range. r=mbrodesser
Differential Revision: https://phabricator.services.mozilla.com/D78545
2020-06-10 08:31:39 +00:00
Narcis Beleuzu
7fa248371f Bug 1642865 - Update expectancies. DONTBUILD r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D79037
2020-06-10 08:40:49 +00:00
Nicolas Chevobbe
595a3d5ef3 Bug 1629875 - Style blocked network messages in console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D71912
2020-06-10 08:31:42 +00:00
Lars T Hansen
a10a0da964 Bug 1644507 - Remove an inappropriate MOZ_ASSERT. r=bbouvier
When the SIMD code landed, all aligned loads/stores (except constant loads)
were changed to be unaligned, so as to not have to worry about aligning
SIMD parameters and locals.  But I forgot to remove this assert.

Differential Revision: https://phabricator.services.mozilla.com/D79036
2020-06-10 07:57:14 +00:00
Kartikaya Gupta
c6ee908c91 Bug 1643504 - Update webrender github-CI to use new docker image. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D78903
2020-06-09 20:39:10 +00:00
Marco Zehe
901ff9ac52 Bug 1644650 - Make the main developer tools window an application for assistive technologies again, r=nchevobbe
This broke when the main developer tools window was converted from XUL to XHTML. By adding the application role, the window is once again a window, not a document for the accessibility engine.

In addition, while I was here, I fixed the role of the focusable vbox because it is the first thing the user lands on when tabbing, to make it a semantic group, not an "unknown". Since this is probably supposed to be focusable for keyboard users, it is better to have an appropriate role.

Differential Revision: https://phabricator.services.mozilla.com/D79038
2020-06-10 07:38:32 +00:00
Jon Coppeard
44abde177b Bug 1644552 - Improve GC profiling output by adding timestamps r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D78959
2020-06-09 22:44:07 +00:00
Frederik Braun
6eac45b147 Bug 1644070 - add missing URLish attributes to TreeSanitizer r=hsivonen
This adds the elements `formaction`, `data`, `ping`, `poster`.

We can't really add a test for the `<object data>`, since we never
allow `<object>` elements in the first place and we don't allow
settings exceptions for temporarily allowed elements.
Same for `poster` elements, since it's only used in media elements
and those are either all allowed or none.

Differential Revision: https://phabricator.services.mozilla.com/D78638
2020-06-10 07:24:05 +00:00
Henri Sivonen
0f9d707280 Bug 1616805 - Re-enable toolkit/components/reader/test/browser_readerMode_with_anchor.js for Fission. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D77771
2020-06-09 16:23:37 +00:00
James Teh
0b42799e46 Bug 1644323: For in-process iframes in content processes, use the emulated window set on the top level DocAccessibleChild (if any). r=MarcoZ
When window emulation is enabled, the emulated window is set on the top level DocAccessibleChild.
However, it isn't set on child documents (in-process iframes).
Therefore, when querying the window handle, we need to check for an emulated window handle on the top level document and return that if present.
This fixes the window handle returned by IAccessible2::get_windowHandle.

Note that the window handle used when firing events was already correct, as that is determined in the parent process.
In the parent process, the emulated window was already being propagated down to child DocAccessibleParents by BrowserParent::RecvPDocAccessibleConstructor.

Differential Revision: https://phabricator.services.mozilla.com/D79035
2020-06-10 07:11:31 +00:00
Butkovits Atila
e3dce68834 Backed out 3 changesets (bug 1643289, bug 1642949) for causing failure at test_headless_screenshot.html. CLOSED TREE
Backed out changeset 98c420f73380 (bug 1643289)
Backed out changeset 9447ea8910aa (bug 1643289)
Backed out changeset 0c827da9d847 (bug 1642949)
2020-06-10 10:07:23 +03:00
Glenn Watson
7473e73dbd Bug 1644632 - Update fuzziness for android test on webrender. r=nical
The change in texture cache eviction policy made this slightly
more fuzzy on android hardware.

Differential Revision: https://phabricator.services.mozilla.com/D79030
2020-06-10 06:48:02 +00:00
ssengupta
1529705e20 Bug 1641825 - P2 - GTest cases added for nsBufferedInputStream to test AsyncWait/AsyncLengthWait behaviour when stream closed r=baku,necko-reviewers,mayhemer
Depends on D77433

Differential Revision: https://phabricator.services.mozilla.com/D77799
2020-06-10 06:39:07 +00:00
ssengupta
76c2c39353 Bug 1641825 - P1 - nsBufferedInputStream does not return error and executes callback on AsyncWait/AsyncLengthWait if stream is closed r=baku,necko-reviewers,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D77433
2020-06-10 06:38:44 +00:00