Commit Graph

53 Commits

Author SHA1 Message Date
Jeff Gilbert
5b753da289 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07: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
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
Andrew McCreight
78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Tom Ritter
78138d5e2d Bug 1353765 - Add missing FileSystemDirectoryEntry.h include to fix bustage that occurs in some build configs. r=baku 2017-04-03 11:40:02 -05:00
Andrea Marchesini
b7e557d0ef Bug 1358230 - test_formSubmission.html must delete its temporary files and directories, r=qdot 2017-05-02 17:44:01 +02:00
Andrea Marchesini
61d027b357 Bug 1361315 - No need to wrap a MultipartBlobImpl when FileSystemFileEntry::GetFile() is executed, r=smaug 2017-05-02 16:38:19 +02:00
Andrea Marchesini
d4416f2b25 Bug 1354308 - Entries API must support patches containing '..', r=froydnj 2017-04-27 08:19:56 +02:00
Sebastian Hengst
1f7f29a517 Backed out changeset b06d30abb358 (bug 1354308) for failing test_basic.html, test_formSubmission.html and test_no_dnd.html. r=backout 2017-04-26 17:56:55 +02:00
Andrea Marchesini
0bef963eb6 Bug 1354308 - Entries API must support patches containing '..', r=froydnj 2017-04-26 15:13:43 +02:00
Andrea Marchesini
59743dbfbf Bug 1350933 - Labeling dom/filesystem - part 2 - DispatchTo{Current,Main}Thread, r=billm 2017-04-05 09:47:34 +02:00
Andrea Marchesini
cbea30a731 Bug 1350933 - Labeling dom/filesystem - part 1 - Runnable, r=billm 2017-04-05 09:47:09 +02:00
Andrea Marchesini
a628be7b36 Bug 1344415 - Introduce a security check about which files can be opened by a content process, r=ehsan
Entries API gives access to the filesystem. With this patch we allow that only
to patches, previously shared by a FilePicker or a DataTransfer event.
2017-03-16 08:53:49 +01:00
Andrea Marchesini
9fa58ed270 Bug 1299500 - Get rid of DeviceStorage API - part 11 - FileSystem, r=ehsan 2017-03-08 20:15:45 +01:00
Andrea Marchesini
fb4c8780f3 Bug 1299500 - Get rid of DeviceStorage API - part 9 - Directory::GetRoot, r=ehsan 2017-03-08 20:15:45 +01:00
Andrea Marchesini
30ecbb1c86 Bug 1299500 - Get rid of DeviceStorage API - part 8 - Directory::Get, r=ehsan 2017-03-08 20:15:45 +01: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
8cf1cb8c2f Bug 1335536 - File.createFromNsIFile and File.createFromFileName should be async - part 1 - tests, r=smaug 2017-02-08 10:18:32 +01:00
Andrea Marchesini
fc26940d57 Bug 1336091 - File.relativeWebkitPath should not start with '/', r=smaug 2017-02-06 11:07:54 +01:00
Andrea Marchesini
f7dc102b1b Bug 1336481 - Window is not used in the ErrorCallback runnable in the Entries API, r=qdot 2017-02-03 19:51:24 +01:00
Sebastian Hengst
ccd3fc9950 Backed out changeset 99587cc6ef23 (bug 1335536) for failing robocop testFilePicker on Android. r=backout 2017-02-01 19:08:22 +01:00
Andrea Marchesini
3b9eaa7785 Bug 1335536 - File.createFromNsIFile and File.createFromFileName should be async - part 1 - tests, r=smaug 2017-02-01 17:13:08 +01:00
Florian Quèze
0e0865f4fc Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Andrea Marchesini
2aba798852 Bug 1303518 - Remove the chrome only constructor for File, r=qdot 2016-11-11 18:56:44 +01:00
Andrea Marchesini
6674864b91 Bug 1315185 - Get rid of FileSystemFileEntry.createWriter, r=smaug 2016-11-04 14:23:46 +01:00
Andrea Marchesini
9188b61d96 Bug 1284987 - Entries API - part 6 - BlobCallback renamed, r=smaug 2016-11-03 07:57:34 +01:00
Andrea Marchesini
a69d834b0d Bug 1284987 - Entries API - part 5 - Get rid of remove methods, r=smaug 2016-11-03 07:57:09 +01:00
Andrea Marchesini
05dea89997 Bug 1284987 - Entries API - part 4 - Use of DOMException, r=smaug 2016-11-03 07:56:28 +01:00
Andrea Marchesini
d7a6ec8806 Bug 1284987 - Entries API - part 3 - FileSystemEntry.getParent recursion, r=smaug 2016-11-03 07:55:51 +01:00
Andrea Marchesini
3a9551a834 Bug 1284987 - Entries API - part 2 - FileSystemEntry.getParent, r=smaug 2016-11-03 07:55:30 +01:00
Andrea Marchesini
6db54bcb2f Bug 1284987 - Entries API - part 1 - DOMString to USVString, r=smaug 2016-11-03 07:55:17 +01:00
Andrea Marchesini
d2e6e9c8f4 Bug 1305003 - Indentation fix in dom/filesystem/compat/*, r=me 2016-09-23 11:57:24 +02:00
Nicholas Nethercote
34dcc7b852 Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.

In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.

> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));

In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.

> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");

This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
  be true" sense used in assertions.

A common variation on the side-effect-free case is the following.

> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");

--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Andrea Marchesini
5bf9de08f0 Bug 1295570 - Entries API - part 7 - Split WebIDL files, r=smaug 2016-08-18 09:19:41 +02:00
Andrea Marchesini
87b1535dbc Bug 1295570 - Entries API - part 6 - Rename Entries Callbacks, r=smaug 2016-08-18 09:19:15 +02:00
Andrea Marchesini
8fb5264eef Bug 1295570 - Entries API - part 5 - Rename DirectoryReader to FileSystemDirectoryReader, r=smaug
--HG--
rename : dom/filesystem/compat/DirectoryReader.cpp => dom/filesystem/compat/FileSystemDirectoryReader.cpp
rename : dom/filesystem/compat/DirectoryReader.h => dom/filesystem/compat/FileSystemDirectoryReader.h
rename : dom/filesystem/compat/RootDirectoryReader.cpp => dom/filesystem/compat/FileSystemRootDirectoryReader.cpp
rename : dom/filesystem/compat/RootDirectoryReader.h => dom/filesystem/compat/FileSystemRootDirectoryReader.h
2016-08-18 09:18:51 +02:00
Andrea Marchesini
de09eb6947 Bug 1295570 - Entries API - part 4 - Rename DirectoryEntry to FileSystemDirectoryEntry, r=smaug
--HG--
rename : dom/filesystem/compat/DirectoryEntry.cpp => dom/filesystem/compat/FileSystemDirectoryEntry.cpp
rename : dom/filesystem/compat/DirectoryEntry.h => dom/filesystem/compat/FileSystemDirectoryEntry.h
rename : dom/filesystem/compat/RootDirectoryEntry.cpp => dom/filesystem/compat/FileSystemRootDirectoryEntry.cpp
rename : dom/filesystem/compat/RootDirectoryEntry.h => dom/filesystem/compat/FileSystemRootDirectoryEntry.h
2016-08-18 09:18:05 +02:00
Andrea Marchesini
e06457dcf2 Bug 1295570 - Entries API - part 3 - Rename FileEntry to FileSystemFileEntry, r=smaug
--HG--
rename : dom/filesystem/compat/FileEntry.cpp => dom/filesystem/compat/FileSystemFileEntry.cpp
rename : dom/filesystem/compat/FileEntry.h => dom/filesystem/compat/FileSystemFileEntry.h
2016-08-18 09:17:48 +02:00
Andrea Marchesini
94d10aeb4c Bug 1295570 - Entries API - part 2 - Rename Entry to FileSystemEntry, r=smaug
--HG--
rename : dom/filesystem/compat/Entry.cpp => dom/filesystem/compat/FileSystemEntry.cpp
rename : dom/filesystem/compat/Entry.h => dom/filesystem/compat/FileSystemEntry.h
2016-08-18 09:17:25 +02:00
Andrea Marchesini
f0c18d080e Bug 1295570 - Entries API - part 1 - Rename DOMFileSystem to FileSystem, r=smaug
--HG--
rename : dom/filesystem/compat/DOMFileSystem.cpp => dom/filesystem/compat/FileSystem.cpp
rename : dom/filesystem/compat/DOMFileSystem.h => dom/filesystem/compat/FileSystem.h
rename : dom/webidl/DOMFileSystem.webidl => dom/webidl/FileSystem.webidl
2016-08-18 09:17:02 +02:00
Olli Pettay
47a98b8ad1 Bug 1289255 - Implement DataTransferItem.webkitGetAsEntry, r=baku
--HG--
extra : rebase_source : 10517eeb5b5a68204514527c8a904ab216df6534
2016-07-29 14:42:33 +03:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Andrea Marchesini
f01e7c5de3 Bug 1287169 - Fix intermittent failure in test_no_dnd.html, r=smaug 2016-07-16 08:29:31 +02:00
Andrea Marchesini
3ef20ed60c Bug 1186932 - Implement support for form submission of a picked directory - part 5 - preferences enabled for testing, r=smaug 2016-07-14 09:03:35 +02:00
Andrea Marchesini
f8488defb9 Bug 1186932 - Implement support for form submission of a picked directory - part 3 - tests + fixes, r=smaug 2016-07-14 09:02:30 +02:00
Andrea Marchesini
fca8c62260 Bug 1281545 - FileSystem Blink API tests should remove the test directory, r=smaug 2016-06-23 09:49:34 +02:00
Andrea Marchesini
2a437d0c90 Bug 1265767 - Subset of Blink FileSystem API - patch 7 - DnD tests, r=smaug 2016-06-07 00:55:17 +02:00
Andrea Marchesini
64fb238b77 Bug 1265767 - Subset of Blink FileSystem API - patch 6 - getFile and getDirectory, r=smaug 2016-06-07 00:55:17 +02:00
Andrea Marchesini
ae27692741 Bug 1265767 - Subset of Blink FileSystem API - patch 5 - DOMFileSystem, r=smaug
--HG--
rename : dom/filesystem/compat/ErrorCallbackRunnable.h => dom/filesystem/compat/CallbackRunnables.h
2016-06-07 00:55:17 +02:00
Andrea Marchesini
5a24e4a0ff Bug 1265767 - Subset of Blink FileSystem API - patch 4 - DirectoryEntry methods, r=smaug 2016-06-07 00:55:17 +02:00