Commit Graph

347 Commits

Author SHA1 Message Date
Ryan Hunt
1a3b16017c Bug 1559962 - Update spec/core wasm tests for bulk memory operations repo changes. r=luke
This commit updates the core wasm tests again using 'spidermonkey-tree-tests'.
(https://github.com/eqrion/spec @ bc995a154acb02624cab98a7f6bb7e90f0328172)

The branch continues from the last vendored point of the spec and merges the
changes from the bulk-memory-operations spec, along with a fix for a test.

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

--HG--
extra : rebase_source : fc9bf428abd827f985acc4ddd62c085b305b57e4
extra : histedit_source : ff99b0a97aedabd62eabcf4904ac9913a649881f
2019-07-18 17:43:51 -05:00
Ryan Hunt
123476301e Bug 1566516 - Update spec/core wasm tests in WPT. r=luke
This is the second part of the previous commit that contains the updated
tests for WPT.

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

--HG--
extra : rebase_source : 626c451f0b7b3ba8b132ea949e2d256d907d9f07
extra : histedit_source : 89303d06c6945dc3c7eefe3f60e213c251ac61dd
2019-07-18 17:00:40 -05:00
Ehsan Akhgari
1a81838031 Bug 1558944 - Increase the intermittent leak threshold for wpt tests on OSX to 2100 bytes to allow for new fields to be added to OriginAttributes; r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D37909

--HG--
extra : moz-landing-system : lando
2019-07-12 19:24:53 +00:00
Ross Kirsling
3e9d056826 Bug 1556818 - Throw early SyntaxError instead of ReferenceError for 0 = 0 r=khyperia,jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D35298

--HG--
extra : moz-landing-system : lando
2019-07-01 22:14:47 +00:00
moz-wptsync-bot
77101fa9a6 Bug 1558851 - [wpt-sync] Update web-platform-tests to dcac708930b6e73bf3e7629908b6467e7644cff9, a=testonly
wpt-head: dcac708930b6e73bf3e7629908b6467e7644cff9
wpt-type: landing
2019-06-19 11:07:02 -07:00
James Graham
e413c3c4d1 Bug 1542883, Remove unused wpt manifest files, r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D26603

--HG--
extra : moz-landing-system : lando
2019-04-08 20:40:47 +00:00
Masayuki Nakano
e4ea50f3f8 Bug 1533293 - part 1: Create Selection::SetStartAndEnd() to set new range as far as faster r=smaug
`Selection::Extend()` is too slow because:
- it may create some `nsRange` instances.
- it users `nsContentUtils::ComparePoints()` multiple times.

Therefore, we can improve the performance if we can stop using it in some
places.  First, this patch creates `Selection::SetStartAndEnd()` and
`Selection::SetStartAndEndInLimiter()` for internal use.  They remove
current ranges, reuse `nsRange` instance as far as possible and add new
range which is set by their arguments.  Then, this patch makes
`Selection::SelectAllChildren()` stop using `Selection::Extend()`.  At this
time, this fixes a web-compat issue.  `Selection::Expand()` cannot cross the
selection limiter boundary when there is a limiter (e.g., when an editing host
has focus).  But we can now fix this with using the new internal API.

Note that methods in editor shouldn't move selection to outside of active
editing host.  Therefore, this patch adds `Selection::SetStartAndEndInLimiter()`
and `Selection::SetBaseAndExtentInLimiter()` for them.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 10:06:00 +00:00
Noemi Erli
165f0d8c1c Backed out 3 changesets (bug 1533293) for causing Bug 1536595 a=backout
Backed out changeset d011dfe83683 (bug 1533293)
Backed out changeset e536f6e123d8 (bug 1533293)
Backed out changeset 19cff61f4fed (bug 1533293)
2019-03-20 13:29:17 +02:00
Masayuki Nakano
d4cbc09db8 Bug 1533293 - part 1: Create Selection::SetStartAndEnd() to set new range as far as faster r=smaug
`Selection::Extend()` is too slow because:
- it may create some `nsRange` instances.
- it users `nsContentUtils::ComparePoints()` multiple times.

Therefore, we can improve the performance if we can stop using it in some
places.  First, this patch creates `Selection::SetStartAndEnd()` and
`Selection::SetStartAndEndInLimiter()` for internal use.  They remove
current ranges, reuse `nsRange` instance as far as possible and add new
range which is set by their arguments.  Then, this patch makes
`Selection::SelectAllChildren()` stop using `Selection::Extend()`.  At this
time, this fixes a web-compat issue.  `Selection::Expand()` cannot cross the
selection limiter boundary when there is a limiter (e.g., when an editing host
has focus).  But we can now fix this with using the new internal API.

Note that methods in editor shouldn't move selection to outside of active
editing host.  Therefore, this patch adds `Selection::SetStartAndEndInLimiter()`
and `Selection::SetBaseAndExtentInLimiter()` for them.

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

--HG--
extra : moz-landing-system : lando
2019-03-18 01:50:59 +00:00
Edwin Gao
225e0ba26a Bug 1533892 - disable testing/web-platform/mozilla/tests/dom/throttling/throttling-webaudio.window.js r=jmaher
Disable test.

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

--HG--
extra : moz-landing-system : lando
2019-03-11 17:49:16 +00:00
Edwin Gao
cb89b7f98d Bug 1533577 - disable web-platform/meta/encrypted-media and web-platform/mozilla/meta/dom/throttling r=jmaher
Changes:
- added expected outcomes to various tests under `testing/web-platform/meta/encrypted-media` and `testing/web-platform/mozilla/meta/dom/throttling`
- this should address most of the failures in `wpt-7` in the linked try run

Carried over from abandoned diff D22742:
Bug 1531484 - disable dom/media/test/test_temporary_file_blob_video_plays.html
Bug 1526064 - disable dom/media/mediasource/test/test_MediaSource_flac_mp4.html
Bug 1526080 - disable dom/media/test/test_can_play_type_mpeg.html
Bug 1531851 - disable dom/media/webaudio/test/test_ScriptProcessorCollected1.html

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

--HG--
extra : moz-landing-system : lando
2019-03-08 20:52:58 +00:00
Masayuki Nakano
b86a9d85df Bug 1436906 - Make Selection::NotifySelectionListeners() not scroll when it moves focus r=smaug
When Selection changed into an editing host,
Selection::NotifySelectionListeners() moves focus to the editing host.
In this case, we've scrolled to the focused element because it's our consistent
and traditional behavior.  However, Chrome does not behave so.  Therefore,
we should not scroll in this case for compatibility with Chrome.

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

--HG--
extra : moz-landing-system : lando
2019-02-21 03:09:32 +00:00
Tooru Fujisawa
f56506f966 Bug 1527515 - Enable building BinAST on win32 and android nightlies. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D19608

--HG--
extra : moz-landing-system : lando
2019-02-13 08:42:47 +00:00
moz-wptsync-bot
a99f50a5a4 Bug 1523562 - [wpt-sync] Update web-platform-tests to 9c5701192b581208a028144cb0fc27e462541a49, a=testonly
wpt-head: 9c5701192b581208a028144cb0fc27e462541a49
wpt-type: landing


--HG--
rename : testing/web-platform/meta/async-local-storage/undefined-value.https.html.ini => testing/web-platform/meta/kv-storage/undefined-value.https.html.ini
2019-02-07 21:51:25 +00:00
Wes Kocher
33f3028e59 Bug 1228678 - Remove leading/trailing whitespace in wpt pref values, also strip whitespace in prefs when used r=jgraham
The spaces are significant, so ' false' evaluates as truthy instead of false. This patch removes the whitespaces from the prefs defined in-tree, and also makes it so wpt strips whitespace from pref values before it uses them to hopefully avoid unexpected behavior.

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

--HG--
extra : moz-landing-system : lando
2019-02-04 21:56:24 +00:00
Ms2ger
7dac6b7365 Bug 1524256 - Remove two copies of wast.js; r=bbouvier 2019-01-31 14:51:04 +01:00
James Graham
c8a79d483d Bug 1515043 - Remove expected data for throttling-webaudio.window.html, a=testonly on a CLOSED TREE 2019-01-23 13:15:52 +00:00
moz-wptsync-bot
298735f7c9 Bug 1515043 - [wpt-sync] Update web-platform-tests to 8506febdb9bdce487ef7e4ff91e9b70853019b38, a=testonly
wpt-head: 8506febdb9bdce487ef7e4ff91e9b70853019b38
wpt-type: landing


--HG--
rename : testing/web-platform/meta/html/semantics/embedded-content/__dir__.ini => testing/web-platform/meta/feature-policy/reporting/__dir__.ini
rename : testing/web-platform/meta/html/semantics/embedded-content/__dir__.ini => testing/web-platform/meta/html/semantics/scripting-1/__dir__.ini
rename : testing/web-platform/meta/html/semantics/embedded-content/__dir__.ini => testing/web-platform/meta/referrer-policy/origin-when-cross-origin/meta-referrer/__dir__.ini
rename : testing/web-platform/meta/html/semantics/embedded-content/__dir__.ini => testing/web-platform/meta/worklets/__dir__.ini
2019-01-23 11:04:35 +00:00
Tooru Fujisawa
5387becfb9 Bug 1519302 - Add pref to restrict BinAST feature to specific hosts. r=baku
To reduce the attack surface in early test for BinAST, add a preference to
restrict the hosts that Firefox accepts BinAST file from.
The preference is turned on by default (BinAST itself is turned off by
default for now), and the list contains hosts which is going to be used in
early test.
For hosts not listed in the list, Firefox doesn't send BinAST MIME-Type in
Accept field, and doesn't handle BinAST file in case the server returns
BinAST file.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 03:22:39 +00:00
Andreea Pavel
a71daaa45c Backed out changeset 8c88a33dc39f (bug 1519302) for failing _mozilla/binast/domain-restrict-excluded.https.html on a CLOSED TREE 2019-01-16 19:34:18 +02:00
Tooru Fujisawa
57d8853e72 Bug 1519302 - Add pref to restrict BinAST feature to specific hosts. r=baku
To reduce the attack surface in early test for BinAST, add a preference to
restrict the hosts that Firefox accepts BinAST file from.
The preference is turned on by default (BinAST itself is turned off by
default for now), and the list contains hosts which is going to be used in
early test.
For hosts not listed in the list, Firefox doesn't send BinAST MIME-Type in
Accept field, and doesn't handle BinAST file in case the server returns
BinAST file.

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

--HG--
extra : moz-landing-system : lando
2019-01-16 13:12:00 +00:00
Coroiu Cristina
1468575650 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-01-10 23:45:07 +02:00
Andrew McCreight
8b2881e8d6 Bug 1518354, part 2 - Remove ResolveHost whitelisting. r=jgraham
This leak was fixed by bug 1467914.

Depends on D16088

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:36:53 +00:00
Nathan Froyd
def9e5efca Bug 1514043 - change gecko media plugin process name; r=mccr8,bobowen,haik,chutten
The only visible change from this change is that telemetry will be
discontinuous.  The owners for the relevant telemetry probes have
reviewed this and indicated that this discontinuity is OK.
2019-01-10 10:52:51 -05:00
Ms2ger
3bb5e1c023 Bug 1515010 - Update core wasm tests; r=luke 2019-01-02 12:19:13 +01:00
Brindusan Cristian
2c544a2ad5 Backed out 1 changesets (bug 1515010) for wpt failures on align.wast.js.html and sm build bustage.
Backed out changeset a3025b3c5c6a (bug 1515010)
2019-01-02 14:52:11 +02:00
Ms2ger
ec75f6d41d Bug 1515010 - Update core wasm tests; r=luke 2019-01-02 12:19:13 +01:00
James Graham
afe98ddb33 Bug 1436244 - Make default allowed leaks for mozilla wpt tests match those for upstream tests, a=testonly 2018-12-17 11:07:10 +00:00
Michael Froman
02581ba817 Bug 1512341 - fix wpt failures when RDD process is pref'd on for OSX and Win. r=drno
Differential Revision: https://phabricator.services.mozilla.com/D13890

--HG--
extra : moz-landing-system : lando
2018-12-06 15:39:40 +00:00
Lars T Hansen
747571d3de Bug 1500167 - Support multiple tables in wasm. r=luke
This is largely plumbing, and lots of it.

The main complication is that function tables historically have had
two representations: one optimized representation for tables that
don't escape out of the instance, and one fatter representation for
tables that do (and that must contain instance pointers).

With multiple tables, we may table.copy from a function table with one
representation to one with the other representation, in the limit this
means changing the representation of the skinny table to be fat.
However, at the time when we discover this, code may already have been
generated that knows about the skinny representation, so we can't
actually perform such a representation change.

A somewhat reasonable solution to this is to just make all function
tables fat - we're going to be changing things soonish anyway, when we
make anyfunc / funcref a first-class type.

--HG--
extra : rebase_source : 9939eee6753465aa0401412d7810183e304762ae
extra : histedit_source : a548b13f6e75d6f51a3266d75950e4b3a9235cbf%2C95a28833705d8df0a9f0fd28a0d19111ad972417
2018-10-23 15:52:38 +02:00
Tooru Fujisawa
b89767635d Bug 1497784 - Drop support for lexical declaration in BinAST for now. r=Yoric 2018-10-30 09:49:41 +09:00
Henrik Skupin
f98d52bad6 Bug 1503804 - [wdspec] Assert for expected screenshot dimensions. r=ato
Depends on D10627

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

--HG--
rename : testing/web-platform/mozilla/tests/webdriver/take_full_screenshot.py => testing/web-platform/mozilla/tests/webdriver/take_full_screenshot/screenshot.py
extra : moz-landing-system : lando
2018-11-05 16:42:54 +00:00
Andreas Tolfsen
9fbe209e6d bug 1431148: geckodriver: add tests for TakeFullScreenshot; r=whimboo
This hooks up the Mozilla-specific WPT WebDriver tests directory
to use fixtures from the upstream public repository.

The tests for the new TakeFullScreenshot command are somewhat more
thorough than those for Take Screenshot and Take Element Screenshot,
but this will be addressed later as part of bug 1494208.

Depends on D6887

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

--HG--
extra : moz-landing-system : lando
2018-10-29 11:07:32 +00:00
Tooru Fujisawa
eff6dce122 Bug 1491104 - Part 3: Update in-tree binjs files. r=Yoric 2018-10-04 21:22:43 +09:00
Tooru Fujisawa
f101d92710 Bug 1491104 - Part 1: Add JS files for binast web-platform. r=Yoric 2018-10-04 21:22:43 +09:00
Ms2ger
7aec411a16 No bug - Update the WPT manifests. 2018-09-21 14:56:42 +02:00
Lars T Hansen
343a274c30 Bug 1488473 - Adjust WPT copy of mozilla jsapi tests. r=me
--HG--
extra : rebase_source : 68b6da77957312e81cfbba23f1461021f63e4f4c
2018-09-20 18:59:35 +02:00
Sebastian Hengst
69b52979e4 Bug 1488490 [wpt PR 12828] - Add basic test for requestFullscreen({ navigationUI }): update test expectation because bug 1188256 landed. a=testonly
--HG--
extra : rebase_source : 46e709491c22aa570bcb1e6bfdd89d75d3d489e7
2018-09-15 20:56:14 +03:00
Tooru Fujisawa
697c0813e8 Bug 1472103 - Followup 2: Update binjs file in wpt test. r=me
--HG--
extra : amend_source : 7fbb733b20b614b941fea3160e9dfef426dd7a7f
2018-09-14 04:12:02 +09:00
James Graham
0aba30eb56 Bug 1485403 - Update the mozilla manifest, a=testonly 2018-08-23 18:15:20 +01:00
Luke Wagner
fda4936899 Bug 1469395 - Remove support for storing WebAssembly.Modules in IDB (r=lth,janv,Ms2ger)
--HG--
extra : rebase_source : 12926772e15c8a46d25e7c3927754d25fcdbed87
2018-08-08 12:13:16 -05:00
James Graham
257428fc40 Bug 1479439 - Fix wpt manifest, a=testonly on a CLOSED TREE
MozReview-Commit-ID: 4ztR9jfrhiz
2018-07-31 15:03:05 +01:00
James Graham
5bf353faf1 Bug 1354232 - Update metadata for lsan failures, r=maja_zf
MozReview-Commit-ID: 1oq2gCQMzau
2018-07-19 16:32:17 +01:00
Hiroyuki Ikezoe
8b30a3dc7b Bug 1354501 - Dispatch web animation events at the same time when CSS animations/transitions events are dispatched. r=birtles
MozReview-Commit-ID: u7lWtAF8Ml

--HG--
extra : rebase_source : 6ce807bc253706483960dade2f2c926fa9821460
2018-07-03 11:05:23 +09:00
Greg Mierzwinski
8a8a847acc Bug 1472575 - Add delay to baseline coverage tests. r=jmaher
This patch adds a 30 second delay to the baseline coverage tests to help stabilize their code coverage results over time.

MozReview-Commit-ID: C3StSX7RdM9

--HG--
extra : rebase_source : d4ab053d0d55535333989294973aa4af7db4fea7
2018-06-19 16:09:16 -04:00
Daniel Holbert
3a149f2017 Bug 1450390 followup 2: regenerate wpt manifests after fixing rel="match" tag.
This commit's changes were autogenerated by this command:
  ./mach web-platform-tests --manifest-update
2018-06-10 15:11:23 -07:00
Julian Seward
e8c96808ab Bug 1467071 - Wasm: import embedding_limits "limits.js" test and fix any resulting failures. r=lth.
The WebAssembly Specification, branch [1] (see also, more generally,
comments in [2]), contains a new test, limits.js, to check whether the
generally agreed embedding limits (numbers of functions, imports, etc) are
observed.  This bug is to import the test and fix any resulting breakage
detected with it.

[1] https://github.com/WebAssembly/spec/tree/embedding_limits
[2] https://github.com/WebAssembly/spec/issues/607

* js/src/wasm/WasmBinaryConstants.h:
  - Added MaxTableMaximumLength as a counterpart to MaxTableInitialLength.
  - Split the constant group into two parts: spec-required, and those
    pertaining only to our own implementation.

* js/src/wasm/WasmJS.cpp  WasmTableObject::construct():
  - Update GetLimits call with correct max size bound

* js/src/wasm/WasmValidate.cpp  DecodeTableLimits():
  - Implement missing check for a Table's maximum size.

* js/src/jit-test/tests/wasm/import-export.js:
  js/src/jit-test/tests/wasm/spec/jsapi.js:
  testing/web-platform/mozilla/tests/wasm/js/jsapi.js:
  - Update Table maximum size tests.  All tests trying to make a Table
    with more than 10,000,000 entries now throw instead of succeeding.

* js/src/jit-test/tests/wasm/spec/harness/wasm-module-builder.js:
  - Import minimal updates and bug fixes from [1], needed to make the
    new tests work.

* js/src/jit-test/tests/wasm/spec/limits.js
  - New file.  Derived from [1], with comments added to each test to show
    SM's compliance situation, and with two tests disabled.

--HG--
extra : rebase_source : 489c97dd2420508ad9768a2aa4714aa8dfbfe2c6
2018-06-08 18:37:42 +02:00
shindli
fdb6353ff2 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-16 21:53:27 +03:00
Jon Coppeard
8d493df52b Bug 1444956 - Support BinAST decoding in the script loader r=baku 2018-05-16 15:58:13 +01:00
Gregory Mierzwinski
8eb9e2c317 Bug 1455401 - Generate baseline code coverage reports. r=jmaher,marco
The tests added in this patch will be used as a baseline for coverage that is common to all tests. They are added to each chunk being run in the test-coverage suite only if a test with an associated baseline type exists.

MozReview-Commit-ID: 1CrRZ1Ev2Mz

--HG--
extra : rebase_source : e2e4f9a51c82c637c8892dd8a5dbd84704b67b54
2018-04-25 15:22:28 -04:00