Граф коммитов

49794 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 7c0e97bbeb Bug 1493108 - [wdspec] Improve tests for browsing context checks. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D88953
2020-09-15 18:36:43 +00:00
Henrik Skupin b6da979dcf Bug 1493108 - [marionette] Use browsing context to return current (chrome) window handle. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D88952
2020-09-15 18:33:57 +00:00
Henrik Skupin 80384909ce Bug 1493108 - [marionette] Each command has to check the appropriate BrowsingContext for existence. r=marionette-reviewers,maja_zf,jdescottes
Given by the WebDriver specification each command has to check if
the appropriate browsing context it operates in is still open. If
it's not the case a "no such window" error will be thrown.

Until now the code only checked the top-level browsing context for
each of the supported commands. That means if the current browsing
context was not open anymore a command running in a specific frame
of the website has thrown unknown or type errors.

That change makes our implementation WebDriver compliant.

Differential Revision: https://phabricator.services.mozilla.com/D88951
2020-09-15 18:33:45 +00:00
Tim Huang 008cbcb3db Bug 444222 - Modify tests and add a manual test for restoring window.name. r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D90078
2020-09-15 17:51:20 +00:00
Tim Huang 28f24eaa20 Bug 444222 - Reset window.name when the new document is cross-origin - More tests. r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D88417
2020-09-15 17:51:12 +00:00
Andrea Marchesini e733096393 Bug 444222 - Update the window.name when doing the navigation, r=smaug,nika
This patch implements the window.name updating in the spec
https://html.spec.whatwg.org/#history-traversal.

Differential Revision: https://phabricator.services.mozilla.com/D81361
2020-09-15 17:51:05 +00:00
Andrea Marchesini fa63b9f888 Bug 444222 - Reset window.name when the new document is cross-origin - tests, r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D81335
2020-09-14 09:07:39 +00:00
Luca Greco a67ba2fcd8 Bug 1663125 - Fix registered service workers missing after restart and cover it with a marionette test. r=asuth,whimboo,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90189
2020-09-15 14:54:12 +00:00
Valentin Gosu 7de4c8009c Bug 1525854 - TRR shouldn't fallback to DNS on DNSSEC error r=necko-reviewers,dragana
This patch adds support for the Extended DNS Errors draft code.
https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-extended-error-16

While not yet in the draft, it seems the OPT code for Extended DNS Error is 15
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-11

The list of errors for which we hard fail isn't necessarily final.
I picked the errors that indicate a DNSSec failure, or an intentional
filtering done by the resolver.

Differential Revision: https://phabricator.services.mozilla.com/D87698
2020-09-15 10:39:07 +00:00
Paul Adenot 29b9613021 Bug 1520788 - Reenable mediacapture-streams/MediaStreamTrack-getCapabilities.https.html on Linux. r=pehrsons
r?jgraham,jib,pehrsons

Differential Revision: https://phabricator.services.mozilla.com/D90121
2020-09-15 08:54:20 +00:00
Masayuki Nakano 620c728792 Bug 1658702 - part 10: Implement a path to compute target ranges when joining 2 blocks from current block boundary r=m_kato
This patch corresponds to:
* https://searchfox.org/mozilla-central/rev/2b250967a66886398e5e798371484fd018d88a22/editor/libeditor/HTMLEditSubActionHandler.cpp#3525-3543
* https://searchfox.org/mozilla-central/rev/2b250967a66886398e5e798371484fd018d88a22/editor/libeditor/HTMLEditSubActionHandler.cpp#2710-2719
* https://searchfox.org/mozilla-central/rev/2b250967a66886398e5e798371484fd018d88a22/editor/libeditor/HTMLEditSubActionHandler.cpp#4140-4165
* https://searchfox.org/mozilla-central/rev/2b250967a66886398e5e798371484fd018d88a22/editor/libeditor/HTMLEditSubActionHandler.cpp#5650-5716
* https://searchfox.org/mozilla-central/rev/2b250967a66886398e5e798371484fd018d88a22/editor/libeditor/WSRunObject.cpp#97-213
* https://searchfox.org/mozilla-central/rev/2b250967a66886398e5e798371484fd018d88a22/editor/libeditor/WSRunObject.cpp#218-386
* https://searchfox.org/mozilla-central/rev/2b250967a66886398e5e798371484fd018d88a22/editor/libeditor/WSRunObject.cpp#391-480

In `WSRunObject.cpp`, joining 2 blocks code is split to 3 methods, they are
for:

1. left block element is an ancestor of right block element
2. right block element is an ancestor of left block element
3. left block element and right block element are siblings

The reason why they are split to is, they need to move descendants of child
block element or right block element with different logic.  However, this
difference is not a big problem when we compute target ranges because only
the difference is where we need to check whether there are invisible white-
spaces.  Therefore, this patch creates only a utility method in `WSRunScanner`
and makes `AutoInclusiveAncestorBlockElementsJoiner::ComputeRangesToDelete()`
much simpler than `AutoInclusiveAncestorBlockElementsJoiner::Run()`.

Differential Revision: https://phabricator.services.mozilla.com/D89278
2020-09-11 06:24:08 +00:00
Henrik Skupin ab599395c1 Bug 1612831 - [wpt] Update expected data for formerly erroring tests. r=jgraham,maja_zf,annevk
Formerly some tests were not running at all because the wptrunner
triggered an error when loading the test page. With the changes
to the navigation in Marionette this error is no longer present,
and as such allows the tests to actually run even when they still
fail or timeout.

Differential Revision: https://phabricator.services.mozilla.com/D89921
2020-09-15 04:53:59 +00:00
Henrik Skupin fbcb446781 Bug 1612831 - [marionette] Remove no longer used handling of pending commands. r=marionette-reviewers,maja_zf
Now that all the navigation related code runs in the parent process
there is no need anymore for handling pending commands. This was
only necessary for navigation commands which could have caused
remoteness changes and as such new instances of the framescript.
In these cases the reply cannot be sent to the client unless the
command has been finished.

Differential Revision: https://phabricator.services.mozilla.com/D89717
2020-09-15 04:53:44 +00:00
Henrik Skupin 2866bc388a Bug 1612831 - [marionette] Move navigation commands to parent process. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D80622
2020-09-15 04:53:24 +00:00
Razvan Maries c8e604eb78 Backed out 4 changesets (bug 1660970, bug 1525854, bug 1663657, bug 1645108) for perma failures on test_trr_additional_section.js. CLOSED TREE
Backed out changeset ad6c2e8af09b (bug 1663657)
Backed out changeset 419e26e3f452 (bug 1525854)
Backed out changeset 55bf856faf33 (bug 1660970)
Backed out changeset c543a3a008fa (bug 1645108)
2020-09-15 02:35:05 +03:00
Emilio Cobos Álvarez 8b0177b46a Bug 1664718 - Allow :is() and :where() to have better error recovery. r=xidorn
Adjust is-where-parsing.html to work with both the new and old behavior,
and add a test for the new behavior.

Depends on D90049

Differential Revision: https://phabricator.services.mozilla.com/D90050
2020-09-14 22:33:01 +00:00
Valentin Gosu 26af33d4cc Bug 1525854 - TRR shouldn't fallback to DNS on DNSSEC error r=necko-reviewers,dragana
This patch adds support for the Extended DNS Errors draft code.
https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-extended-error-16

While not yet in the draft, it seems the OPT code for Extended DNS Error is 15
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-11

The list of errors for which we hard fail isn't necessarily final.
I picked the errors that indicate a DNSSec failure, or an intentional
filtering done by the resolver.

Differential Revision: https://phabricator.services.mozilla.com/D87698
2020-09-14 21:42:02 +00:00
Glenn Watson 3c663bd252 Bug 1664719 - Pt 1 - Select outermost scroll root if no real scroll roots found. r=nical
Previously, if we encounter a page where there are no real scroll
roots, WR would attach the picture cache slices to the root reference
frame.

This means that in some cases, no shared clips will be found for the
content slices. This is not currently a performance issue, since the
content slices are fixed and don't scroll. However, future patches
for this bug will only select shared clips that are ancestors of
the picture cache scroll root.

This patch ensures that in these cases, we still select the outermost
defined scroll frame, allowing shared clips to be correctly found
for these pages with a single scroll frame that doesn't scroll.

Differential Revision: https://phabricator.services.mozilla.com/D90051
2020-09-14 07:04:48 +00:00
Henrik Skupin 48cb3eb951 Bug 1663641 - [marionette] Don't return the current URL with "about:error" prefixes. r=marionette-reviewers,maja_zf
This regressed by the patch on bug 1658928, which changed the type of
URL Marionette returns. While before we were returning the visible
URL from the location bar, the new and broken behavior includes
"about:error" prefixes for broken navigation requests.

Differential Revision: https://phabricator.services.mozilla.com/D89936
2020-09-14 19:33:11 +00:00
Mihai Alexandru Michis 47b948eabc Backed out 2 changesets (bug 1664718) for causing wpt and bc failures.
CLOSED TREE

Backed out changeset 62e71d3b6b32 (bug 1664718)
Backed out changeset c8a8791a26ed (bug 1664718)
2020-09-14 20:32:50 +03:00
Kershaw Chang 361fe2d82b Bug 1652670 - P2: Make nsSocketTransport use IP hint address to connect r=valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D88988
2020-09-14 14:47:36 +00:00
pbz 9a689a2ce4 Bug 613785 - Updated marionette modal#findModalDialogs to support SubDialog prompts. r=whimboo,marionette-reviewers on a CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D89624
2020-09-14 10:22:01 +00:00
Cristina Coroiu f3ce4d6f49 Backed out 3 changesets (bug 613785) for license failure at toolkit/components/pictureinpicture/docs/PiP-diagram.svg on a CLOSED TREE
Backed out changeset 0f7dc1b122c6 (bug 613785)
Backed out changeset c8555693674c (bug 613785)
Backed out changeset 9df275f6cd8d (bug 613785)
2020-09-14 18:20:12 +03:00
Emilio Cobos Álvarez 4c86d9e159 Bug 1664718 - Allow :is() and :where() to have better error recovery. r=xidorn
Adjust is-where-parsing.html to work with both the new and old behavior,
and add a test for the new behavior.

Depends on D90049

Differential Revision: https://phabricator.services.mozilla.com/D90050
2020-09-14 15:04:22 +00:00
pbz 2ff9b32c49 Bug 613785 - Updated marionette modal#findModalDialogs to support SubDialog prompts. r=whimboo,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89624
2020-09-14 10:22:01 +00:00
Joel Maher 26804c202e Bug 1664497 - Adjust test expectations for OSX with no EDID dongle. r=bc,preferences-reviewers,marionette-reviewers,whimboo,Gijs
Adjust test expectations for OSX with no EDID dongle.

Differential Revision: https://phabricator.services.mozilla.com/D89934
2020-09-12 10:12:58 +00:00
Bob Clary eda9179372 Bug 1651196 - add additional logging for remotegtests.py AppWaiter.update_log, r=jmaher.
Depends on D90012

Differential Revision: https://phabricator.services.mozilla.com/D90013
2020-09-14 13:56:14 +00:00
Bob Clary 347b3f34d8 Bug 1651196 - [mozdevice] improve top activity detection in Android 10+, r=jmaher.
Differential Revision: https://phabricator.services.mozilla.com/D90012
2020-09-14 14:08:48 +00:00
Henri Sivonen 0ed4d62465 Bug 1649099 - Add WPTs for testing the effect on activeElement of the containing doc when calling .focus() and .blur() on an OOP iframe. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D81497
2020-09-14 07:17:50 +00:00
Delan Azabani 9e07fbde4d Bug 1658121 - Implement padding/border layout for <mspace>. r=emilio
This patch doesn’t try to handle width/height or similar properties ([[ https://github.com/mathml-refresh/mathml/issues/45 | mathml-refresh/mathml#45 ]]) or non-horizontal writing modes ([[ https://bugzilla.mozilla.org/show_bug.cgi?id=1077525 | bug 1077525 ]]).

* [[ https://phabricator.services.mozilla.com/D86471?id=324103 | Diff 1 ]] implements padding well enough to pass WPT’s [[ http://wpt.live/mathml/relations/css-styling/padding-border-margin/padding-002.html | “Padding properties on mspace” ]]
* [[ https://phabricator.services.mozilla.com/D86471?id=324105 | Diff 2 ]] implements border well enough to pass WPT’s [[ http://wpt.live/mathml/relations/css-styling/padding-border-margin/border-002.html | “Border properties on mspace” ]]
* [[ https://phabricator.services.mozilla.com/D86471?id=324110 | Diff 3 ]] adjusts mBlockStartAscent + mBoundingMetrics in the same way as the rest of the ReflowOutput
* [[ https://phabricator.services.mozilla.com/D86471?id=327654 | Diff 4 ]] adjusts MeasureForWidth by IntrinsicISizeOffsets().{padding,border}
* Diff 5 through Diff 8 relate to margin layout, and now live in D87594
* [[ https://phabricator.services.mozilla.com/D86471?id=328587 | Diff 9 ]] + [[ https://phabricator.services.mozilla.com/D86471?id=336839 | Diff 10 ]] mark the relevant WPT cases as passing
* [[ https://phabricator.services.mozilla.com/D86471?id=338658 | Diff 11 ]] adds a workaround for [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1658135 | bug 1658135 ]] to the WPT support script

Differential Revision: https://phabricator.services.mozilla.com/D86471
2020-09-13 11:17:03 +00:00
Emilio Cobos Álvarez 948fa5c6d2 Bug 1664156 - Remove -moz-suppressed. r=edgar
Per spec we shouldn't behave differently depending on how we blocked the
image/object/etc.

This may have made sense in the past when ad blockers were implemented
via nsIContentPolicy, but I think nowadays it doesn't make sense, and
showing fallback is preferred.

There's a couple extra cleanups we can do after this lands, like
removing HTMLImageElement.imageBlockingStatus and simplifying a bit that
code. But I'll do that in a separate bug.

Differential Revision: https://phabricator.services.mozilla.com/D89912
2020-09-13 11:33:13 +00:00
Noemi Erli 733e3b440c Backed out changeset 64eb902728bc (bug 1664156) for causing mochitest failures in test_meta_csp_self.html CLOSED TREE 2020-09-12 22:56:18 +03:00
Emilio Cobos Álvarez 4b18c556e4 Bug 1664156 - Remove -moz-suppressed. r=edgar
Per spec we shouldn't behave differently depending on how we blocked the
image/object/etc.

This may have made sense in the past when ad blockers were implemented
via nsIContentPolicy, but I think nowadays it doesn't make sense, and
showing fallback is preferred.

There's a couple extra cleanups we can do after this lands, like
removing HTMLImageElement.imageBlockingStatus and simplifying a bit that
code. But I'll do that in a separate bug.

Differential Revision: https://phabricator.services.mozilla.com/D89912
2020-09-12 17:39:18 +00:00
Razvan Maries 8f97d6d022 Backed out changeset b5d0e150491e (bug 1661544) for perma failures on HTMLBody-ScrollArea_quirksmode.html. 2020-09-12 09:48:34 +03:00
Masayuki Nakano 3dd6180180 Bug 1663968 - Allow `input-events-get-target-ranges-*.tentative.html` to run longer because they test a lot of cases r=smaug
Since a lot of cases are tested in the tests, they may time out when the
environment is a little bit busy.  For now, we should allow them to run
longer.  But adding new tests may cause timing out again.  If so, we need to
split them at runtime.

Differential Revision: https://phabricator.services.mozilla.com/D89992
2020-09-11 23:59:12 +00:00
Ting-Yu Lin b34bab609c Bug 1657345 - Make grid container aware that its available block-size can be unconstrained in paginated context. r=mats
This happens when nsColumnSetFrame reflows its last column in an
unconstrained available block-size.

The wpt test can trigger the bug in a debug build easily. In opt builds like
Nightly, if one wants to load the test manually, additional incremental reflow
(such as opening devtools) may be needed to trigger the bug.

Co-authored-by: Mats Palmgren <mats@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D86672
2020-09-12 00:54:10 +00:00
Frederic Wang 4f44f0d754 Bug 1664467: Remove runtime preferences for legacy MathML lengths. r=emilio
This commit remove the following preferences, which have been
disabled since Firefox 70:
- mathml.nonzero_unitless_lengths.disabled
- mathml.legacy_number_syntax.disabled

These are edge syntaxes for MathML3 lengths that don't align well
with CSS and we haven't received any bug report about it since they
were disabled. Tests are updated to treat attributes using such
values as invalid.

update tests

Differential Revision: https://phabricator.services.mozilla.com/D89920
2020-09-11 19:48:07 +00:00
Botond Ballo d5b3bf63f9 Bug 1661544 - Ensure initial viewport is computed before reporting innerWidth. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D88947
2020-09-09 21:14:31 +00:00
Brian Grinstead 4edb87a680 Bug 1664507 - Add documentation for testing policy r=Gijs DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89941
2020-09-11 19:19:29 +00:00
Dorel Luca c92b1a6c1b Backed out changeset 5631f20805da (bug 1657445) for WPT failures. CLOSED TREE 2020-09-11 22:31:39 +03:00
Punam Dahiya 154225ecec Bug 1659150 - Remove about:welcome trailhead, full page and ReturnToAMO templates r=perftest-reviewers,Mardak,mkaply,nanj,sparky
Differential Revision: https://phabricator.services.mozilla.com/D89077
2020-09-11 16:35:04 +00:00
Dave Hunt ee5bdd9c60 Bug 1657445 - [wptserve] Content-Length header missing when response is a file object r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D86052
2020-08-21 09:35:20 +00:00
Geoff Brown 91b7cfa07b Bug 1664409 - Ensure fission disabled for mochitest-chrome and a11y tests; r=ahal
When mochitest-chrome (or a11y) tests are run, e10s is disabled for the suite; that conflicts
with the fission option, if enabled on the command line. This patch disables fission along
with e10s for non-e10s test suites.

Differential Revision: https://phabricator.services.mozilla.com/D89931
2020-09-11 15:12:13 +00:00
Oriol Brufau 1a38c1beab Bug 1655581 - [css-grid] Use min-content size for intrinsic maximums resolution. r=mats
By mistake the specification used to say that, for items spanning
multiple tracks, the growth limits of the tracks with an intrinsic max
track sizing function should grow to accommodate the minimum
contribution of the item.

But this was a mistake, because an intrinsic max track sizing function
can only be min-content or max-content. So instead of distributing the
minimum contribution, it should be the min-content contribution.

The spec has been fixed and there is a CSSWG resolution in
https://github.com/w3c/csswg-drafts/issues/4790

This patch fixes the problem by reverting 2b923d48ea7e. The change is
likely web compatible, since it only affects a rare edge case with
'minmax()' where the min sizing function is 'auto' or a fixed value
smaller than the min-content contribution, the max sizing function is
'min-content', and an item whose minimum contribution is forced to be
smaller than the min-content contribution, and spans multiple tracks.

Differential Revision: https://phabricator.services.mozilla.com/D89145
2020-09-11 12:42:07 +00:00
moz-wptsync-bot 39eb6c47a7 Bug 1664225 - [wpt-sync] Update web-platform-tests to 55e3f8d27d6be17fa75bebe426c39cc51b3b26d4, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: 55e3f8d27d6be17fa75bebe426c39cc51b3b26d4
wpt-type: landing
2020-09-11 11:55:45 +00:00
Stephen McGruer b05a76f758 Bug 1651991 [wpt PR 24556] - [Taskcluster] Make lint create a GitHub Checks output file, a=testonly
Automatic update from web-platform-tests
[Taskcluster] Make lint create a GitHub Checks output file (#24556)

See https://github.com/web-platform-tests/wpt/issues/15412
--

wpt-commits: 8420fdfa2c9124b1f7b1eaf64517c5b3fc3f072b
wpt-pr: 24556
2020-09-11 11:55:45 +00:00
Antonio Sartori ff1e5a23d9 Bug 1662411 [wpt PR 25321] - Fix wildcard host matching in CSPEE subsume algorithm, a=testonly
Automatic update from web-platform-tests
Fix wildcard host matching in CSPEE subsume algorithm

The previous implementation returned `true` for `*.example.com`
subsumes `example.com`. However, since `*.example.com` does not match
`example.com`, this should not be the case. And indeed according to
2.3.3 in
https://w3c.github.io/webappsec-cspee/#subsume-source-expressions in
this case the subsume algorithm should return `false`.

Bug: 1086857
Change-Id: I449f72d2db0a918478fc1ba4250335ae57a4ae2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2210463
Reviewed-by: Mike West <mkwst@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Antonio Sartori <antoniosartori@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805286}

--

wpt-commits: 4d8bfc649f692738a27b35468b7984b6061ab485
wpt-pr: 25321
2020-09-11 11:55:44 +00:00
Arnaud Mandy 334864045b Bug 1663389 [wpt PR 25421] - WPT: Refactor contacts tests to use test-only-api.js, a=testonly
Automatic update from web-platform-tests
WPT: Refactor contacts tests to use test-only-api.js

use of test-only-api.js in preparation for launching official MojoJS support
in WPT. This would not change the test results on Chromium waterfall
(everything should continue to pass) or upstream WPT (tests currently
fail because MojoJS isn't enabled).

Bug: 1123989
Change-Id: Ib7fed092b37243b82fbbf38d871bb75728cb7744
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2395395
Commit-Queue: Arnaud Mandy <arnaud.mandy@intel.com>
Reviewed-by: Finnur Thorarinsson <finnur@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805272}

--

wpt-commits: 226f994feca843b12b1976e4bd4050809c4cc481
wpt-pr: 25421
2020-09-11 11:55:44 +00:00
Tarek Ziadé 3021e5b216 Bug 1662706 - add a fuzzy runner r=sparky,necko-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D89123
2020-09-11 08:13:27 +00:00
Cosmin Sabou 00b09a0063 Backed out changeset 08f94ba4c50c (bug 1659150) for bc failures on browser_all_files_referenced.js. CLOSED TREE 2020-09-11 08:32:46 +03:00