Commit Graph

657792 Commits

Author SHA1 Message Date
Cameron McCormack
744961c65a Bug 1554571 - Part 4: Add perf-reftest singleton for anonymous content style caching. r=emilio
On my machine this test takes ~5200 ms with the anonymous content style
caching pref disabled, and ~1000 ms with it enabled.

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

--HG--
extra : moz-landing-system : lando
2019-06-27 00:25:05 +00:00
Cameron McCormack
8538a62557 Bug 1554571 - Part 3: Cache computed styles of scrollbar part anonymous content. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D33123

--HG--
extra : moz-landing-system : lando
2019-06-27 00:25:03 +00:00
Cameron McCormack
396af2948c Bug 1554571 - Part 2: Remove unused sbattr="scrollbar-thumb" from XUL thumb elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D33122

--HG--
extra : moz-landing-system : lando
2019-06-27 00:24:56 +00:00
Cameron McCormack
60ac348ac5 Bug 1554571 - Part 1: Remove unused argument from Servo_ResolveStyle. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D33121

--HG--
extra : moz-landing-system : lando
2019-06-27 00:24:54 +00:00
Drew Willcoxon
095f8ab761 Bug 1547666 - Quantumbar extension API: Add onBehaviorRequested, onResultsRequested, onQueryCanceled, and Result type, and change some internals. r=mak,mixedpuppy
* Rename the browser.urlbar.onQueryReady event onBehaviorRequested to make its purpose and return value clear.
* Add a browser.urlbar.onResultsRequested event that's fired when a query starts so that providers can add results. Listeners should return an array of Result objects. Add the Result type. It has a `payload` property that can be an arbitrary object depending on the result type.
* Add a browser.urlbar.onQueryCanceled event that's fired when a query is canceled.
* Rename the QueryContext type to just Query. From an extension's point of view, there's no difference between Query and QueryContext like there is for the internal implementation, so "Context" is unnecessary imo.
* Internally, remove the extension listeners map from UrlbarProvidersManager. Instead, extension listeners are added directly to UrlbarProviderExtension instances, and then UrlbarProvidersManager just loops through extension providers, not a separate map of listeners.
* Since UrlbarProviderExtension is getting a little bigger, move it to its own file.
* Fix a bug in UrlbarMuxerUnifiedComplete where the heuristic result sometimes does not come first in the sorted results, depending on the timing of when results from UrlbarProviderUnifiedComplete and other providers are added.
* Move SkippableTimer to UrlbarUtils.jsm, add a logger property, and add a name property so that it's easy to figure out which timers time out.
* Add lots of tests.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 23:35:50 +00:00
Kagami Sascha Rosylight
fb9f61bd7d Bug 1397949: Mark all arguments as optional on DOMMatrix translate*()/skew*() r=bzbarsky
The spec allows zero argument calls, so this change implements it. Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=94b2eb5869ae41e431c9e277abb62b5a19a69579

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

--HG--
extra : moz-landing-system : lando
2019-06-26 23:27:55 +00:00
Connor Brewster
cd692640d2 Bug 1555165 - Part 2: Update backdrop-filter WPT tests and expectations r=boris
Differential Revision: https://phabricator.services.mozilla.com/D36062

--HG--
extra : moz-landing-system : lando
2019-06-26 19:53:24 +00:00
Connor Brewster
691d3c2a59 Bug 1555165 - Part 1: Parse backdrop-filter CSS property r=emilio,boris
Differential Revision: https://phabricator.services.mozilla.com/D35816

--HG--
extra : moz-landing-system : lando
2019-06-26 23:02:16 +00:00
Daniel Holbert
3968dbef77 Bug 1555757: Exempt table-wrapper frames from becoming css-containment-promoted reflow roots. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D36073

--HG--
extra : moz-landing-system : lando
2019-06-27 00:16:41 +00:00
Brendan Dahl
c7f754871d Bug 1558980 - Convert all XUL mochitest plain tests to chrome. r=mossop
Two benefits:

1) Align test setup with shipping Firefox - We don't allow content
privilege XUL in shipping versions of Firefox, so having the tests be
chrome would be more realistic to our use case.

2) Support the XUL to XHTML migration. These files will soon become XHTML
files, but will still need to load XUL elements, so they'll need to be
marked as chrome privileged to continue working.

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

--HG--
rename : layout/base/tests/test_bug465448.xul => layout/base/tests/chrome/test_bug465448.xul
extra : moz-landing-system : lando
2019-06-20 21:29:50 +00:00
Markus Stange
b7d0b6adf0 Bug 1561756 - Convert the NSImage into an NSBitmapImageRep without using lockFocus. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D36124

--HG--
extra : moz-landing-system : lando
2019-06-26 22:42:39 +00:00
Geoff Brown
95706218a2 Bug 1557152 - [mozdevice] Retry mkdir check for directory existence; r=bc
This effectively avoids the mkdir failures I see with the 29.0.11 emulator
on packet.net with Android 7.0 x86_64. I hate to add this sort of complication
but it really helps clear the way for an otherwise useful upgrade.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 22:45:11 +00:00
Geoff Brown
0b6bd863a6 Bug 1550634 - Increase telemetry-test-client max-run-time; r=jmaher
Avoid intermittent failures by allowing the task to run a little longer.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 22:45:11 +00:00
Mihai Alexandru Michis
9852c55d11 Backed out 5 changesets (bug 1559982, bug 1559975) for cpp unit test failures due to unsupported operand type. CLOSED TREE
Backed out changeset 2309aac6cea3 (bug 1559975)
Backed out changeset bf5a6d853abd (bug 1559975)
Backed out changeset 0c36f78c971a (bug 1559975)
Backed out changeset 0560cf7df7dc (bug 1559975)
Backed out changeset 4cb64ca524e7 (bug 1559982)
2019-06-27 02:03:31 +03:00
Geoff Lankow
7df08a4fb1 Bug 1529205 - Remove DateTimePickerParent's dependency on gBrowser; r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D35392

--HG--
extra : moz-landing-system : lando
2019-06-26 18:15:28 +00:00
Markus Stange
16baf0b829 Bug 1557218 - Get the bitmap data for system icons by drawing them to a CGBitmapContext with a format of our choosing. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D36121

--HG--
extra : moz-landing-system : lando
2019-06-26 22:28:49 +00:00
Emilio Cobos Álvarez
fc7fce15f7 Bug 1547231 - Make mapped aspect-ratio get reflected in images. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D29039

--HG--
extra : moz-landing-system : lando
2019-06-26 22:10:08 +00:00
Emilio Cobos Álvarez
7a3cadc37e Bug 1547231 - Map width and height on image-ish elements to aspect-ratio. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D29038

--HG--
extra : moz-landing-system : lando
2019-06-26 22:10:06 +00:00
Emilio Cobos Álvarez
3ff14f467f Bug 1547231 - Add an internal aspect-ratio CSS property. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D29037

--HG--
extra : moz-landing-system : lando
2019-06-26 22:10:04 +00:00
Hiroyuki Ikezoe
099b3c3985 Bug 1515898 - Unmark a failure test in scroll-to-the-fragment-in-shadow-tree.html on Android. r=emilio
Emilio has already fixed this failure cause in bug 1511625.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 21:54:42 +00:00
Mihai Alexandru Michis
3583565bf1 Backed out changeset dc987632b5bb (bug 1497280) for causing geckoview failures in MediaElementTest. CLOSED TREE
--HG--
rename : toolkit/actors/DateTimePickerParent.jsm => toolkit/modules/DateTimePickerParent.jsm
extra : rebase_source : d1b8689074b0efb1cd80d1f6b93b8edaaa772112
2019-06-27 00:58:03 +03:00
Gurzau Raul
ef6c54db66 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-27 01:01:13 +03:00
Gurzau Raul
24d0e8e2ba Merge inbound to mozilla-central. a=merge 2019-06-27 00:54:09 +03:00
Gurzau Raul
211d4e2ea9 Merge autoland to mozilla-central. a=merge 2019-06-27 00:51:35 +03:00
Mike Hommey
794ccc7940 Bug 1500436 - Redirect node.js's stderr to a pipe. r=froydnj
This works around https://github.com/nodejs/node/issues/14752, which
causes problems with make.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 21:44:00 +00:00
Cameron McCormack
4d1517b69f Bug 1553705 - Use a cheaper to compute state key for parser inserted form controls. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D32259

--HG--
extra : moz-landing-system : lando
2019-06-26 21:44:11 +00:00
Cameron McCormack
98706be760 Bug 1553705 - Make GenerateStateKey() infallible. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D32258

--HG--
extra : moz-landing-system : lando
2019-06-26 21:44:03 +00:00
Hiroyuki Ikezoe
b14c7c928c Bug 1560237 - Don't propagate scroll-behavior from <body>. r=botond
From the CSSOM View spec[1];

 The scroll-behavior property of the HTML body element is not propagated to
 the viewport.

The reason why this change fixes the test case in this commit is that we don't
have two different scrollable frames for <html> and <body> respectively if we
don't propagate scroll-behavior property from <body> to <html> so that we can
properly find the `flow root` of sticky position elements.

In other words, in the case where both of <html> and <body> have properties
that are propagated from <body> but they are different we have two scrollable
frames as a candidate of the 'flow root' for the sticky position element in
the test case, one is the scrollable frame for <html> and the other is the
scrollable frame for <body>.  That means that
nsLayoutUtils::GetNearestScrollableFrame doesn't return what we want in some
places, for example we have a pretty similar issue in case of
overscroll-behavior which is bug 1561107.

Note that the test position-sticky-root-scroller-with-scroll-behavior.html is
almost copy-and-pasted from
/css/css-position/position-sticky-root-scroller.html [2] in wpt, the reason why
we put the test in /css/cssom-view is that there is a handy function to wait
for async scroll completion.

[1] https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior
[2] https://searchfox.org/mozilla-central/rev/928742d3ea30e0eb4a8622d260041564d81a8468/testing/web-platform/tests/css/css-position/position-sticky-root-scroller.html

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

--HG--
extra : moz-landing-system : lando
2019-06-26 20:57:05 +00:00
Hiroyuki Ikezoe
a377b45fe1 Bug 1560237 - Rename ScrollFrameHelper::GetFrameForScrollSnap to ScrollFrameHelper::GetFrameForStyle. r=botond
The function will also be used for `scroll-behavior` property in a later patch
in this commit series, so it needs a more reasonable name.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 20:59:14 +00:00
Hiroyuki Ikezoe
0670fe9a3f Bug 1560237 - Introduce nsIScrollableFrame::IsSmoothScroll. r=botond
This is pretty much the same as ScrollStyles::IsSmoothScroll right now,
but in the next commit, we will no longer propagate scroll-behavior on <body> to
the root element so that nsIScrollableFrame::IsSmoothScroll will be changed
to reflect it.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 20:59:01 +00:00
harry
850a79f174 Bug 1554864 - Add clickSelectsAll support to UrlbarInput without depending on the textbox binding. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D36078

--HG--
extra : moz-landing-system : lando
2019-06-26 21:21:55 +00:00
Ted Campbell
1a7e616897 Bug 1471062 - Avoid storing SharedScriptData metadata for empty arrays. r=jandem
If optional arrays of SharedScriptData are empty, avoid storing their
offset in order to save memory. This is done by deduplicating offsets
and storing this variably-sized set of offsets as a trailing array. A
uint32_t for each non-empty array. These offsets are analogous to the
array length we would naively consider storing but with careful encoding
for performance.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 21:07:00 +00:00
Ted Campbell
83d19349e9 Bug 1471062 - Add SharedScriptData::flags. r=jandem
Add a flag into the byte array area. It is inserted before code() so it
will be at a fixed offset once atoms are removed. This will be used to
store flags about optional trailing arrays.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 21:05:19 +00:00
Ted Campbell
e3491853b7 Bug 1471062 - Remove the PrivateScriptData::PackedSpan mechanism. r=jandem
Now that PrivateScriptData contains a single array, the PackedSpan
mechanism for packing multiple trailing arrays can be removed.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 20:50:17 +00:00
Ted Campbell
1c0cf73eef Bug 1471062 - Move resumeOffsets/scopeNotes/tryNotes to SharedScriptData. r=jandem
These arrays contain only relocatable, cloneable data and should be made
shareable. The API they now expose in SharedScriptData uses Span.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 20:50:03 +00:00
Ted Campbell
5f5b082297 Bug 1471062 - Pad source notes to target alignment. r=jandem
Pad the source notes with SRC_NULL such that the code and notes arrays
together maintain uint32_t alignment. This is will later be used to add
optional trailing arrays with uint32_t alignment. The allocator would
already be rounding up our allocation so actually memory usage should be
neutral.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 20:49:43 +00:00
Ted Campbell
04085d857f Bug 1471062 - Add SharedScriptData::offsetToPointer. r=jandem
Make access to trailing arrays more consistent with other data
structures and better encapsulate the reinterpret_casts.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 18:42:35 +00:00
Jason Laster
890892c4e2 Bug 1560445 - Extract classes from protocol.js. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D35502

--HG--
rename : devtools/shared/protocol.js => devtools/shared/protocol/Actor.js
rename : devtools/shared/protocol.js => devtools/shared/protocol/Actor/generateActorSpec.js
rename : devtools/shared/protocol.js => devtools/shared/protocol/Front.js
rename : devtools/shared/protocol.js => devtools/shared/protocol/Front/FrontClassWithSpec.js
rename : devtools/shared/protocol.js => devtools/shared/protocol/Pool.js
rename : devtools/shared/protocol.js => devtools/shared/protocol/Request.js
rename : devtools/shared/protocol.js => devtools/shared/protocol/Response.js
rename : devtools/shared/protocol.js => devtools/shared/protocol/types.js
rename : devtools/shared/protocol.js => devtools/shared/protocol/utils.js
extra : moz-landing-system : lando
2019-06-26 15:53:20 +00:00
Mihai Alexandru Michis
9f81e46a34 Backed out 2 changesets (bug 1559690) for causing failures in browser_tabCloseSpacer.js CLOSED TREE
Backed out changeset 9f45982e7800 (bug 1559690)
Backed out changeset fdb96c16d976 (bug 1559690)
2019-06-26 21:04:20 +03:00
Narcis Beleuzu
255b52c321 Backed out 2 changesets (bug 1558971, bug 1555464) for SM bustages on ecma262-issue-1461.js . CLOSED TREE
Backed out changeset 8227f5fbbe20 (bug 1555464)
Backed out changeset 36683eb4d0db (bug 1558971)
2019-06-26 19:55:40 +03:00
Ted Campbell
fdabbcfb9a Bug 1471062 - Make heap-analysis/byteSize-of-scripts jit-test more complex r=jandem,arai
As PrivateScriptData contains less data, we need to make this test have
more complicated functions so that the test is not sensistive to
allocator rounding. This also removes the binjs variant of test until
they next time they are regenerated.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 15:36:43 +00:00
Mike Hommey
8ad5ae09a7 Bug 1561494 - Remove gconf from bootstrap. r=froydnj
Gconf support was removed in bug 1433685.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 12:54:30 +00:00
Emilio Cobos Álvarez
e86340308c Bug 1559814 - Use the cbindgen representation for grid line properties. r=mats
We clamp earlier (parse time rather than computed value time), but that's the
only behavior change, which I think doesn't really matter.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 21:21:38 +00:00
Emilio Cobos Álvarez
914637451c Bug 1559814 - Generate top-level function and constant declarations for the style crate. r=heycam
This needs https://github.com/eqrion/cbindgen/pull/362, but I expect it to be
uncontroversial. I'll add a patch to this bug when it's merged to update it.

cbindgen historically didn't include these, but it turns out to be pretty useful
to generate constants for the style crate (since the binding crate is
`servo/ports/geckolib`).

An alternative is to get a completely different cbindgen-generated header for
these, but that seems a bit wasteful. This generates the constants with the
Style prefix (so we'll get `StyleMAX_GRID_LINE` for example), which is very
ugly. But we probably want to eventually stop using the Style prefix and use a
namespace instead, plus it's trivial to do `auto kMaxLine = StyleMAX_GRID_LINE`,
for example, so it's probably not a huge deal.

Another alternative would be to use associated consts, which _are_ generated by
cbindgen. Something like:

```
struct GridConstants([u8; 0]);
impl GridConstants {
    const MAX_GRID_LINE: i32 = 10000;
}
```

Which would yield something like:

```
static const int32 StyleGridConstants_MAX_GRID_LINE = 10000;
```

I'm not sure if you find it preferrable, but I'm also happy to change it in a
follow-up to use this.

We need to fix a few manual C++ function signature definitions to match the C++
declaration.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 21:21:28 +00:00
Emilio Cobos Álvarez
df11d22ea2 Bug 1559814 - Remove GetGridLine since it's dead code now that Stylo serializes all grid lines. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D35196

--HG--
extra : moz-landing-system : lando
2019-06-26 21:21:13 +00:00
Emilio Cobos Álvarez
96113a798b Bug 1559814 - Use a more similar representation in Rust and C++ for grid lines. r=heycam
Option<> is not FFI-safe, so if we want to use the same representation
everywhere we need to get rid of it. This also makes it take the same amount of
memory as the C++ representation, and it's not very complex, I'd think.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 21:21:06 +00:00
Jan-Ivar Bruaroey
8fd4637236 Bug 1528031 - Update tests to work with [SecureContext] navigator.mediaDevices. r=pehrsons,smaug
Differential Revision: https://phabricator.services.mozilla.com/D35970

--HG--
extra : moz-landing-system : lando
2019-06-26 18:15:50 +00:00
Jan-Ivar Bruaroey
4abced2ba4 Bug 1528031 - Require [SecureContext] for navigator.mediaDevices & navigator.mozGetUserMedia(). r=pehrsons,smaug
Differential Revision: https://phabricator.services.mozilla.com/D33836

--HG--
extra : moz-landing-system : lando
2019-06-26 18:15:23 +00:00
Jonathan Kew
fee6d28be8 Bug 1561600 - Support the special Osaka-mono font (family) for Japanese on macOS, by hooking up the font.single-face-list pref to the shared font-list's alias table. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D36023

--HG--
extra : moz-landing-system : lando
2019-06-26 18:58:48 +00:00
Mihai Alexandru Michis
aaec1d24b3 Bug 1560061 - Fix linting issues in test_connectRoot_webcomponent.html r=gandalf CLOSED TREE
--HG--
extra : amend_source : b2d5be652518b517986256942c970bba2bbe1c1e
2019-06-27 00:38:03 +03:00