Commit Graph

78 Commits

Author SHA1 Message Date
Geoff Brown
32490358c2 Bug 1585119 - Re-enable many more mochitests on Android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.
I intend to enable still more mochitests in a future patch.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 14:35:20 +00:00
Olli Pettay
49bb4a7105 Bug 1586793 - [Fission] iframe.contentWindow may be null when it shouldn't be, r=peterv
The other cases when ClearWindowProxy is called seem to be fine.
It is the Unlink case which was causing null .contentWindow with test_mozfiledataurl.html

Fixes bug 1580391 and backs out bug 1581004

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

--HG--
extra : moz-landing-system : lando
2019-10-17 14:56:54 +00:00
Kris Maglione
b45bfec73f Bug 1586911: Silence SHEntry assertion after local->remote->local iframe navigation. r=peterv
When we have a parser-created iframe which starts out in-process, transitions
to remote, and then transitions back to in-process, we create separate
DocShells for the first and last in-process loads. Since both are
network-created, and have the same child index, they both try to add
themselves as children to their parent's SHistory at the same index. And since
the entry for the first DocShell already exists at that index when we try to
add the second, that triggers an assertion.

This isn't really ideal, but it is expected given the current state of session
history under Fission. It should hopefully be solved more gracefully when the
Fission-aware session history rewrite is done, but in the mean time, I think
we should just ignore the conflict, since it's expected.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 19:32:02 +00:00
Andreea Pavel
3d9088e654 Bug 1581004 - disabled test_mozfiledataurl.html on fission r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46261

--HG--
extra : moz-landing-system : lando
2019-09-25 17:55:33 +00:00
Andrew McCreight
c706a636a8 Bug 1559489, part 4 - Remote-to-local window transplanting. r=tcampbell,bzbarsky
This patch cleans up remote outer window proxies when we navigate back
into the process.

It adds a flag to mDanglingRemoteOuterProxies that is set in between
BrowsingContext::SetDocShell(), where we can tell that the browsing
context is going from being remote to being local, to
nsGlobalWindowOuter::SetNewDocument(), where the local outer window
proxy is actually created. Once the outer window is created, the
remote window proxies can be cleaned up in
CleanUpDanglingRemoteOuterWindowProxies().

The clean up is done by a process that is similar to object
transplanting, except that instead of looking in the cross-compartment
wrapper table for each compartment to find objects to be turned into
CCWs to the new object, it looks in the remote proxy map for each
compartment. SpiderMonkey doesn't know about the proxy maps, so this
has to be done by a new callback object CompartmentTransplantCallback.

Now that this cleanup is being done, it shouldn't be possible to wrap
a remote outer window proxy when the browsing context is local, so
MaybeWrapWindowProxy() can be simplified. I had to drop the assert
here that the browsing context has a window proxy because during clean
up we call wrap on a local outer window proxy before the BC gets the
window proxy set on it. I had the assert because my original plan was
to implicitly fix remote proxies during wrapping, but that is no
longer necessary.

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

--HG--
extra : moz-landing-system : lando
2019-08-13 19:09:59 +00:00
Kris Maglione
87884612c0 Bug 1568035: Part 4 - Update test expections for Fission. r=mccr8
Some failures crept in and out after my last sets of annotations landed. This
patch updates most of the annotations to deal with them.

MANUAL PUSH: Lando won't let me land.

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

--HG--
extra : rebase_source : 4cfccf95c5bb2521533a9f5c4c25d67f414fb6f5
extra : histedit_source : c19187a3b3002e0eebdd809738b57641e1e432cd
2019-07-24 13:06:57 -07:00
Kris Maglione
e40b418215 Bug 1566952: Part 2 - Update Fission failure annotations after skipping crashes. r=mccr8
When a test crashes, the harness skips all of the remaining tests in the
directory. That means that with crashes skipped, we now try to run a whole lot
more tests than we did before, and a lot of them fail under Fission.

This patch adds annotations to the new failures that show up after part 1.

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

--HG--
extra : rebase_source : 292157039c88fc615f5de41679e96e72766ac4db
2019-07-19 12:30:10 -07:00
Kris Maglione
0962c2b731 Bug 1566182: Annotate mochitests that fail with Fission enabled. r=mccr8
My preference was to annotate most of the failing tests with `fail-if` so that
if they start passing, the `fail-if` needs to be removed and they need to keep
passing. That doesn't work for tests that timeout, or which trigger failures
from their cleanup functions, however, so those tests need skip-if. And tests
with fail in their cleanup functions likely leave the browser in an
inconsistent state for subsequent tests, anyway, so really should be skipped
regardless.

There are some remaining tests which still fail because of crashes. I chose
not to skip them here, but to fix the crashes in separate bugs instead.

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

--HG--
extra : rebase_source : 39ba8fec2e882cfe577c5f2b58ab7e4b461f1178
2019-07-15 16:19:32 -07:00
Andrea Marchesini
616229d549 Bug 1562891 - Crashtest for Blob.stream(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D37390

--HG--
extra : moz-landing-system : lando
2019-07-09 13:11:51 +00:00
Victor Porof
0a8ff0ad85 Bug 1561435 - Format dom/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
2019-07-05 10:44:55 +02:00
Mark Banner
ea1728721a Bug 1558527 - Fix various issues related to shadowing of variables in dom/ code. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D34588

--HG--
extra : moz-landing-system : lando
2019-06-12 08:29:58 +00:00
Andrea Marchesini
70580df628 Bug 1557121 - Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 6 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D33831

--HG--
extra : moz-landing-system : lando
2019-06-07 13:10:55 +00:00
Andrea Marchesini
e9271044cf Bug 1548770 - Better test for File.createFile(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D30612

--HG--
extra : moz-landing-system : lando
2019-05-10 09:25:01 +00:00
Andrea Marchesini
3d080cfc18 Bug 1548770 - File.createFile() should not assume that the file doesn't exist, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D30534

--HG--
extra : moz-landing-system : lando
2019-05-09 19:26:53 +00:00
Brian Grinstead
c4fa4cfc0c Bug 1544322 - Part 4 - Remove the [type] attribute for multiline <script> tags loading files in /tests/SimpleTest/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the case where the script src is on the line below the script tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 4` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 04:01:46 +00:00
Brian Grinstead
0d460e3432 Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky
This is split from the previous changeset since if we include dom/ the file size is too
large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:53:28 +00:00
Mark Banner
11134bf8a1 Bug 1515616 - Fix various DOM tests to use nsIFile.NORMAL_FILE_TYPE rather than the unknown nsIFile.FILE_TYPE. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15082

--HG--
extra : moz-landing-system : lando
2018-12-20 18:17:22 +00:00
Mark Banner
b1c872942c Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D12529

--HG--
extra : moz-landing-system : lando
2018-11-21 14:27:27 +00:00
Andrea Marchesini
7194843a04 Bug 1507893 - Fetch() should consume DOM Files on the target thread only - test, r=twisniewski 2018-11-20 18:08:34 +01:00
Daniel Varga
153ba7a50e Backed out changeset 6babd3b956aa (bug 1502403) for wpt leak at mozilla::dom::FileReader::ReadFileContent 2018-10-30 12:50:37 +02:00
Andrea Marchesini
c549894865 Bug 1502403 - FileReader should dispatch loadstart asynchronously, r=smaug 2018-10-30 07:57:31 +01:00
Andrea Marchesini
a8f7b3a10f Bug 1480354 - Better approach for nested blobs construction, r=smaug 2018-08-03 08:58:32 +02:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Kris Maglione
8134b33e89 Bug 1462964: Remove obsolete nsIDOMBlob interface. r=bz
MozReview-Commit-ID: 2HIlaSrvfBe

--HG--
extra : rebase_source : 944a6244dbfe1f0a37dd34a041d1329624a86f93
extra : histedit_source : d7859be664fed00f8504e40969480d3af3d674e7%2C4456b502db338bd06823654306e47c2583101396
2018-05-21 17:32:44 -07:00
Andrea Marchesini
b4b5d38767 Bug 1458883 - Remove File.lastModifiedDate, r=qdot 2018-05-04 14:39:53 +02:00
Peter Van der Beken
9cab86f20d Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 2: Various test fixes to prepare for using WebIDL bindings for MessageManager classes. r=bz.
--HG--
extra : rebase_source : cbf2c71a956a0c57e7d57a1c1c132bb57bc48c37
2017-07-04 18:03:18 +02:00
Sebastian Hengst
3a10644021 Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)

--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Peter Van der Beken
e0424a7bae Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 2: Various test fixes to prepare for using WebIDL bindings for MessageManager classes. r=bz.
--HG--
extra : rebase_source : a07b1490df5f1a55121d01c0f9bb9fd20c890091
2017-07-04 18:03:18 +02:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Florian Quèze
032c961e0a Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
Andrea Marchesini
c9234eab7c Bug 1305230 - Using createUnique when creating test files in fileapi_chromeScript.js, r=me 2017-10-17 13:21:39 +02:00
Andrea Marchesini
2fc80505b6 Bug 1305230 - Splitting test_fileapi.html and test_fileapi_worker.html in multiple files, r=me
--HG--
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_basic.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_basic_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_encoding.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_encoding_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_other.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_other_worker.html
rename : dom/file/tests/test_fileapi.html => dom/file/tests/test_fileapi_twice.html
rename : dom/file/tests/test_fileapi_worker.html => dom/file/tests/test_fileapi_twice_worker.html
2017-10-17 13:21:39 +02:00
Andrea Marchesini
faf078bd88 Bug 1400098 - Using common_fileReader.js for test_fileapi in workers, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini
546f84767b Bug 1400098 - test_fileapi.html rewritten using Promises, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini
1e20889292 Bug 1305230 - Splitting test_fileapi_slice in four files, r=me
--HG--
rename : dom/file/tests/test_fileapi_slice2.html => dom/file/tests/test_fileapi_slice_memFile_1.html
rename : dom/file/tests/test_fileapi_slice2.html => dom/file/tests/test_fileapi_slice_memFile_2.html
rename : dom/file/tests/test_fileapi_slice.html => dom/file/tests/test_fileapi_slice_realFile_1.html
rename : dom/file/tests/test_fileapi_slice.html => dom/file/tests/test_fileapi_slice_realFile_2.html
2017-10-17 13:21:39 +02:00
Andrea Marchesini
3f03532be3 Bug 1305230 - Splitting test_fileapi_slice in two files, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini
55ddd1cb9b Bug 1305230 - Make test_fileapi_slice using promises, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini
2339456703 Bug 1305230 - removing fileutils.js from tests when not needed, r=qdot 2017-10-17 13:21:38 +02:00
Andrea Marchesini
5bf48c9e57 Bug 1305230 - Make test_blobconstructor promise based, r=qdot 2017-10-17 13:21:38 +02:00
Sebastian Hengst
8360803d7d Backed out changeset 1378bcab8986 (bug 1305230) for failing mochitest dom/file/tests/test_fileapi_slice_realFile_2.html on Windows. r=backout 2017-10-17 17:05:26 +02:00
Sebastian Hengst
f2942d6e08 Backed out changeset 7ecbcedbab1f (bug 1305230) 2017-10-17 17:04:54 +02:00
Sebastian Hengst
d6f98a8084 Backed out changeset db2a7c569b2d (bug 1305230) 2017-10-17 17:04:48 +02:00
Sebastian Hengst
86b4ca0f94 Backed out changeset 557644d57153 (bug 1305230) 2017-10-17 17:04:43 +02:00
Sebastian Hengst
0589950706 Backed out changeset a62b4707335a (bug 1305230)
--HG--
rename : dom/file/tests/test_fileapi_slice_realFile_2.html => dom/file/tests/test_fileapi_slice.html
rename : dom/file/tests/test_fileapi_slice_memFile_2.html => dom/file/tests/test_fileapi_slice2.html
2017-10-17 17:04:37 +02:00
Sebastian Hengst
a3cc2279e8 Backed out changeset d6973896c2e5 (bug 1400098) 2017-10-17 17:04:32 +02:00
Sebastian Hengst
4a6ef4d29e Backed out changeset 7d032e676aef (bug 1400098) 2017-10-17 17:04:26 +02:00
Sebastian Hengst
3c21e7d99d Backed out changeset e81517c2358c (bug 1305230)
--HG--
rename : dom/file/tests/test_fileapi_twice.html => dom/file/tests/test_fileapi.html
rename : dom/file/tests/test_fileapi_twice_worker.html => dom/file/tests/test_fileapi_worker.html
2017-10-17 17:04:20 +02:00
Sebastian Hengst
2f49a0c0b7 Backed out changeset 627d872075bc (bug 1305230) 2017-10-17 17:04:15 +02:00