Commit Graph

625664 Commits

Author SHA1 Message Date
Dorel Luca
fbe4ae9803 Backed out 6 changesets (bug 1159042) for crashtest failures. CLOSED TREE
Backed out changeset fe77c09dee31 (bug 1159042)
Backed out changeset db0e173a6ed2 (bug 1159042)
Backed out changeset 080b9ceee8ec (bug 1159042)
Backed out changeset 6a5191742ca1 (bug 1159042)
Backed out changeset 3a86c3e65d44 (bug 1159042)
Backed out changeset 845bc8316b05 (bug 1159042)
2018-11-27 06:30:07 +02:00
Ehsan Akhgari
923b4f06ad Bug 1503074 - Only touch the FX_TAB_SWITCH_COMPOSITE_E10S_MS stopwatch when we have actually started it in the past
Differential Revision: https://phabricator.services.mozilla.com/D12966

--HG--
extra : moz-landing-system : lando
2018-11-26 19:16:09 +00:00
Ehsan Akhgari
2aea5bbb1a Bug 1508044 - Part 4: Make nsChannelClassifier use nsContentUtils::IsThirdPartyWindowOrChannel() in order to avoid having duplicated logic r=francois
Depends on D12853

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

--HG--
extra : moz-landing-system : lando
2018-11-27 00:46:50 +00:00
Ehsan Akhgari
5dfda8ee14 Bug 1508044 - Part 3: Ensure that the third-party checks performed on channels in nsContentUtils::IsThirdPartyWindowOrChannel() follow the same logic as those performed in nsChannelClassifier r=francois
Depends on D12852

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

--HG--
extra : moz-landing-system : lando
2018-11-27 00:43:20 +00:00
Ehsan Akhgari
64798d5a07 Bug 1508044 - Part 2: Check the return values of mozIThirdPartyUtil::IsThirdPartyFoo() in nsContentUtils::IsThirdPartyWindowOrChannel() r=francois
Differential Revision: https://phabricator.services.mozilla.com/D12852

--HG--
extra : moz-landing-system : lando
2018-11-27 00:38:52 +00:00
WR Updater Bot
cc5d0e0605 Bug 1510085 - Update webrender to commit 05bdcae134d73aca7bb48358e91de1f8aef27773 (WR PR #3354). r=kats
https://github.com/servo/webrender/pull/3354

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

--HG--
extra : moz-landing-system : lando
2018-11-27 02:54:00 +00:00
WR Updater Bot
681c0f4ec1 Bug 1510084 - Update webrender to commit 35027d93aded8c0a7887dadc8aef5e393171e802 (WR PR #3348). r=kats
https://github.com/servo/webrender/pull/3348

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

--HG--
extra : moz-landing-system : lando
2018-11-27 02:53:43 +00:00
WR Updater Bot
ef022fddde Bug 1510082 - Update reftest annotations for changes in WR PR #3346. r=kats
Depends on D13026

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

--HG--
extra : moz-landing-system : lando
2018-11-27 02:53:03 +00:00
WR Updater Bot
0d52f7e529 Bug 1510082 - Update webrender to commit e2e52b1145ad959191c0612edd41b0b189cf6b59 (WR PR #3346). r=kats
https://github.com/servo/webrender/pull/3346

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

--HG--
extra : moz-landing-system : lando
2018-11-27 02:52:50 +00:00
WR Updater Bot
1669ae2beb Bug 1510078 - Update webrender to commit f450af9277e2474e2a2a2c1358689ca9486e2a09 (WR PR #3345). r=kats
https://github.com/servo/webrender/pull/3345

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

--HG--
extra : moz-landing-system : lando
2018-11-27 01:16:27 +00:00
Dão Gottwald
fbccdb1f61 Bug 1509488 - Use keydown handler instead of <key> for Shift+Ctrl+Tab. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D12744

--HG--
extra : moz-landing-system : lando
2018-11-26 16:07:07 +00:00
Jed Davis
15e4267fae Bug 1487287 - Move child process launch off the I/O thread. r=mccr8
Launching processes takes enough time that we should avoid blocking the
parent process's IPC I/O thread for it; it's less bad for responsiveness
than blocking the main thread, but it's not good.

On Windows we need to use a dedicated thread, because the sandbox isn't
thread-safe and it asserts that the same thread is used for every
launch.  Otherwise, a thread pool is used.

Depends on D8945

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:06:22 +00:00
Jed Davis
8782927375 Bug 1487287 - Set profiler env vars in child processes without side-effecting the parent process. r=mstange
We can directly set environment variables for the child process on
all platforms now, instead of changing the parent's environment and
inheriting the changes.  This simplifies memory management, but more
importantly it's necessary for thread safety to allow launching
processes from a thread pool.

Depends on D8944

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:06:20 +00:00
Jed Davis
4a53512dbe Bug 1474991 - Add new and improved performance telemetry for child process launching. r=mccr8,mconley,janerik
This patch adds some telemetry histograms:

* CONTENT_PROCESS_LAUNCH_IS_SYNC - boolean, true if the content process
was launched synchronously (blocking the main thread)

* CONTENT_PROCESS_SYNC_LAUNCH_MS - the time consumed by sync launch;
the main thread will be busy or blocked for this entire time

* CONTENT_PROCESS_LAUNCH_TOTAL_MS - the total time elapsed from the
start of async content process launch until the launch promise is
resolved and the ContentParent can be sent IPDL messages

* CONTENT_PROCESS_LAUNCH_MAINTHREAD_MS - the time consumed on the parent
process main thread during async content process launch; typically this
is due to ContentParent::Init.

* CHILD_PROCESS_LAUNCH_MS - for any kind of Gecko child process
(including plugins, GPU, etc.), the time taken in the common process
launch code (which is run off-main-thread)

The probes restricted to async content process launch don't have "async"
in the name because that will eventually become the only kind of content
process launch.

Depends on D8943

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:06:17 +00:00
Jed Davis
dececcae11 Bug 1446161 - Asynchronously launch preallocated content processes using MozPromise. r=mccr8
There are several layers to this patch:

1. GeckoChildProcessHost now exposes a promise that's resolved when
the process handle is available (or rejected if launch failed), as a
nonblocking alternative to LaunchAndWaitForProcessHandle.

2. ContentParent builds on this with the private method
LaunchSubprocessAsync and the public method PreallocateProcessAsync;
synchronous launch continues to exist for the regular on-demand launch
path, for the time being.

3. PreallocatedProcessManager now uses async launch, and handles the new
"launch in progress" state appropriately.

Depends on D8942

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:35:53 +00:00
Jed Davis
5379e8a375 Bug 1446161 - Remove the earlier attempt at async launch. r=spohl,mccr8
The first attempt at async launch tried to hide the asynchrony inside
IPC, by making the process seem to be launched enough to construct new
channels and send it messages, and lazily blocking on the pid/handle.
Unfortunately, in practice we wind up needing the pid/handle immediately,
and this requirement is too deeply embedded in IPC for that to be viable.

(The alternative that will be used instead -- exposing process launch via
an explicitly asynchronous promise interface -- is made simpler by
Project Fission's upcoming rewrite of how the DOM requests new content
processes.)

Depends on D8941

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:06:14 +00:00
Jed Davis
9c8dbd2530 Bug 1446161 - Remove CONTENT_PROCESS_LAUNCH_TIME_MS telemetry. r=mconley,chutten
The CONTENT_PROCESS_LAUNCH_TIME_MS histogram is currently gathering times
from two different spans of the launch process and mixing them together;
it's at best a rough approximation of "launch time".

In addition, with async launch we'll want to gather different metrics
than for sync launch (see comments on bug 1474991).

So I'm removing this histogram and will replace it with separate sync and
async metrics in bug 1474991; I intend to land both bugs' patches at or
near the same time, so we won't have a gap in getting some kind of data.

Depends on D8940

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

--HG--
extra : moz-landing-system : lando
2018-11-22 20:21:03 +00:00
Jed Davis
3ef7ede064 Bug 1496608 - Don't leak GeckoChildProcessHost when a content process fails to launch. r=mccr8
Depends on D8939

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:06:09 +00:00
Jed Davis
47d57882cd Bug 1488993 - Fix PreallocatedProcessManager blocker management (v2). r=mconley,smaug
This fixes/adjusts two things about how content process preallocation is blocked:

1. Processes aren't registered as blockers until after they launch
successfully.  The main goal is to not leak a blocker if launch fails,
but we don't need to block *while* launching synchronously, because this
all happens on the main thread.

2. Preallocated processes themselves aren't blockers.  The main goal
here is so that async preallocation doesn't need extra complexity to
avoid being blocked by itself when launch completes.  This mostly
doesn't affect actual behavior, because we currently support at most
one preallocated process.  The difference is the window from when the
process is sent its first PBrowserConstructor until when it's next idle,
where there is now no longer a blocker, but this seems to be relatively
short (~100ms) and we don't even try to launch a new process until at
least 1s + an idle runnable.

This patch does not explicitly RemoveBlocker in ActorDestroy like the
first attempt did, because it's unnecessary: this is handled in the
ipc:content-shutdown observer.

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:06:07 +00:00
L. David Baron
2aba04965b Bug 1159042 - p6. Use NS_FRAME_DYNAMIC_REFLOW_ROOT - r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D9492

--HG--
extra : moz-landing-system : lando
2018-11-25 23:18:19 +00:00
L. David Baron
de68b78d22 Bug 1159042 - p5. Add NS_FRAME_DYNAMIC_REFLOW_ROOT on frames that we can dynamically make reflow roots - r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D9491

--HG--
extra : moz-landing-system : lando
2018-11-26 23:21:54 +00:00
Gerald Squelart
4d2369e006 Bug 1159042 - p4. Make mDirtyRoots manage roots in preferred depth order - r=dbaron
When popping a dirty root, take the shallowest one first (so we reflow from
outer frames first, to avoid potential duplicate reflow of inner frames).

Prevent duplicate roots (to be reworked in a future bug).

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

--HG--
extra : moz-landing-system : lando
2018-11-26 23:24:34 +00:00
Gerald Squelart
577dda58cf Bug 1159042 - p3. Refactor mDirtyRoots type into a class - r=dbaron
As mDirtyRoots will be accessed through a more cohesive API, this patch hides
the storage details (nsTArray) -- but provides almost the same API for now.

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

--HG--
extra : moz-landing-system : lando
2018-11-25 22:08:03 +00:00
L. David Baron
66aa3977ba Bug 1159042 - p2. Allow reflow roots to have overflow, and allow that overflow to change during reflow - r=dbaron,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D9488

--HG--
extra : moz-landing-system : lando
2018-11-25 22:07:39 +00:00
L. David Baron
3aeac55c0d Bug 1159042 - p1. Replace rootFrame variable with isRoot boolean in PresShell::DoReflow - r=dbaron,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D9487

--HG--
extra : moz-landing-system : lando
2018-11-25 22:07:21 +00:00
WR Updater Bot
7e1f8d0464 Bug 1510075 - Disable crashtests that fail with WR PR #3342. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D13024

--HG--
extra : moz-landing-system : lando
2018-11-27 01:08:50 +00:00
WR Updater Bot
ba662aa1c4 Bug 1510075 - Update webrender to commit 90fa51c71579ce434013953cee35a9bd159ab398 (WR PR #3342). r=kats
https://github.com/servo/webrender/pull/3342

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

--HG--
extra : moz-landing-system : lando
2018-11-27 01:07:37 +00:00
WR Updater Bot
f2ed1f88d1 Bug 1509635 - Re-generate FFI header. r=kats
Depends on D13021

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

--HG--
extra : moz-landing-system : lando
2018-11-27 01:00:33 +00:00
WR Updater Bot
5552affd79 Bug 1509635 - Update webrender to commit 914d16f9a2fb8d007509894660bae9c61074ae31 (WR PR #3347). r=kats
https://github.com/servo/webrender/pull/3347

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

--HG--
extra : moz-landing-system : lando
2018-11-27 01:00:26 +00:00
Kartikaya Gupta
f9dfde678c Bug 1502010 - Fix a pending TODO that has been resolved. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D12825

--HG--
extra : moz-landing-system : lando
2018-11-27 00:43:57 +00:00
Kartikaya Gupta
9f6dada03c Bug 1502010 - Tighten up the ArePointerEventsConsumable checks. r=botond
This patch tries to reduce the false-positive cases where
ArePointerEventsConsumable returns true even though the input events
won't actually result in panning. It does this by ascertaining the
direction of panning (if possible) in the current input block and
checking to see if panning can actually occur in that direction.
Previously it would just check if panning could occur without taking
into account the actual pan direction of the input events.

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

--HG--
extra : moz-landing-system : lando
2018-11-27 00:43:44 +00:00
Kartikaya Gupta
8ec8f637e1 Bug 1502010 - Extract helper methods to be more reusable. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D12823

--HG--
extra : moz-landing-system : lando
2018-11-27 00:43:32 +00:00
Masayuki Nakano
246db85d46 Bug 1509378 - Make test_input_event.html refer aEvent in checkIfInputIsEvent() rather than window.event r=smaug
This is an idiot mistake.  It refers window.event accidentally and it's still
disabled on Beta and Release channel.  Therefore, we should make it refer
aEvent instead.

On the other hand, it might be better to make our lint check whether test
refers window.event directly or not because it may check odd result
accidentally.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 15:46:43 +00:00
Daniel Holbert
43d2e1f178 Bug 1507663 part 5: Remove stray/unused markup for "basic"/"basc" class in contain-size-fieldset-002-ref.html. r=TYLin
This class wasn't applied due to a typo, and it's unnecessary anyway -- there's
a separate 'fieldset {...}' CSS rule further down in the file that has the same
effect (hiding the border and the textual contents).

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

--HG--
extra : moz-landing-system : lando
2018-11-26 22:02:22 +00:00
Daniel Holbert
861b0e54bb Bug 1507663 part 4: Add dedicated reftests to verify that "contain:layout" suppresses baseline alignment. r=TYLin
Note that we don't get this correct for form controls yet, so the -002 test is annotated as "fails" for now.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 22:00:46 +00:00
Daniel Holbert
cfb6ab418b Bug 1507663 part 3: Update titles to remove stale references to baseline alignment, in two reftests that don't test baseline alignment. r=TYLin
Depends on D12615

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

--HG--
extra : moz-landing-system : lando
2018-11-26 21:17:52 +00:00
Daniel Holbert
6c0b28dbdd Bug 1507663 part 2: Adjust reftest 'contain-size-button-001.html' to expect that contain:size *does not* suppress baseline alignment. r=TYLin
Note that Firefox doesn't actually match this expectation yet, so I've added a
'fails' annotation to the manifest with the followup bug number.

Also, this patch makes several other improvements to this test:

 - remove red background in testcase.  This was making the testcase spuriously
   fail in Chrome, because Chrome paints (at least) a 1px-tall background-area
   on empty buttons, which meant a 1px-tall red area in the testcase vs. a
   1px-tall gray area in the reference case.
 - clear floats to prevent them from piling up awkwardly.
 - use 'vertical-align:top' to turn off baseline alignment in parts of the test
   where the testcase has text and the reference case does not (and where we're
   not intentionally testing the baseline's influence on layout).

Depends on D12614

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

--HG--
extra : moz-landing-system : lando
2018-11-26 21:05:34 +00:00
Daniel Holbert
856c7058bc Bug 1507663 part 1: Uncomment/invert expectations in some reftests to now expect that contain:size *does not* interfere with baseline alignment. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D12614

--HG--
extra : moz-landing-system : lando
2018-11-26 20:01:57 +00:00
Gijs Kruitbosch
28ea3cc015 Bug 1509904 - always use backslashes on Windows, r=rwood
Differential Revision: https://phabricator.services.mozilla.com/D12935

--HG--
extra : moz-landing-system : lando
2018-11-26 21:43:37 +00:00
Edgar Chen
3c1675b8b0 Bug 1509872 - Fix the JavaScript error in 1017798-1.html that is introduced by bug 1416999; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D12941

--HG--
extra : moz-landing-system : lando
2018-11-26 21:27:06 +00:00
Daniel Holbert
2cdee51290 Bug 1509955: Preemptively fix unified bustage in layout/base. r=TYLin
Just adding:
 - a missing-but-needed forward-decl (in LayersLogging.h which is
   included by files in layout/base).
 - a 'using' decl (to provide layers::AnimationInfo).
 - a missing-but-needed #include for nsCOMPtr.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 22:07:03 +00:00
Drew Willcoxon
086071e674 Bug 1502576 - The search bar's popup should not open when clicking menu items in its context menu. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D12374

--HG--
extra : moz-landing-system : lando
2018-11-26 18:11:50 +00:00
Coroiu Cristina
a2f107533b Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-11-27 01:03:16 +02:00
Daniel Varga
2be7e87387 Backed out 7 changesets (bug 1497457) for devtools failure at devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_sidebar_usb_runtime_refresh.js on a CLOSED TREE
Backed out changeset d3b46f3a0306 (bug 1497457)
Backed out changeset bd490139b395 (bug 1497457)
Backed out changeset b2830500918c (bug 1497457)
Backed out changeset 9923755ee205 (bug 1497457)
Backed out changeset f2a39a18f2f6 (bug 1497457)
Backed out changeset 95365a2d7470 (bug 1497457)
Backed out changeset 0e93acc09952 (bug 1497457)

--HG--
extra : amend_source : cc8af90091ef2da669704e6a56a893bd5c72e136
2018-11-27 00:59:34 +02:00
Coroiu Cristina
9f7204e754 Merge inbound to mozilla-central a=merge 2018-11-27 00:34:45 +02:00
Dorel Luca
37e525df6c Backed out changeset c8e417bfccfb (bug 1509391) for build bustage. CLOSED TREE 2018-11-27 00:00:46 +02:00
Nick Alexander
7fb85f7972 Bug 1509572 - Part 6: Don't always generate annotations from Gradle. r=snorp
Before, we always ran the "generate JNI wrappers" command and had the
command be smart about updating the output.  Now we move the smarts to
the Gradle side to streamline the build.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 21:44:00 +00:00
Nick Alexander
7c4f786ab2 Bug 1509572 - Part 5: Depend on bundle, not assemble. r=snorp
This will be exploited later, when we start making the
`withGeckoBinaries` switch conditional on the tasks that Gradle is
going to execute.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 21:43:41 +00:00
Nick Alexander
989700629b Bug 1509572 - Part 4: Make geckoview:generateSDKBindings work without arguments. r=snorp
I'm not sure how this ever worked in the `android-gradle-dependencies`
task -- it must have been because of `--continue`.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 21:43:30 +00:00
Nick Alexander
a8b2dbfa07 Bug 1509572 - Part 3: Don't dump R.txt for every build. r=snorp
This has never been as useful as anticipated: we really aren't seeing
resource mismatches in the wild that need diagnostic aids.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 21:43:26 +00:00