Commit Graph

634138 Commits

Author SHA1 Message Date
Nathan Froyd
ffde3c272c Bug 1247453 - part 2 - be more stringent in checking for live pids; r=gbrown
We're seeing a lot of cases where our "check for zombie child processes"
check is finding live processes, but the minidumps that we get from such
processes are nonsense, and don't even feature Firefox symbols.

The working theory at this point, courtesy of bobowen, is that child
processes that we launch are getting closed during the test runs,
completely normally, and then we are finding other (non-Firefox) live
processes with the PIDs that were used for Firefox child processes at
the end of the test run.  This scenario is plausible due to Windows's
aggressive reuse of PIDs.  We don't see the same behavior on our Unix
test machines because Linux (and OS X, apparently) are not nearly as
aggressive in reusing PIDs.

Since we should be ensuring that any live processes are actually Firefox
processes anyway, let's add the appropriate check.  If the check works
to reduce the incidence of zombiecheck failures, that's great!  If not,
we've at least made our test runner more robust and can investigate
other possibilities for these intermittent failures.
2019-02-04 11:19:35 -05:00
Nathan Froyd
79a1262103 Bug 1247453 - part 1 - request synchronization privileges in kill_pid; r=gbrown
Windows documentation indicates that it's invalid to WaitForSingleObject
on a process handle unless you request the SYNCHRONIZE access right.
And indeed, we see errors in the logs like:

09:58:28  WARNING - mozcrash kill_pid(): wait failed (-1) terminating pid 6340: error 5

That "error 5" is an ERROR_ACCESS_DENIED code.  Such errors should go
away with requesting the proper access rights.  Credit to dmajor for
noticing the discrepancy.
2019-02-04 11:19:36 -05:00
Olli Pettay
2b3aa5d961 Bug 1524031, frame-scrolling-attr-1.html fails randomly - allow some fuzzyness, r=emilio 2019-02-04 17:24:29 +02:00
Jon Coppeard
1add144308 Bug 1522204 - Add profiler label for gray unmarking r=mstange 2019-02-04 10:55:11 +00:00
Oana Pop Rus
8e47f2392b Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-02-04 11:37:59 +02:00
Oana Pop Rus
152993fa34 Backed out changeset 12b2328eedd1 (bug 1523926) as requested by daoshengmu. a=backout 2019-02-04 11:29:45 +02:00
Petru Lingurar
03d0745a08 Bug 1498911 - Allow cycling through search results when keeping the buttons pressed; r=JanH
Summary:
For every `Enter` or `Shift+Enter` ACTION_DOWN event a new next/previous search
will be made.
Keeping the buttons pressed will cycle through all the search results endlessly.

Depends on D17133

Reviewers: JanH

Reviewed By: JanH

Bug #: 1498911

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

--HG--
extra : histedit_source : 626b863aa35e63e113be81deecadd8193f1e1c01
2019-02-04 10:00:39 +02:00
Marco Zehe
c27465e115 Bug 1461244 - Take into account row groups when creating ARIAGridRowAccessibles, r=Jamie
If all parts of a table are non-standard display types, like all elements being display:block;, we weren't properly determining table cell indices because we weren't always taking into account thead, tbody, or tfoot elements. This patch:

* Exposes non-standard tbody, tfoot and thead elements as groupings, similar to ARIA rowgroup.
* Adjusts the one instance in nsAccessibilityService::CreateAccessible that didn't account for the table not being the direct parent of the row node, but the grandparent instead.

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

--HG--
extra : moz-landing-system : lando
2019-02-04 06:17:33 +00:00
Narcis Beleuzu
ea68bce62d Backed out changeset 4d5cbdd05859 (bug 1524266) for clipboard failures on test_browserElement_oop_CopyPaste.html
--HG--
extra : rebase_source : 04a0c7ba826ade9ed71752c7e388236fb3214666
2019-02-04 04:06:37 +02:00
Brindusan Cristian
0e637b692d Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-02-03 23:45:10 +02:00
Brindusan Cristian
2bcbb26667 Merge inbound to mozilla-central. a=merge 2019-02-03 23:41:43 +02:00
Cosmin Sabou
ecc4cd8db6 Backed out changeset a1f9a3e18986 (bug 384278) for browser chrome failures on browser_sizemodeBeforeMinimized.js. 2019-02-03 17:08:18 +02:00
Orangelynx
89d8b29e3f Bug 384278 - Added additional state variable to store window state before window minimization. r=mikedeboer
Current window state in the sessionstore system includes `sizeMode` which can be "normal", "minimized", "maximized". However, the OS also remembers whether the window was "normal" or "maximized" before minimization to restore it appropriately. With this fix, sessionstore does likewise.

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

--HG--
extra : moz-landing-system : lando
2019-02-03 14:29:29 +00:00
Dorel Luca
bf5233e0a2 Bug 1522069 - Disable browser_canvas_fingerprinting_resistance.js for frequent failures. r=jmaher 2019-02-03 13:28:46 +02:00
arthur.iakab
60c4067b1c Merge inbound to mozilla-central a=merge 2019-02-03 11:51:35 +02:00
Daosheng Mu
f44b229914 Bug 1523926 - Fix open VR shmem mutex failed issue when without VR process. r=kip
MozReview-Commit-ID: 5P7D75wAWI7

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

--HG--
extra : moz-landing-system : lando
2019-02-03 07:19:58 +00:00
Robert Strong
5710e8d965 Backed out changeset 2fc5715105a2 due to bug 1524496. r=me 2019-02-02 23:01:23 -08:00
Emilio Cobos Álvarez
3d4396cce6 Bug 1524822 - Fix warnings with rust 1.34+. r=jrmuizel
There's some new limited const fn support in stable, and this is the recommended
way to initialize atomics now.

If this for some reason doesn't compile in all platforms / versions we support
I'll just sprinkle some #[allow(deprecated)] instead.

Also, cargo changes the output of Cargo.lock, see
https://github.com/rust-lang/cargo/issues/6180. So also update those comments.

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

--HG--
extra : moz-landing-system : lando
2019-02-03 03:20:52 +00:00
Olli Pettay
5543345a37 Bug 1524806 - Start RefreshDriver timer very early, r=emilio
--HG--
extra : rebase_source : 4d15f88f2e2a530c7e8aee4bbae3855755d7bbdf
2019-02-03 04:11:55 +02:00
Emilio Cobos Álvarez
4ac08cd28e Bug 1524328 - Pass a document instead of a pres context to FinishStyle. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D18491
2019-02-03 03:00:27 +01:00
Emilio Cobos Álvarez
a80ffc72ff Bug 1524328 - Don't resolve counter styles in the style system. r=xidorn
Doing it during layout instead. This also has the nice side-effect of
no longer needing to do a full restyle when counter-style rules are inserted.

Differential Revision: https://phabricator.services.mozilla.com/D18343
2019-02-03 03:00:12 +01:00
Ciure Andrei
9c86f4019d Backed out 2 changesets (bug 1471496) for causing CycleCollectedJSRuntime.cpp perma failures CLOSED TREE
Backed out changeset 9658187a54fb (bug 1471496)
Backed out changeset 2ff333373fe4 (bug 1471496)
2019-02-02 20:44:08 +02:00
Masayuki Nakano
1ff659133d Bug 1466208 - part 10: Create PresShell::EventHandler::MaybeDiscardEvent() to check whether it's safe to handle the event r=smaug
It may not be safe to handle events even when
PresShell::EventHandler::HandleEvent().  In such case, we need to discard
received events with notifying somebody.  This patch move this rare case
jobs into the new method, MaybeDiscardEvent().  Then, the caller, HandleEvnet(),
becomes easier to read.

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

--HG--
extra : moz-landing-system : lando
2019-02-02 02:20:28 +00:00
Jan de Mooij
d9d405b919 Bug 1522837 part 4 - Implement JSOP_CALLSITEOBJ in BaselineInterpreterCodeGen. r=tcampbell
This is just a VM call in the interpreter. We could optimize this with an IC or
inline path if it ever becomes a problem.

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

--HG--
extra : moz-landing-system : lando
2019-02-03 10:08:41 +00:00
Jan de Mooij
1f750cdfb7 Bug 1522837 part 3 - Refactor JSOP_OBJECT in BaselineCodeGen. r=tcampbell
This adds js::SingletonObjectLiteralOperation and calls it from both the
interpreter and Baseline. The Baseline compiler still has a fast path for the
cloning-not-necessary case.

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

--HG--
extra : moz-landing-system : lando
2019-02-03 10:07:31 +00:00
Jan de Mooij
ae765c9ac3 Bug 1522837 part 2 - Implement subtractScriptSlotsSize, loadGlobalLexicalEnvironment, loadGlobalThisValue, pushScriptArg. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D17645

--HG--
extra : moz-landing-system : lando
2019-02-03 10:07:01 +00:00
Jan de Mooij
aa34bcb168 Bug 1522837 part 1 - Implement loadScript, emitInitializeLocals, storeFrameSizeAndPushDescriptor for BaselineInterpreterHandler. r=djvj
This also removes computeFullFrameSize because we don't really need it.

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

--HG--
extra : moz-landing-system : lando
2019-02-03 10:06:39 +00:00
Masayuki Nakano
1cd52b1c57 Bug 1466208 - part 9: Create PresShell::EventHandler::MaybeHandleEventWithAnotherPresShell() to handle event with another PresShell if necessary r=smaug
Let's move the redirection of coming event in
PresShell::EventHandler::HandleEvent() into a method.  This makes the caller
easier to read.

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

--HG--
extra : moz-landing-system : lando
2019-02-02 02:20:25 +00:00
Justin Wood
bf9836a1bb Bug 1524444 - Respect -n for linting in py3/py2 and better support it in other linters. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D6847

--HG--
extra : moz-landing-system : lando
2019-02-01 20:39:05 +00:00
Emilio Cobos Álvarez
03963da9ad Bug 1524266 - Should be able to delete non-selectable and non-editable content in a contenteditable subtree. r=mats
This makes our behavior a bit closer to Blink / WebKit.

This patch fixes multiple issues:

First, fixes the caret movement getting stuck on a <select> element inside an
editor. This is because of the IsRootOfAnonymousSubtree() check that I'm
removing. Instead of that, consider NAC unselectable in UsedUserSelect, just
like generated content. This makes us jump across it correctly, and doesn't
regress the test-case that was added in bug 989012.

Second, it allows to select nodes with user-select: none as long as you're on an
editor. This matches WebKit and Blink. It's something you could do earlier
regardless with user-select: all on the parent, which is why the reporter's
test-case worked before my patch. I think being able to jump across these and
delete them on an editor is the right thing to do.

It adds tests for all this plus the same thing working for non-editable contents
(there was no pre-existing test for that).

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

--HG--
extra : moz-landing-system : lando
2019-02-03 23:13:09 +00:00
Brindusan Cristian
6e9ccdbdf3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-03 23:44:11 +02:00
Brian
8bc1981dda Convert resetProfile.dtd to Fluent (Bug 1517307) r=jaws,flod
Convert resetProfile.dtd to resetProfile.ftl. Modify dependencies for resetProfile.xul, safeMode.xul, aboutSupport.xhtml.

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

--HG--
extra : moz-landing-system : lando
2019-02-03 21:33:23 +00:00
Johann Hofmann
11cf62cfa4 Bug 377496 - Add a test for rate limiting the authentication prompt. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D18229

--HG--
extra : moz-landing-system : lando
2019-02-03 19:42:22 +00:00
Johann Hofmann
d59d079e47 Bug 377496 - Improve auth dialog blocking heuristics. r=MattN
The fix in bug 1312243 introduced a maximum of three consecutive cancelations (controlled by a pref) that a user could perform until Firefox would prevent the page from showing more dialogs.

This, in my opinion, is a great idea. The implementation, however, has a major fallacy: It checks the inner window id in the well-meaning attempt to find user navigation or reloads and clears its internal counter when that window id changes. Unfortunately this also clears the counter on non-user-initiated navigations and reloads. I believe that the true intention of the patch was to cancel the auth dialog after 3 attempts, except if:

- The user reloads the page on their own terms
- The user navigates to a different site on their own

Which is what I plan to implement, using the same pattern we applied to implement temporarily blocked site permissions:

- Temporarily store basic auth counter state on the browser object, as a map from baseDomain (eTLD+1) to number of cancellations
- Reset this state only on user initiated reload
- Reset the counter for a domain if the user has entered login data into the dialog and submitted

This would mitigate the DOS issue while hopefully not breaking any sites that rely on basic auth.

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

--HG--
extra : moz-landing-system : lando
2019-02-03 19:42:19 +00:00
Masayuki Nakano
37b8ffe4a8 Bug 1521690 - Use Unused << instead of (void*) in nsWindow.cpp r=aklotz,jmathies
Casting non-void result to `void*` causes warning of clang.  Additionally,
perhaps, we should use `Unused <<` because of modern style.

And also this patch makes widget/windows is treated as "warning as errors"
because this patch fixes the last warning.

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

--HG--
extra : moz-landing-system : lando
2019-02-01 20:15:04 +00:00
Botond Ballo
0ac724fa85 Bug 1459312 - Scroll layers that are fixed w.r.t. the RCD-RSF by the relative visual transform. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D17726

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:54 +00:00
Botond Ballo
408de98e10 Bug 1459312 - Have APZC expose the async transform of the visual viewport relative to the layout viewport. r=kats
For brevity, this is referred to as the "relative visual offset/transform"
in the code.

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

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:45 +00:00
Botond Ballo
67d86b81e7 Bug 1459312 - Expose IsAsyncZoomContainer() in LayerMetricsWrapper. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D17724

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:41 +00:00
Botond Ballo
6eceedb77d Bug 1459312 - Factor out a helper function from AlignFixedAndStickyLayers. r=kats
This helper will be reused for translating layers fixed to the RCD-RSF
with containerless scrolling.

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

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:31 +00:00
Botond Ballo
28e8903b9e Bug 1459312 - Have AlignFixedAndStickyLayers take the ClipPartsCache by reference rather than pointer. r=kats
This reflects the fact that it's no longer optional (the code path that
wouldn't pass one was removed with JPZC).

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

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:27 +00:00
Botond Ballo
7a0f6a05ca Bug 1459312 - Remove an outdated comment in TransformShadowTree(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D17720

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:23 +00:00
Botond Ballo
802ea1a4e8 Bug 1459312 - Make AsyncPanZoomController::GetCurrentAsyncViewportTransform() private. r=kats
It is an implementation detail of GetCurrentAsyncTransformForFixedAdjustment().

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

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:19 +00:00
Botond Ballo
6afc24b5fc Bug 1459312 - AsyncCompositionManager changes to apply the async zoom to the async zoom container layer if appropriate. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D13348

--HG--
extra : moz-landing-system : lando
2019-02-02 23:53:15 +00:00
Botond Ballo
3a60de260b Bug 1459312 - AsyncPanZoomController support for exposing the scroll and zoom portions of the async transform independently. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D17718

--HG--
extra : moz-landing-system : lando
2019-02-02 23:52:14 +00:00
Ricky Rosario
9f5268b75e Bug 1521629 - Port search() to UrlbarInput.jsm r=dao
MozReview-Commit-ID: 70RV8IdoAKc

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

--HG--
extra : moz-landing-system : lando
2019-02-02 16:33:57 +00:00
Andrei H
31f30275b3 Bug 1428708 - [mozdevice] Add support for Python 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D17933

--HG--
extra : moz-landing-system : lando
2019-02-02 20:39:14 +00:00
Kartikaya Gupta
5778faf7aa Bug 1520715 - Allow a bit of fuzz on color-layer-1a. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D18487

--HG--
extra : moz-landing-system : lando
2019-02-02 15:56:54 +00:00
Kartikaya Gupta
ff2548e7d2 Bug 1520793 - Allow a bit of fuzz in clip-path-circle-021. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D18486

--HG--
extra : moz-landing-system : lando
2019-02-02 15:56:45 +00:00
Jon Coppeard
6ab95aed88 Bug 1520783 - Check whether the path passed to createMappedArrayBuffer() is a regular file. r=sfink
--HG--
extra : histedit_source : 80f8a356833d5dd92e4084da17e9565750301fde
2019-02-01 02:07:00 +02:00
Jeff Muizelaar
8b79b7ce3e Bug 1524177. Accept a small amount of fuzz for clip-path-inset. r=dholbert
It seems like we intermittently get fuzz on the clip-path-inset tests.
It's better for us to accept that fuzz than intermittently fail.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 23:40:13 +00:00