Phil Ringnalda
9e96cfb31d
Backed out 8 changesets (bug 1173320) for adding dom/filesystem/tests/test_basic.html without making it work on Android
...
Backed out changeset 7e3a105b9160 (bug 1173320)
Backed out changeset 094819fbb07f (bug 1173320)
Backed out changeset 23b0e55ff1db (bug 1173320)
Backed out changeset 8bf8e2fcedad (bug 1173320)
Backed out changeset 3de390c6f47f (bug 1173320)
Backed out changeset fb298010e12e (bug 1173320)
Backed out changeset f1a965c2f796 (bug 1173320)
Backed out changeset 176128ba757f (bug 1173320)
2016-03-19 19:44:22 -07:00
Andrea Marchesini
dc6c312670
Bug 1173320 - patch 7/8 - Tests for FileList and Directories, r=smaug
2016-03-19 22:29:47 +01:00
Andrea Marchesini
4e0ff900f3
Bug 1173320 - patch 4/8 - Directory in FileList, r=smaug
2016-03-19 22:29:46 +01:00
Andrea Marchesini
97ca49dfa3
Bug 1173320 - patch 1/8 - Implement Directory object as string and not as BlobImpl, r=smaug
2016-03-19 22:29:46 +01:00
Mark Capella
35395c0ef4
Bug 1253534 - Suspicious code with probably reversed parms in call to IsSingleLineTextControl, r=mounir
2016-03-05 22:04:41 -05:00
Andrea Marchesini
3bbf7b3898
Bug 1250148 - FormData should treat empty input type=file as empty string in FormData and as unnamed Blob in HTML submission, r=smaug
2016-02-24 00:01:01 +01:00
Wes Kocher
0fc88fedc8
Backed out changeset 74f968e36041 (bug 1250148) for test_blobconstructor.html failures
2016-02-23 10:49:24 -08:00
Andrea Marchesini
0425964b78
Bug 1250148 - FormData should treat empty input type=file as empty string in FormData and as unnamed Blob in HTML submission, r=smaug
2016-02-23 18:38:16 +01:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Ting-Yu Lin
60711ad8f1
Bug 1227927 Part 3 - Use ranged-based for-loop to rewrite some simple loops in part 2. r=mats
2016-01-29 22:42:15 +08:00
Ting-Yu Lin
122e5b9aeb
Bug 1227927 Part 2 - Remove nsIFrame::GetFirstPrincipalChild(). r=mats
2016-01-29 22:42:14 +08:00
Jonathan Watt
1072d4acc3
Bug 893332, part 3 - Don't assert range underflow state under the parser. r=baku
2016-01-27 22:51:54 +00:00
Jonathan Watt
21873c36c6
Bug 893332, part 2 - Update validity state before asserting range underflow state. r=baku
2016-01-27 22:51:54 +00:00
Andrea Marchesini
d65194acc9
Bug 1162658 - Update FormData to match latest spec, r=smaug
2016-01-20 17:25:03 +00:00
Chris Peterson
c74fd557c5
Bug 1240265 - Annotate intentional switch fallthroughs in dom/. r=mrbkap
...
dom/base/Element.cpp:2920:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/Element.cpp:2935:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsDocument.cpp:6595:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsDocument.cpp:7631:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsDocument.cpp:7922:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsGlobalWindow.cpp:7573:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/base/nsXMLContentSerializer.cpp:1393:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/cache/AutoUtils.cpp:487:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/html/HTMLInputElement.cpp:3808:15 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/html/HTMLInputElement.cpp:3836:15 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/storage/DOMStorageDBThread.cpp:224:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/workers/ScriptLoader.cpp:1994:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-11-25 23:26:32 -08:00
Andrea Marchesini
6529563084
Bug 1239280 - HTMLInputElement::GetFiles should work also if 'directory' attribute is set, r=smaug
2016-01-13 17:30:04 +00:00
Andrea Marchesini
bf3c143fb1
Bug 1234192 - OSFileSystem should not be shared between Directory objects, r=smaug
2016-01-13 14:59:06 +00:00
Andrea Marchesini
b90663ccce
Bug 1238515 - nsIFilePicker methods should clearly say when they return directories and files, r=smaug
2016-01-12 19:18:15 +00:00
Carsten "Tomcat" Book
9f3c73682b
Backed out changeset b5e8cd00d7ef (bug 1238515) for Android Test failures
2016-01-12 14:15:08 +01:00
Andrea Marchesini
db6a9c8287
Bug 1238515 - nsIFilePicker methods should clearly say when they return directories and files, r=smaug
2016-01-12 10:23:13 +00:00
Andrea Marchesini
2fb754de92
Bug 1237595 - FormData ctor and form submission should create empty Blob/File when a input type=file is not set, r=smaug
2016-01-08 08:35:30 +00:00
Andrea Marchesini
6333ca6eac
Bug 1187157 - new FormData::get() should return an empty string if the file is not set - part 1, r=smaug
2016-01-07 09:54:00 +00:00
Andrea Marchesini
e7b377b6b5
Bug 1233598 - HTMLInputElement must traverse/unlink the getFilesAndDirectories promise, r=smaug
2015-12-21 15:14:06 +00:00
Garrett Robinson
7ecba140f2
Bug 1194893 - Pref for default file upload directory. r=smaug
2015-12-16 11:58:40 -08:00
Nathan Froyd
466c695ec0
Bug 1225923 - part 2 - fix AppendElement(nsDependentString(...)) call in HTMLInputElement.cpp; r=baku
...
I think the intent of this call is to not copy the filename data passed
in, but to simply convert it to a friendlier nsString container for
processing. We don't have to worry about the nsTArray<nsString>
overload of MozSetFileNameArray holding references to the strings
outside the call, as the elements of the array are copied into new
strings as appropriate.
2015-11-18 10:36:40 -05:00
Jonathan Watt
82654e52d1
Bug 1209924 - Implement a general filtering mechanism for Directory::GetFilesAndDirectories, and add filtering of sensitive files/directories. r=baku
2015-10-09 15:59:40 +01:00
Jonathan Watt
9a70a91b0a
Bug 1207088 - Don't show the "Choose folder..." button for a directory picking <input> on platforms that don't have a directory picker. r=jfkthame
2015-09-16 11:42:27 +01:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Andrew McCreight
844e01aa14
Bug 1210591, part 1 - Use nsVariantCC in various places. r=smaug
...
Most of these will end up in DataTransfer:mItems, so this is needed
for it to do anything useful.
2015-10-09 10:24:23 -07:00
Andrew McCreight
222ce9e7f0
Bug 1210517 - Create nsVariant directly rather than via do_CreateInstance(). r=froydnj
...
The goal here is to leave creation stuff mostly for JS, so we can
convert it entirely over to a non-threadsafe cycle-collected version
without breaking any existing C++ users.
I didn't do this for a remaining use in nsGlobalWindow.h to avoid
including nsVariant.h all over the place.
2015-10-07 08:17:42 -07:00
Bobby Holley
7ee0b28cb9
Bug 1210293 - Remove legacy check from the XPIDL HTMLInputElement::SetUserInput. r=bz
2015-10-02 14:13:26 -07:00
Bobby Holley
53f8074964
Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz
2015-09-24 14:02:41 -07:00
Jonathan Watt
2c376f1008
Bug 1207570 - Make HTMLInputElement::GetFilesAndDirectories throw when the type is not file. r=baku
2015-09-02 10:00:48 +01:00
Jonathan Watt
7d7b7eb6b7
Bug 1203588 - Return the same Promise object from HTMLInputElement.getFilesAndDirectories when possible. r=baku
2015-08-31 13:37:23 +01:00
Wes Kocher
0e841e6f1c
Backed out changeset 19320abf76b1 (bug 1207088) for Werror bustage CLOSED TREE
2015-09-22 12:46:09 -07:00
Jonathan Watt
2d488a5189
Bug 1207088 - Don't show the "Choose folder..." button for a directory picking <input> on platforms that don't have a directory picker. r=jfkthame
2015-08-27 20:19:37 +01:00
Masayuki Nakano
0eb5af44b6
Bug 895274 part.244 Rename NS_TOUCH_CANCEL to eTouchCancel r=smaug
2015-09-15 00:14:35 +09:00
Masayuki Nakano
c52e0f004e
Bug 895274 part.243 Rename NS_TOUCH_END to eTouchEnd r=smaug
2015-09-15 00:14:35 +09:00
Masayuki Nakano
c9e937321c
Bug 895274 part.242 Rename NS_TOUCH_MOVE to eTouchMove r=smaug
2015-09-15 00:14:35 +09:00
Masayuki Nakano
27a41ba675
Bug 895274 part.241 Rename NS_TOUCH_START to eTouchStart r=smaug
2015-09-15 00:14:34 +09:00
Masayuki Nakano
09b663fe71
Bug 895274 part.232 Rename NS_EDITOR_INPUT to eEditorInput r=smaug
2015-09-15 00:14:33 +09:00
Masayuki Nakano
37ab7e510c
Bug 895274 part.214 Rename NS_SCROLLPORT_UNDERFLOW to eScrollPortUnderflow r=smaug
2015-09-12 01:19:27 +09:00
Masayuki Nakano
9162c56b9d
Bug 895274 part.213 Rename NS_SCROLLPORT_OVERFLOW to eScrollPortOverflow r=smaug
2015-09-12 01:19:27 +09:00
Jonathan Watt
5618eaec3f
Bug 1201106 - Make sure that HTMLInputElement.files is always null if the 'directory' attribute is set. r=baku
2015-08-21 13:38:25 +01:00
Jonathan Watt
5fcd712921
Bug 1203090 - Ensure we always use '/' as the starting path separator for the DOM path of the Directorys initially returned by HTMLInputElement.getFilesAndDirectories. r=baku
2015-08-20 15:01:59 +01:00
Jonathan Watt
09a30d92ba
Bug 1202964 - Use the correct nsIFilePicker API for directory picking in HTMLInputElement::nsFilePickerShownCallback::Done. r=baku
2015-08-18 10:30:19 +01:00
Masayuki Nakano
9e2e6efee6
Bug 895274 part.72 Rename NS_UI_ACTIVATE to eLegacyDOMActivate r=smaug
2015-09-02 15:08:01 +09:00
Masayuki Nakano
9c6ef4b246
Bug 895274 part.70 Rename NS_BLUR_CONTENT to eBlur r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
a5253572f6
Bug 895274 part.69 Rename NS_FOCUS_CONTENT to eFocus r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
70016a0e69
Bug 895274 part.66 Rename NS_FORM_SELECTED to eFormSelect r=smaug
2015-09-02 15:08:00 +09:00