Commit Graph

57 Commits

Author SHA1 Message Date
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
Andrea Marchesini
44860178be Bug 1305230 - Using createUnique when creating test files in fileapi_chromeScript.js, r=me 2017-10-17 13:21:39 +02:00
Andrea Marchesini
5eb6117bb3 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
72c79e182d Bug 1400098 - Using common_fileReader.js for test_fileapi in workers, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini
de661f1d28 Bug 1400098 - test_fileapi.html rewritten using Promises, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini
87100dfe4e 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
91ed8fdbd6 Bug 1305230 - Splitting test_fileapi_slice in two files, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini
152f7eeac2 Bug 1305230 - Make test_fileapi_slice using promises, r=qdot 2017-10-17 13:21:39 +02:00
Andrea Marchesini
7c8284011e Bug 1305230 - removing fileutils.js from tests when not needed, r=qdot 2017-10-17 13:21:38 +02:00
Andrea Marchesini
f35e7cc013 Bug 1305230 - Make test_blobconstructor promise based, r=qdot 2017-10-17 13:21:38 +02:00
Thomas Wisniewski
81d59581ae Bug 1341609 - Don't throw on async XHR send() failures when open() created no channel; r=baku
MozReview-Commit-ID: IKVSbdRXoP8

--HG--
extra : rebase_source : 6f85751dae1bf7413598a3ddc381bee86545de9b
2017-09-29 11:36:55 -04:00
Christoph Kerschbaumer
9048e3f216 Bug 1397655 - Update tests within dom/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:24:07 +02:00
Kate McKinley
76ebee76e8 Bug 1237868 - Don't set URI_IS_LOCAL_RESOURCE on media streams. r=baku
This patch only sets URI_IS_LOCAL_RESOURCE if the resource is a blob or
font table entry, to avoid having media streams treated as local
objects.

MozReview-Commit-ID: GOVr8FPByQy
2017-04-01 15:11:53 -04:00
Masatoshi Kimura
7be7b11a1c Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg

--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00
Andrea Marchesini
43fa40bb63 Bug 1341536 - Get rid of duplicate functions in fileutils.js, r=qdot 2017-02-23 03:24:54 +01:00
Andrea Marchesini
8cf1cb8c2f Bug 1335536 - File.createFromNsIFile and File.createFromFileName should be async - part 1 - tests, r=smaug 2017-02-08 10:18:32 +01:00
Florian Quèze
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Andrea Marchesini
f22cf0451c Bug 1321530 - FileReader.abort() should not throw, r=smaug 2016-12-02 13:16:59 +00:00
Andrea Marchesini
0980d4aa73 Bug 1321525 - FileReader.readAs* should throw if called nested, r=smaug 2016-12-01 18:57:36 +01:00
Sebastian Hengst
f3767aab10 Backed out changeset 8c4dcbaa44b9 (bug 1321525) for failing test_fileapi.html and test_fileReader.html. r=backout on a CLOSED TREE 2016-12-01 17:19:12 +01:00
Andrea Marchesini
04062155a7 Bug 1321525 - FileReader.readAs* should throw if called nested, r=smaug 2016-12-01 15:57:02 +01:00
Andrea Marchesini
8bbeee69cf Bug 1321261 - create dom/file for File APIs, r=qdot
--HG--
rename : dom/base/BlobSet.cpp => dom/file/BlobSet.cpp
rename : dom/base/BlobSet.h => dom/file/BlobSet.h
rename : dom/base/File.cpp => dom/file/File.cpp
rename : dom/base/File.h => dom/file/File.h
rename : dom/base/FileList.cpp => dom/file/FileList.cpp
rename : dom/base/FileList.h => dom/file/FileList.h
rename : dom/base/FileReader.cpp => dom/file/FileReader.cpp
rename : dom/base/FileReader.h => dom/file/FileReader.h
rename : dom/base/MultipartBlobImpl.cpp => dom/file/MultipartBlobImpl.cpp
rename : dom/base/MultipartBlobImpl.h => dom/file/MultipartBlobImpl.h
rename : dom/base/MutableBlobStorage.cpp => dom/file/MutableBlobStorage.cpp
rename : dom/base/MutableBlobStorage.h => dom/file/MutableBlobStorage.h
rename : dom/base/MutableBlobStreamListener.cpp => dom/file/MutableBlobStreamListener.cpp
rename : dom/base/MutableBlobStreamListener.h => dom/file/MutableBlobStreamListener.h
rename : dom/ipc/Blob.cpp => dom/file/ipc/Blob.cpp
rename : dom/ipc/BlobChild.h => dom/file/ipc/BlobChild.h
rename : dom/ipc/BlobParent.h => dom/file/ipc/BlobParent.h
rename : dom/ipc/BlobTypes.ipdlh => dom/file/ipc/BlobTypes.ipdlh
rename : dom/ipc/PBlob.ipdl => dom/file/ipc/PBlob.ipdl
rename : dom/ipc/PBlobStream.ipdl => dom/file/ipc/PBlobStream.ipdl
rename : dom/ipc/nsIRemoteBlob.h => dom/file/ipc/nsIRemoteBlob.h
rename : dom/base/nsHostObjectProtocolHandler.cpp => dom/file/nsHostObjectProtocolHandler.cpp
rename : dom/base/nsHostObjectProtocolHandler.h => dom/file/nsHostObjectProtocolHandler.h
rename : dom/base/nsHostObjectURI.cpp => dom/file/nsHostObjectURI.cpp
rename : dom/base/nsHostObjectURI.h => dom/file/nsHostObjectURI.h
rename : dom/base/nsIDOMBlob.idl => dom/file/nsIDOMBlob.idl
rename : dom/base/nsIDOMFileList.idl => dom/file/nsIDOMFileList.idl
rename : dom/base/test/create_file_objects.js => dom/file/tests/create_file_objects.js
rename : dom/base/test/file_blobURL_expiring.html => dom/file/tests/file_blobURL_expiring.html
rename : dom/base/test/file_mozfiledataurl_audio.ogg => dom/file/tests/file_mozfiledataurl_audio.ogg
rename : dom/base/test/file_mozfiledataurl_doc.html => dom/file/tests/file_mozfiledataurl_doc.html
rename : dom/base/test/file_mozfiledataurl_img.jpg => dom/file/tests/file_mozfiledataurl_img.jpg
rename : dom/base/test/file_mozfiledataurl_inner.html => dom/file/tests/file_mozfiledataurl_inner.html
rename : dom/base/test/file_mozfiledataurl_text.txt => dom/file/tests/file_mozfiledataurl_text.txt
rename : dom/base/test/file_nonascii_blob_url.html => dom/file/tests/file_nonascii_blob_url.html
rename : dom/base/test/fileapi_chromeScript.js => dom/file/tests/fileapi_chromeScript.js
rename : dom/base/test/fileutils.js => dom/file/tests/fileutils.js
rename : dom/base/test/test_blobURL_expiring.html => dom/file/tests/test_blobURL_expiring.html
rename : dom/base/test/test_blob_fragment_and_query.html => dom/file/tests/test_blob_fragment_and_query.html
rename : dom/base/test/test_blobconstructor.html => dom/file/tests/test_blobconstructor.html
rename : dom/base/test/test_file_from_blob.html => dom/file/tests/test_file_from_blob.html
rename : dom/base/test/test_file_negative_date.html => dom/file/tests/test_file_negative_date.html
rename : dom/base/test/test_fileapi.html => dom/file/tests/test_fileapi.html
rename : dom/base/test/test_fileapi_slice.html => dom/file/tests/test_fileapi_slice.html
rename : dom/base/test/test_ipc_messagemanager_blob.html => dom/file/tests/test_ipc_messagemanager_blob.html
rename : dom/base/test/test_mozfiledataurl.html => dom/file/tests/test_mozfiledataurl.html
rename : dom/base/test/test_nonascii_blob_url.html => dom/file/tests/test_nonascii_blob_url.html
2016-12-01 15:12:42 +01:00