Commit Graph

674600 Commits

Author SHA1 Message Date
Ben Campbell
901747f2fb Bug 1587199 - Fix test_parse_content_type.js under Thunderbird. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D48627

--HG--
extra : moz-landing-system : lando
2019-10-09 08:10:05 +00:00
Jon Coppeard
58e4c9be34 Bug 1587378 - Remove TraceCallbacks method that takes raw JSObject pointers r=mccr8
This method turned out to only be used for tracing wrapper cached things. The wrapper cache has its own way of implementing barriers and contains a raw JSObject pointer. Changing this trace method to take an nsWrapperCache pointer (effectively a JSObjct**) enforces correct use of Heap<T> for other TraceCallbacks callers.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 14:34:16 +00:00
Tom Ritter
ff95dca4e6 Bug 1585373 - Re-enable PoisonIOInterposer for the mingw build r=dmajor
This was disabled in Bug 1441558 because it broke the mingw-gcc build.
But it doesn't break the mingw-clang build, and we don't support mingw-gcc
anymore, so we can re-enable it.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 14:53:36 +00:00
Nika Layzell
2f74e2ef0e Bug 1575163 - Dont send PostMessage events to a discarded BrowsingContext, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D48418

--HG--
extra : moz-landing-system : lando
2019-10-09 14:20:23 +00:00
Nika Layzell
62821fbf63 Bug 1581925 - Part 4: Use <browser> for the content devtools toolbox, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D48094

--HG--
extra : moz-landing-system : lando
2019-10-07 19:35:07 +00:00
Nika Layzell
c8a8f0a350 Bug 1581925 - Part 3: Remove ContextMenuSpecialProcessChild.jsm, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D48093

--HG--
extra : moz-landing-system : lando
2019-10-07 19:35:06 +00:00
Nika Layzell
6ac2292c72 Bug 1581925 - Part 2: Use {chrome/content}-document-global-created topic to create SpecialPowers actor, r=kmag
This replaces the old DOMWindowCreated event, and allows SpecialPowers to still
be instantiated for each new chrome document.

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

--HG--
extra : moz-landing-system : lando
2019-10-07 19:35:06 +00:00
Nika Layzell
ed104ffa03 Bug 1581925 - Part 1: Capture parent process JSWindowActor events at InProcessBrowserChildMessageManager, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46864

--HG--
extra : moz-landing-system : lando
2019-10-07 19:35:06 +00:00
Christoph Kerschbaumer
ecf163cc61 Bug 1587417: Add about:logo to allowlist of CSP assertion. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D48703

--HG--
extra : moz-landing-system : lando
2019-10-09 13:33:15 +00:00
Simon Fraser
abbd58c38b Bug 1585998 mach try fuzzy estimates, ensure cache exists r=jlorenzo
The duration file downloader uses the cache directory created by taskgraph generation.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 13:44:34 +00:00
Nicolas Chevobbe
f8c4247ef8 Bug 1586006 - Remove preEvent mentions in protocol.js documentation. r=jdescottes.
`preEvent` isn't used anymore, but was somehow
replaced by `before`. This patch remove all the
mentions of `preEvent`, and tries to document
what can be done with `before`.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 13:30:51 +00:00
Nick Thomas
b6fa1fc423 Bug 1585603 - enable GCP addonworkers. r=catlee
Switch addonworkers from AWS to GCP.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 13:32:58 +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