Commit Graph

674483 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
5a6d7ed393 Bug 1587368 - Cherry-pick updates towards syn 1.
From: https://github.com/servo/servo/pull/24308
2019-10-09 13:35:48 +02:00
Emilio Cobos Álvarez
2c773522c0 Bug 1587368 - Use consistent naming and shared code for out-of-flow stuff. r=nox
Use the functions introduced in ee17eedf3a857f27ce2b6b775574a3a455df8aa3.
2019-10-09 13:35:48 +02:00
Anthony Ramine
c4a439d228 Bug 1587368 - servo: Update html5ever to 0.24. r=emilio 2019-10-09 13:35:46 +02:00
Simon Sapin
c1af5161a0 Bug 1587368 - servo: WebIDL codegen: Replace cmake with a single Python script. r=emilio
When playing around with Cargo’s new timing visualization:
https://internals.rust-lang.org/t/exploring-crate-graph-build-times-with-cargo-build-ztimings/10975/21

… I was surprised to see the `script` crate’s build script take 76 seconds.
I did not expect WebIDL bindings generation to be *that* computationally
intensive.

It turns out almost all of this time is overhead. The build script uses CMake
to generate bindings for each WebIDL file in parallel, but that causes a lot
of work to be repeated 366 times:

* Starting up a Python VM
* Importing (parts of) the Python standard library
* Importing ~16k lines of our Python code
* Recompiling the latter to bytecode, since we used `python -B` to disable
  writing `.pyc` file
* Deserializing with `cPickle` and recreating in memory the results
  of parsing all WebIDL files

----

This commit remove the use of CMake and cPickle for the `script` crate.
Instead, all WebIDL bindings generation is done sequentially
in a single Python process. This takes 2 to 3 seconds.
2019-10-09 13:35:45 +02:00
Simon Sapin
c00df807f7 Bug 1587368 - servo: Fix error message for invalid combination of style crate feature flags. r=emilio
Instead of ``cannot find value `engine` in this scope``
https://github.com/servo/servo/issues/24284
2019-10-09 13:35:44 +02:00
Anthony Ramine
42cb31df76 Bug 1587368 - servo: Uncomment more stuff related to box construction. r=emilio 2019-10-09 13:35:43 +02:00
Paul Zuehlcke
f24e944b04 Bug 1587130 - Fixed nsContentBlocker telemetry adding scalar values. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D48679

--HG--
extra : moz-landing-system : lando
2019-10-09 11:10:03 +00:00
Logan Smyth
4470e56db4 Bug 1585902 - Use the protocoljs framework for emitting events. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D48147

--HG--
extra : moz-landing-system : lando
2019-10-09 11:03:33 +00:00
Marcos Cáceres
fbff2e387c Bug 1312422 - Web Share Base/DOM implementation r=farre
Web Share base implementation just of DOM stuff - working together with @saschanaz.

@Baku, we would greatly appreciate your review.

-Nika, as she is traveling.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 10:57:11 +00:00
Florens Verschelde
ac1ba8670f Bug 1585725 - Use white blocked icon in selected rows; r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D48252

--HG--
extra : moz-landing-system : lando
2019-10-09 09:47:20 +00:00
Valentin Gosu
2ac6343c43 Bug 1533957 - Separate nsLoadGroup::RemoveRequest into RemoveRequestFromHashtable and NotifyRemovalObservers r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D47077

--HG--
extra : moz-landing-system : lando
2019-10-08 20:21:42 +00:00
Valentin Gosu
47305d3076 Bug 1533957 - Test that request is cancelled before being removed from a loadGroup r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D47076

--HG--
extra : moz-landing-system : lando
2019-10-07 12:18:11 +00:00
Valentin Gosu
b689fb9e97 Bug 1533957 - The request should be cancelled before being removed from the LoadGroup r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D46591

--HG--
extra : moz-landing-system : lando
2019-10-07 12:17:56 +00:00
Masayuki Nakano
ac74e89b26 Bug 1566795 - part 6: Make HTMLEditor::RemoveInlinePropertyInternal() remove text node style which comes from block parent r=m_kato
Finally, `Document.execCommand()` still does not work fine if selection
starts from very start of block and/or end at very end of block because
`PromoteInlineRange()` extends selection range to contain the
containers, then, `SubtreeContentIterator` won't list up text nodes.

In this case, `RemoveInlinePropertyInternal()` expects that
`RemoveStyleInside()` removes text node style with creating
`<span>` elements.  However, `RemoveStyleInsilde()` only handles
`Element`s and it handles elements from most-descendants.
Therefore, it cannot distinguish whether text node style comes
from removing inline elements or parent block.

This patch makes `RemoveInlinePropertyInternal()` collect
descendant text nodes in the range after handling all nodes in
the range except descendant text nodes, then, check the
final style of descendant text nodes, finally, remove the style
if coming from parent block.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 08:04:34 +00:00
Gijs Kruitbosch
f885567a48 Bug 1586220 - still treat shortcut/modifier keypresses as interaction for the purposes of GCs/timers and so on, just not for the website, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48623

--HG--
extra : moz-landing-system : lando
2019-10-09 10:39:41 +00:00
Narcis Beleuzu
4c4528501d Bug 1430977 - Disable browser_625016.js on Win-debug. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D48669

--HG--
extra : moz-landing-system : lando
2019-10-09 10:34:22 +00:00
Jon Coppeard
89ee604716 Bug 1585921 - Remove GCPtrHasher which is invalid, and replace with HeapPtrHasher r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D48544

--HG--
extra : moz-landing-system : lando
2019-10-09 10:30:02 +00:00
Jon Coppeard
f88eca81a5 Bug 1585921 - Use root marking functions to trace unbarriered pointers in GCPolicy traits since this is only safe when we're marking roots r=sfink
The root marking functions have assertions that will catch this being used outside of heap marking.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 10:30:02 +00:00
Jon Coppeard
f5b3722028 Bug 1585921 - Remove unnecessary static trace methods which are never called r=sfink
GCPolicy<T> calls the instance method for these types so these static methods aren't required.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 10:27:15 +00:00
Mirko Brodesser
97932aef0b Bug 1587069: slightly simplify RangeBoundaryBase constructors. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48651

--HG--
extra : moz-landing-system : lando
2019-10-09 10:07:46 +00:00
shindli
84419a8c10 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-10-09 13:38:28 +03:00
shindli
083cbd8b40 Backed out 8 changesets (bug 1563350, bug 1563351, bug 1563349, bug 1567939) on suspicion of causing OS X crashes https://bugzilla.mozilla.org/show_bug.cgi?id=1587351 CLOSED TREE a=backout
Backed out changeset 86ed8b9bee5f (bug 1563351)
Backed out changeset 355b0329bd95 (bug 1563350)
Backed out changeset 653caa0c494a (bug 1567939)
Backed out changeset 4b4a71e170bd (bug 1563349)
Backed out changeset 81b93962243b (bug 1563349)
Backed out changeset cff2050ff540 (bug 1563349)
Backed out changeset db50ea44f0b1 (bug 1563349)
Backed out changeset dcbddc5738c3 (bug 1563349)
2019-10-09 13:33:05 +03:00
Narcis Beleuzu
0eb439e941 Bug 1581670 - ESlint-fix. r=me CLOSED TREE
--HG--
extra : histedit_source : 9f44522a57ed9a1dc57670655841db62ba1568c8
2019-10-09 13:26:52 +03:00
Jan de Mooij
09a15f9e11 Bug 1571446 follow-up - Don't use std::min to avoid weird linker errors in no-opt debug builds. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D48671

--HG--
extra : histedit_source : 145ca6ac1d74e30c00c0a292f70be110bc154137
2019-10-09 13:16:24 +03:00
Henrik Skupin
0082e28845 Bug 1584927 - [marionette] Handle user prompts in "Take Element Screenshot" and "Take Screenshot" commands. r=webdriver-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D48511

--HG--
extra : moz-landing-system : lando
2019-10-09 09:43:13 +00:00
Jan de Mooij
72207a272d Bug 1571446 part 3 - Combine JSScript's jitScript_ and warmUpCount_ fields in a single warmUpData_ field. r=tcampbell
The warm-up count is stored in ScriptWarmUpData until the script is warm
enough for the Baseline Interpreter and the JitScript is created. At that point
we use the warm-up count stored in JitScript.

ScriptWarmUpData uses pointer tagging. This should make it easy to add new
types for LazyScript data in the future.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 09:51:19 +00:00
Tim Nguyen
49cb992e00 Bug 1581670 - Remove XUL grid from browser/components/preferences/connection.xul. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D46089

--HG--
extra : moz-landing-system : lando
2019-10-09 09:41:49 +00:00
Tim Nguyen
822add064c Bug 1513325 - Remove textbox binding. r=emilio,dao
Differential Revision: https://phabricator.services.mozilla.com/D38955

--HG--
extra : moz-landing-system : lando
2019-10-09 09:27:28 +00:00
Paul Zuehlcke
53a3c77cec Bug 1583665 - Fixed AddonManager.jsm fullscreen check to only cancel installation for DOM fullscreen. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D47933

--HG--
extra : moz-landing-system : lando
2019-10-09 09:28:19 +00:00
Alexandre Poirot
5aaa18113b Bug 1565263 - Make TargetMixin.destroy more synchronous. r=jdescottes
Protocol.js's Front and Pool's destroy are not expected to be async.
But TargetMixin.destroy is. It makes DebuggerClient.close do not wait
for all Target fronts destroys correctly. The client close method calls
the cleanup method of all the pools. Top level fronts are pools.
Target fronts are still self managed and so are pools.
And so, when we close the toolbox, the target destroy is still pending
after toolbox.destroy is resolved.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 08:03:45 +00:00
Alexandre Poirot
52a0e9273a Bug 1565263 - Support target switching for the console. r=nchevobbe,yulia,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D40016

--HG--
extra : moz-landing-system : lando
2019-10-09 08:03:43 +00:00
Alexandre Poirot
995d069a19 Bug 1565263 - Use Target.shouldCloseClient as only flag to check if a Target should close its Client. r=jdescottes
This will later allow dynamically change this value for local tabs,
during Fission processes switches.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 08:03:41 +00:00
Perry Jiang
05a22d8648 Bug 1456995 - expectation changes for WPTs running under sw-e10s r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D46902

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:46 +00:00
Perry Jiang
7019a28bcf Bug 1456995 - reduce access levels for member variables/methods in ServiceWorkerManager r=asuth
The changes are just cleanup for member variables/methods that should
be private to ServiceWorkerManager.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:48:01 +00:00
Perry Jiang
b3b727b8ee Bug 1456995 - shutdown unregistered Service Workers on browser shutdown r=asuth
Also replace ServiceWorkerManager shutdown logic's normal for-loops with
range-based for-loops.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:57 +00:00
Perry Jiang
289cec9298 Bug 1456995 - enable Service Workers' parent-intercept mode on Nightly r=asuth,jgraham
Due to limitations in the test harness, the "serviceworker_e10s" (for mochitest
and xpcshell) and "sw-e10s" (for WPT) values will match mozinfo's "nightly_build"
value, unless overridden by "--setpref dom.serviceWorkers.parent_intercept=..."
provided at the CLI.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:48 +00:00
Perry Jiang
398ea07602 Bug 1456995 - give InternalRequest::mMozErrors a default initializer r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D44514

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:36 +00:00
Perry Jiang
2f362be636 Bug 1456995 - make browser_devtools_serviceworker_interception.js compatible with parent-intercept r=asuth
- Listen for observer topics in the parent-process when in parent intercept mode
- Remove an extra postMessage call (and the corresponding message handler)

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:47:26 +00:00
Alexander J. Vincent
614b38cb05 Bug 1508165, build bustage fix for a no-longer-used variable. 2019-10-08 21:28:16 -07:00
Brendan Dahl
237d762715 Bug 1510785 - Skip all XBL related tests when XBL is disabled. r=bzbarsky
XBL will be disabled on android, so these tests must be skipped. Where possible
tests are copied to create shadow DOM tests.

Depends on D45615

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

--HG--
rename : layout/inspector/tests/test_bug522601.xhtml => layout/inspector/tests/test_bug522601-shadow.xhtml
rename : layout/inspector/tests/test_bug609549.xhtml => layout/inspector/tests/test_bug609549-shadow.xhtml
rename : layout/reftests/bugs/334829-1a.xhtml => layout/reftests/bugs/334829-1a-shadow.xhtml
rename : layout/reftests/bugs/334829-1b.xhtml => layout/reftests/bugs/334829-1b-shadow.xhtml
rename : layout/reftests/bugs/386310-1b.html => layout/reftests/bugs/386310-1b-shadow.html
rename : layout/reftests/bugs/386310-1c.html => layout/reftests/bugs/386310-1c-shadow.html
rename : layout/reftests/bugs/386310-1d.html => layout/reftests/bugs/386310-1d-shadow.html
rename : layout/reftests/bugs/482592-1a.xhtml => layout/reftests/bugs/482592-1a-shadow.xhtml
rename : layout/reftests/bugs/482592-1b.xhtml => layout/reftests/bugs/482592-1b-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-1.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-1-shadow.xhtml
rename : layout/reftests/css-selectors/sibling-combinators-on-anon-content-2.xhtml => layout/reftests/css-selectors/sibling-combinators-on-anon-content-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-appendmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-appendsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-appendsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml => layout/reftests/dom/multipleinsertionpoints-insertmultiple-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-1-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-insertsingle-2.xhtml => layout/reftests/dom/multipleinsertionpoints-insertsingle-2-shadow.xhtml
rename : layout/reftests/dom/multipleinsertionpoints-ref2.xhtml => layout/reftests/dom/multipleinsertionpoints-ref2-shadow.xhtml
rename : layout/reftests/ib-split/insert-into-split-inline-5.html => layout/reftests/ib-split/insert-into-split-inline-5-shadow.html
extra : moz-landing-system : lando
2019-10-08 23:52:46 +00:00
Brendan Dahl
a51ca19772 Bug 1510785 - Support disabling XBL related tests. r=gbrown
Adds a way for mochitest, reftest, and crashtests to skip XBL related
tests when XBL is disabled. Also, add an app constant so JS can
check whether XBL is enabled.

Depends on D45614

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:33 +00:00
Brendan Dahl
ac5283b5c0 Bug 1510785 - Add way to disable XBL in servo. r=emilio
Adds a feature "moz_xbl" that when disabled causes the XBL code in servo to
be stubbed out.

Depends on D45613

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:26 +00:00
Brendan Dahl
c68cd30ef2 Bug 1510785 - Only build XBL related code when MOZ_XBL is defined. r=bzbarsky
When XBL is disabled, no code in dom/xbl will be built. Also, adds ifdefs
to remove any of the XBL related code elsewhere. There's definitely more
that can be done here, but I think it's better to wait to do the rest of
the cleanup when we actually remove the code.

Depends on D45612

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:14 +00:00
Brendan Dahl
8f5cb3d17d Bug 1510785 - Add build option for disabling XBL. r=chmanchester
Defaults XBL to disabled on android, but still enabled for desktop.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:07 +00:00
Alexander J. Vincent
eb2ce4c505 Bug 1508165, remove support for treecol[type=password]. r=MattN,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D48573

--HG--
extra : moz-landing-system : lando
2019-10-08 23:46:23 +00:00
Perry Jiang
87c3eb5a96 Bug 1575185 - Subscribe content processes spawning Service Workers to permission updates r=asuth
Previously, Service Workers could spawn in a process that isn't subscribed
to permission updates, which could happen if that process hadn't loaded any
same-origin documents. To address this, parent-process logic for spawning
Service Workers would snapshot the permissions state to be sent to a content
process.

Unfortunately, this approach could lead to outdated, unsynchronized permissions.
Note that nsIPermissionManager::SetPermissionsWithKey is only used to initialize
permissions for a given key and is a no-op if already called with the same key
in a given process. As a result, the following sequence of events could happen:

Assume a content process CP that isn't subscribed to permission changes for an
origin A:

1) Parent process decides to spawn an origin A Service Worker in CP,
snapshotting a value V for permission P.
2) The Service Worker is spawned in CP, setting CP's permission manager's
permission P to value V (for origin A).
3) Parent process updates its permission P to a value A', which is not
broadcasted to CP (because it's not subscribed).
4) By now, the initial Service Worker has been terminated, and the parent
process decides once again to spawn an origin A Service Worker in CP.
5) The Service Worker is spawned in CP, but the call to SetPermissionsWithKey
is a no-op, leaving CP1 with a mismatched value for permission P.

An additional scenario is if the parent process updates a permission during a
remote Service Worker's lifetime.

This patch, which would subscribe CP1 to permission updates when the parent
process knows a Service Worker would be spawned in CP1, prevents these problems.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 02:23:41 +00:00
Andreas Pehrson
cea60bb690 Bug 1586387 - Don't append a device change message to a graph that is going away. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D48553

--HG--
extra : moz-landing-system : lando
2019-10-08 21:39:30 +00:00
Emma Malysz
1417210039 Bug 1586344, Updating Marionette test cases for removal of the <textbox> XBL binding. Inputs are now handled directly by input elements. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D48205

--HG--
extra : moz-landing-system : lando
2019-10-09 09:18:34 +00:00
Logan Smyth
b05f195249 Bug 1572214 - Part 3: Update debugger to use new react-redux flow-typed bindings for better typechecking. r=jlast
Depends on D48477

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:59:46 +00:00
Logan Smyth
34a6a14f57 Bug 1572214 - Part 2: Override Prettier Flow config to allow templatized call syntax. r=jlast
Depends on D48476

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:57:16 +00:00