Commit Graph

609839 Commits

Author SHA1 Message Date
Brian Birtles
ce2e73ce15 Bug 1467344 - Update tests in test_animation-currenttime.html; r=hiro
This patch basically completely rewrites this file to make it simpler and remove
unnecessary tests.

In particular:

* It sets the duration and delay to 100s to match what we use in most tests
* All the helper methods at the start are inlined into the relevant tests
  because doing so makes the tests much easier to read and debug.
* The first two tests are combined and extended
  - Testing the initial current time is zero is not generally useful but it is
    when we're testing setting it
  - What the second test really wants to test is that the style updates (i.e.
    you really can seek a transition, not just that the currentTime value
    updates)
  - The trick where we set the start time just to get out of the pending state
    seems unnecessary, we may as well just wait on ready. In fact, we don't
    _need_ to do that, but this test is about checking you can seek a transition
    in motion.
* In the fourth test, 'Skipping backwards through transition', we don't check
  the event is dispatched since that is covered in test_event-dispatch.html
  in the 'Active -> Before' test.
* The final test, 'Animation.currentTime after pausing', is covered by
  web-animations/timing-model/animations/pausing-an-animation.html

--HG--
extra : rebase_source : 113af8f3e4b4f2ffe90cb9bb87be3c2e72a82289
2018-08-16 14:41:03 +09:00
Brian Birtles
01f72be8ec Bug 1467344 - Fix some minor formatting in test_animation-computed-timing.html; r=hiro
--HG--
extra : rebase_source : bc27d838e5e1f905852fe847681954e02c2c0624
2018-08-16 14:41:02 +09:00
Brian Birtles
7aa56d6148 Bug 1467344 - Drop some unnecessary <body> elements from test files; r=hiro
We're a bit inconsistent about this, but generally we try to keep this files as
minimal as possible.

There is still a lot of other cruft in the starttime and currenttime test files
but we will remove that when we tidy up those files in later patches in this
series.

--HG--
extra : rebase_source : 93ef290315b4650650de960551ff07572ff7656e
2018-08-16 14:41:02 +09:00
Brian Birtles
e251f1ce8d Bug 1467344 - Update the titles of each test file; r=hiro
--HG--
extra : rebase_source : 4df35b9464ebd90b05303fb908df92c4ad43e024
2018-08-16 14:41:02 +09:00
Brian Birtles
7817c2fe89 Bug 1467344 - Fix the spelling of canceled/canceling in dom/animation/test/css-transitions/; r=hiro
--HG--
extra : rebase_source : 486ed16cf22a6104ec15be455258eab2f902865b
2018-08-16 14:41:02 +09:00
Brian Birtles
e53dbb4a04 Bug 1467344 - Replace var with const/let in dom/animation/test/css-transitions/; r=hiro
--HG--
extra : rebase_source : d98025fe06bff9c486082cf323b99417ae42e6a7
2018-08-16 14:41:02 +09:00
Brian Birtles
32f3f5b4fe Bug 1467344 - Use async/await in dom/animation/test/css-transitions/; r=hiro
As part of this change, the "Restart transition after cancelling transition
immediately" test in test_event-dispatch.html needed significant changes.
The reason is that this test was calling:

  watcher.wait_for([ 'transitioncancel',
                     'transitionrun',
                     'transitionstart' ]);

However, it was not waiting for the result of that call and hence was not
actually checking if the events were being dispatched. And, they are not.

There are two problems. Firstly, this test cancels the transition by setting
display:none. However, transitions don't run on display:none elements so
attempting to restart the transition will not generate transition events.
This might be a bug, but it is not a recent regression in any case (I tested
back to Firefox 54).

However, this test does not require using display:none to cancel. There are
_many_ tests that check that display:none generates a transitioncancel event.
This test only needs to make the transition idle. As a result, this patch makes
that test call transition.cancel() instead.

However, even with that change this test will not pass because it sets
a transition-delay of 100s (presumably so that it does not need to check for
a transitionstart event). As a result this test should not wait on _both_
transitionrun and transitionstart but just transitionrun.

--HG--
extra : rebase_source : a0af0928fd5668b23c92bd8ca142d4b8e99f5429
2018-08-16 14:41:02 +09:00
Brian Birtles
58054bc030 Bug 1467344 - Use arrow functions in dom/animation/test/css-transitions/; r=hiro
This patch also drops the checkStateOnSettingCurrentTimeToZero function since it
is no longer used.

--HG--
extra : rebase_source : bd4fdb9368d55b120c839330dbd90a0a89464370
2018-08-16 14:41:01 +09:00
Daniel Holbert
1856a6c679 Bug 1397768 part 2: Adjust reftests for clarity & to reliably pass on all platforms. (test-only)
--HG--
extra : rebase_source : 4ab449fee6697decb8e403a313be3c7b9a126327
2018-08-17 23:45:39 -07:00
Mihir Iyer
ce5bd50ad2 Bug 1397768 part 1: Make 'display: flex/grid' in a button take up all the available space. r=dholbert
--HG--
extra : rebase_source : 15b1dc83b9b8b76a839be4455dc42b7a6be8f841
2018-08-17 07:36:50 -07:00
Liang-Heng Chen
39358a724e Bug 1481252 - Part 2: Report Tracking Protection status to docshell; r=valentin,francois
Differential Revision: https://phabricator.services.mozilla.com/D3025

--HG--
extra : moz-landing-system : lando
2018-08-13 10:23:57 +00:00
Liang-Heng Chen
6c9d7c21d6 Bug 1481252 - Part 1: Report FastBlock status to docshell; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D3024

--HG--
extra : moz-landing-system : lando
2018-08-16 15:29:22 +00:00
Liang-Heng Chen
411a3a427b Bug 1481252 - Part 0: add tracker statistics fields to document; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3023

--HG--
extra : moz-landing-system : lando
2018-08-17 17:04:44 +00:00
Edouard Oger
e3e242dce3 Bug 1484090 - Flag the device for re-registration on push subscription not found r=lina
Differential Revision: https://phabricator.services.mozilla.com/D3567

--HG--
extra : moz-landing-system : lando
2018-08-17 15:09:48 +00:00
Brian Grinstead
8e29f09232 Bug 1478999 - Don't check for -moz-binding on dropmarker to avoid getting computed style in GetBindingURL;r=emilio
This is slow to do when the element isn't visible, and we know it
won't have a XBL binding anyway, since it's a Custom Element.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 16:41:59 +00:00
Emilio Cobos Álvarez
aabc4bed97 Bug 1483882 - Teach IDTracker about Shadow DOM. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3533
2018-08-17 19:14:47 +02:00
Brian Grinstead
4995c61b0f Bug 1482667 - Migrate mochitest-browser tests in browser/ to use element variations of firstChild, etc;r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3530

--HG--
extra : moz-landing-system : lando
2018-08-17 16:45:52 +00:00
Gabriele Svelto
b48b3e4db0 Bug 1473821 - The MOZ_PGO_INSTRUMENTED environment variable is not used anymore so remove all remaining mentions of it r=gps
Differential Revision: https://phabricator.services.mozilla.com/D3219

--HG--
extra : moz-landing-system : lando
2018-08-17 16:40:10 +00:00
John Lin
a47eb60caa Bug 1481139 - fix GMP process IPC channel error on Android. r=jld,njn
Bug 1481139 - p1: handle invalid file descriptors.
Bug 1481139 - p2: add dummy fds for GMP process.

Two file descriptors were added in bug 1438678 and 1471025 for content/child
process but not GMP process, and it breaks the IPC channel on Android.

Add dummy values to make it work for now before bug 1440207 clean up the mess.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 00:06:20 +00:00
arthur.iakab
ba75ab7e22 Backed out changeset bb09f2ec0d28 (bug 785922)for causing Android build bustages on profiler/core/platform.cpp CLOSED TREE 2018-08-17 18:22:13 +03:00
Noemi Erli
5788eb8190 Backed out 2 changesets (bug 1483882) for reftest failures in uilds/worker/workspace/build/tests/reftest/tests/layout/reftests/svg/fragid-shadow-3.html
Backed out changeset 4656d3bf8e9c (bug 1483882)
Backed out changeset 4105f56578d4 (bug 1483882)
2018-08-17 18:13:14 +03:00
Calixte Denizet
86611a3a40 Bug 1471543 - Increase timeout and chunks for some test suites on macosx64 coverage builds. r=jmaher
This makes chunks and timeouts on the MacOSX64 coverage build closer to what we have defined for the Windows build.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 13:38:39 +00:00
Liang-Heng Chen
a0692d51f7 Bug 1482117 - Part 2: cache the result of IsThirdPartyChannel; r=mayhemer
cache the result to speed up

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

--HG--
extra : moz-landing-system : lando
2018-08-17 12:43:51 +00:00
Liang-Heng Chen
837bec1102 Bug 1482117 - Part 1: Make FastBlock happen after tailing; r=mayhemer
move the FastBlock checking block to |TriggerNetwork|

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

--HG--
extra : moz-landing-system : lando
2018-08-15 16:32:34 +00:00
Denis Palmeiro
e60252016a bug 785922: Emit column numbers for JS frames and functions in the gecko profiler r=sfink,mstange
Add support for column numbers when profiling JS stack frames and functions.  This will help debug minified scripts when inspecting performance profiles.  The column information will be emitted as a new column property that is part of the frameTable in the profile output, and will also be appended in the descriptive profiler string.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 17:56:52 +00:00
Masayuki Nakano
b7d5928ee6 Bug 1484092 - part 3: IsLinkTag() and IsNamedAnchorTag() should compare with nsGkAtoms r=m_kato
The methods compared with const characters since we've supported "namedanchor"
which is not in nsGkAtoms.  Now, it's dropped so that we can compare given
atom with nsGkAtoms.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 14:51:40 +00:00
Masayuki Nakano
65bb9451c3 Bug 1484092 - part 2: Drop supporting "namedanchor" special element name from nsIHTMLEditor::GetSelectedElement(), nsIHTMLEditor::GetElementOrParentByTagName() and nsIHTMLEditor::CreateElementWithDefaults() r=m_kato
Nobody (including comm-central and BlueGriffon) does not use "namedanchor"
special element name with those XPCOMs.  Of course, our internal callers too.
Therefore, we can drop.

Note that there is no static Atom for this, so, keeping it makes unnecessary
runtime cost for Firefox users.

This could cause breaking some legacy add-ons for Thunderbird.  However,
they can use "anchor" special element name for same purpose.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 14:50:56 +00:00
Johann Hofmann
86d77ab761 Bug 1478637 - Avoid sync style flushes when cancelling the shield animation in the identity block. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D3449

--HG--
extra : moz-landing-system : lando
2018-08-17 07:48:06 +00:00
Greg Mierzwinski
1a93f7f34a Bug 1473392 - Fix failure conditions for all mochitest tests. r=jmaher
This patch changes the failure condition of all mochitest tests to take the number of failures (given by self.countfail). It also adds a condition to check if there are passing and todo counts, and if there are not, the test chunk fails. With this change, mochitest test chunks will fail if the failure count is not 0, or all the counts (pass, todo, and fail) are 0. This fixes a case where the TODO tests were considered as failures when no passing tests were run along side them.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 14:09:42 +00:00
Masayuki Nakano
b212948c3b Bug 1484092 - part 1: Make HTMLEditor::GetElementOrParentByTagName() use nsAtom for the tag name r=m_kato
HTMLElementOrParentByTagName() is the last user of IsLinkTag(const nsAString&)
and IsNamedAnchorTag(const nsAString&).  For making their maintenance easier,
let's make GetElementOrParentByTagName() take const nsAtom& for tag name.

GetElementOrParentByTagName() has two functions, one is looking for an element
starting from a node.  The other is, if the start node is nullptr, it retrieves
anchor node of Selection as start node.  Therefore, this patch splits the
first part to GetElementOrParentByTagNameInternal().  Then, creates its
wrapper which retrieves anchor of Selection automatically,
GetElementOrParentByTagNameAtSelection().

Additionally, this patch makes all internal callers of HTMLEditor use
GetElementOrParentByTagNameInternal() or
GetElementOrParentByTagNameAtSelection() directly.  Then, public method,
GetElementOrParentByTagName() is called only by outer classes.

Note that some callers use both GetElementOrParentByTagNameInternal()
and GetElementOrParentByTagNameAtSelection() since they don't check whether
setting node is nullptr.  They may be bug of them.  We should investigate
the API callers later.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 14:06:18 +00:00
Emilio Cobos Álvarez
07b550f35b Bug 1483882: followup: Adjust a QR test expectation for now. r=me CLOSED TREE 2018-08-17 15:15:34 +02:00
Xidorn Quan
f2d834dde8 Bug 1484146 - Use AspectRatio directly for RangeOrOperator::evaluate. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D3587

--HG--
extra : moz-landing-system : lando
2018-08-17 12:46:02 +00:00
Margareta Eliza Balazs
def24933ef Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-17 15:07:45 +03:00
Margareta Eliza Balazs
ef8b3886cb Backed out changeset 93877b72e677 (bug 1473392) for causing mch perma failures in testing/mochitest/tests/python/test_basic_mochitest_plain.py a=backout 2018-08-17 14:59:59 +03:00
Emilio Cobos Álvarez
9d77ba352b Bug 1483882 - Teach IDTracker about Shadow DOM. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3533

--HG--
extra : moz-landing-system : lando
2018-08-17 11:35:15 +00:00
Margareta Eliza Balazs
6c198262de Merge inbound to mozilla-central. a=merge 2018-08-17 12:46:14 +03:00
Margareta Eliza Balazs
0d855aa7f1 Backed out changeset 033428417ae7 (bug 1483979) for bc failures in browser/components/customizableui/test/browser_remote_tabs_button.js 2018-08-17 10:41:30 +03:00
Noemi Erli
af13fc5613 Backed out 2 changesets (bug 1483380) for frequent cgx and arm64 failures
Backed out changeset 3e060afdccb2 (bug 1483380)
Backed out changeset 6d48a7757fda (bug 1483380)
2018-08-17 10:01:38 +03:00
Hiroyuki Ikezoe
1e0504013e Bug 1420020 - Disable all properties-value-inherit-xxx.html on ASAN builds. r=birtles
All tests have been disabled on debug builds since 73ff8c6e0837 [1].  We should
also disable them on ASAN builds for now.

This will stop intermittent failures on properties-value-inherit-001.html
(bug 1420020), and on properties-value-inherit-002.html (bug 1429404 and
bug 1444280).  There is no intermitent failures bugs for
properties-value-inherit-003.html though.

There is no other high volume intermittent failure at this moment.

[1] https://hg.mozilla.org/mozilla-central/rev/73ff8c6e0837

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

--HG--
extra : moz-landing-system : lando
2018-08-17 06:32:42 +00:00
Edouard Oger
0023148b4d Bug 1483979 - Enable fxa commands r=markh
Differential Revision: https://phabricator.services.mozilla.com/D3569

--HG--
extra : moz-landing-system : lando
2018-08-17 05:50:51 +00:00
Razvan Caliman
aece8388d6 Bug 1483575 - Update font editor in response to font property value changes outside the selected rule. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D3502

--HG--
extra : moz-landing-system : lando
2018-08-16 14:26:48 +00:00
Razvan Caliman
e7c6b51c44 Bug 1483575 - (Part 4) Ensure computed value for line-height is converted to unitless. r=gl
Depends on D3500

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

--HG--
extra : moz-landing-system : lando
2018-08-16 14:50:13 +00:00
Razvan Caliman
64aad28a77 Bug 1483575 - (Part 3) Update unit conversion to handle unitless values. r=gl
Add special handling for line-height property.

Depends on D3498

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

--HG--
extra : moz-landing-system : lando
2018-08-16 14:49:36 +00:00
Razvan Caliman
4bc089e80f Bug 1483575 - (Part 2) Add LineHeight component to font editor. r=gl
MozReview-Commit-ID: JiMBI3QMKML

Depends on D3498

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

--HG--
extra : moz-landing-system : lando
2018-08-16 14:48:51 +00:00
Razvan Caliman
bedc156add Bug 1483575 - (Part 1) Externalize units from FontPropertyValue component. r=gl
MozReview-Commit-ID: 65ObfBLlRR9

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

--HG--
extra : moz-landing-system : lando
2018-08-17 10:59:21 +00:00
Noemi Erli
79400be144 Backed out 2 changesets (bug 1484092) for build bustages in builds/worker/workspace/build/src/editor/libeditor/HTMLEditor.cpp💯53 on a CLOSED TREE
Backed out changeset 10fdd041f1b5 (bug 1484092)
Backed out changeset d0b14e8711df (bug 1484092)
2018-08-17 13:39:44 +03:00
Noemi Erli
c6f79a6d0e Backed out 1 changesets (bug 1483882) for reftest failures in builds/worker/workspace/build/tests/reftest/tests/layout/reftests/svg/fragid-shadow-3.html on a CLOSED TREE
Backed out changeset d25d4da4aad2 (bug 1483882)
2018-08-17 13:37:55 +03:00
Masayuki Nakano
16a97643c7 Bug 1484092 - part 2: Drop supporting "namedanchor" special element name from nsIHTMLEditor::GetSelectedElement(), nsIHTMLEditor::GetElementOrParentByTagName() and nsIHTMLEditor::CreateElementWithDefaults() r=m_kato
Nobody (including comm-central and BlueGriffon) does not use "namedanchor"
special element name with those XPCOMs.  Of course, our internal callers too.
Therefore, we can drop.

Note that there is no static Atom for this, so, keeping it makes unnecessary
runtime cost for Firefox users.

This could cause breaking some legacy add-ons for Thunderbird.  However,
they can use "anchor" special element name for same purpose.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 07:41:55 +00:00
Masayuki Nakano
a8b7670d10 Bug 1484092 - part 1: Make HTMLEditor::GetElementOrParentByTagName() use nsAtom for the tag name r=m_kato
HTMLElementOrParentByTagName() is the last user of IsLinkTag(const nsAString&)
and IsNamedAnchorTag(const nsAString&).  For making their maintenance easier,
let's make GetElementOrParentByTagName() take const nsAtom& for tag name.

GetElementOrParentByTagName() has two functions, one is looking for an element
starting from a node.  The other is, if the start node is nullptr, it retrieves
anchor node of Selection as start node.  Therefore, this patch splits the
first part to GetElementOrParentByTagNameInternal().  Then, creates its
wrapper which retrieves anchor of Selection automatically,
GetElementOrParentByTagNameAtSelection().

Additionally, this patch makes all internal callers of HTMLEditor use
GetElementOrParentByTagNameInternal() or
GetElementOrParentByTagNameAtSelection() directly.  Then, public method,
GetElementOrParentByTagName() is called only by outer classes.

Note that some callers use both GetElementOrParentByTagNameInternal()
and GetElementOrParentByTagNameAtSelection() since they don't check whether
setting node is nullptr.  They may be bug of them.  We should investigate
the API callers later.

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

--HG--
extra : moz-landing-system : lando
2018-08-17 10:04:42 +00:00
Sebastian Hengst
e89e01ef69 Bug 1483708 - Set dom.webnotifications.requireinteraction.enabled to true for notifications/idlharness.https.any.js. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D3484

--HG--
extra : moz-landing-system : lando
2018-08-17 09:56:07 +00:00