Andrea Marchesini
2cd3e0da6b
Bug 1233598 - HTMLInputElement must traverse/unlink the getFilesAndDirectories promise, r=smaug
2015-12-21 15:14:06 +00:00
Garrett Robinson
f97631d0c3
Bug 1194893 - Pref for default file upload directory. r=smaug
...
--HG--
extra : rebase_source : dafc24f3ed145ab406f77a82e2ec8162d695f134
2015-12-16 11:58:40 -08:00
Nathan Froyd
2496259426
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
740627a24c
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
b96e199943
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
...
--HG--
extra : rebase_source : 836a5eff5b37398af019f3a29848ee42092939dc
2015-09-16 11:42:27 +01:00
Nathan Froyd
01583602a9
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
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Andrew McCreight
ae5fe6a2ad
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
0ff7248107
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
fcde3e0716
Bug 1210293 - Remove legacy check from the XPIDL HTMLInputElement::SetUserInput. r=bz
2015-10-02 14:13:26 -07:00
Bobby Holley
110f12e7ca
Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz
2015-09-24 14:02:41 -07:00
Jonathan Watt
d0d01ca3fc
Bug 1207570 - Make HTMLInputElement::GetFilesAndDirectories throw when the type is not file. r=baku
2015-09-02 10:00:48 +01:00
Jonathan Watt
ef5c78b025
Bug 1203588 - Return the same Promise object from HTMLInputElement.getFilesAndDirectories when possible. r=baku
2015-08-31 13:37:23 +01:00
Wes Kocher
0ceb5b85ae
Backed out changeset 19320abf76b1 (bug 1207088) for Werror bustage CLOSED TREE
2015-09-22 12:46:09 -07:00
Jonathan Watt
d62f457c73
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
683794135c
Bug 895274 part.244 Rename NS_TOUCH_CANCEL to eTouchCancel r=smaug
2015-09-15 00:14:35 +09:00
Masayuki Nakano
51d7268995
Bug 895274 part.243 Rename NS_TOUCH_END to eTouchEnd r=smaug
2015-09-15 00:14:35 +09:00
Masayuki Nakano
52a7afe36c
Bug 895274 part.242 Rename NS_TOUCH_MOVE to eTouchMove r=smaug
2015-09-15 00:14:35 +09:00
Masayuki Nakano
7a48a6f2ab
Bug 895274 part.241 Rename NS_TOUCH_START to eTouchStart r=smaug
2015-09-15 00:14:34 +09:00
Masayuki Nakano
7928f48bc1
Bug 895274 part.232 Rename NS_EDITOR_INPUT to eEditorInput r=smaug
2015-09-15 00:14:33 +09:00
Masayuki Nakano
93a08167ad
Bug 895274 part.214 Rename NS_SCROLLPORT_UNDERFLOW to eScrollPortUnderflow r=smaug
2015-09-12 01:19:27 +09:00
Masayuki Nakano
2237026931
Bug 895274 part.213 Rename NS_SCROLLPORT_OVERFLOW to eScrollPortOverflow r=smaug
2015-09-12 01:19:27 +09:00
Jonathan Watt
5101569e41
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
9e10f05732
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
d2ceb3fc28
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
5c484163a4
Bug 895274 part.72 Rename NS_UI_ACTIVATE to eLegacyDOMActivate r=smaug
2015-09-02 15:08:01 +09:00
Masayuki Nakano
35e18152d5
Bug 895274 part.70 Rename NS_BLUR_CONTENT to eBlur r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
cc5db3b160
Bug 895274 part.69 Rename NS_FOCUS_CONTENT to eFocus r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
2586c79eb1
Bug 895274 part.66 Rename NS_FORM_SELECTED to eFormSelect r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
8fa33d4666
Bug 895274 part.65 Rename NS_FORM_CHANGE to eFormChange r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
5bb3e1799f
Bug 895274 part.64 Rename NS_FORM_RESET to eFormReset r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
167dc4aade
Bug 895274 part.63 Rename NS_FORM_SUBMIT to eFormSubmit r=smaug
2015-09-02 15:08:00 +09:00
Masayuki Nakano
7645260328
Bug 895274 part.34 Rename NS_MOUSE_OUT to eMouseOut r=smaug
2015-08-29 08:58:32 +09:00
Masayuki Nakano
da4db5d296
Bug 895274 part.33 Rename NS_MOUSE_OVER to eMouseOver r=smaug
2015-08-29 08:58:32 +09:00
Masayuki Nakano
a516285180
Bug 895274 part.31 Rename NS_MOUSE_CLICK to eMouseClick r=smaug
2015-08-29 08:58:32 +09:00
Masayuki Nakano
b9439c75d9
Bug 895274 part.30 Rename NS_MOUSE_DOUBLECLICK to eMouseDoubleClick r=smaug
2015-08-29 08:58:31 +09:00
Masayuki Nakano
bd4bf17fbd
Bug 895274 part.29 Rename NS_MOUSE_EXIT_WIDGET to eMouseExitFromWidget r=smaug
2015-08-29 08:58:31 +09:00
Masayuki Nakano
9895f90eca
Bug 895274 part.28 Rename NS_MOUSE_ENTER_WIDGET to eMouseEnterIntoWidget r=smaug
2015-08-29 08:58:31 +09:00
Masayuki Nakano
db00b74a82
Bug 895274 part.27 Rename NS_MOUSE_BUTTON_DOWN to eMouseDown r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
30fdd39afb
Bug 895274 part.26 Rename NS_MOUSE_BUTTON_UP to eMouseUp r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
717c415187
Bug 895274 part.25 Rename NS_MOUSE_MOVE to eMouseMove r=smaug
2015-08-29 08:58:29 +09:00
Masayuki Nakano
28c9f34179
Bug 895274 part.10 Rename NS_KEY_UP to eKeyUp r=smaug
2015-08-29 08:58:27 +09:00
Masayuki Nakano
d311a11cc1
Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug
2015-08-29 08:58:27 +09:00
Masayuki Nakano
0d22745cda
Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug
2015-08-26 21:56:59 +09:00
Masayuki Nakano
24352f9317
Bug 930843 part.2 NS_UI_ACTIVATE event should be trusted event even if it's caused by an untrusted event r=smaug
2015-08-22 13:02:39 +09:00
Masayuki Nakano
66f2c27305
Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug
2015-08-22 10:34:51 +09:00
Aryeh Gregor
5aeef0231d
Bug 874842 - Return Event instead of nsIDOMEvent
2015-08-12 14:39:31 +03:00
Jeff Walden
1b62a9d07b
Bug 1158399 - Expose the [[DateValue]] field in Date objects only through a ClippedTime class that enforces prior TimeClip-ing on the given value. r=evilpie, r=bz, r=dhylands, r=mt, r=froydnj, r=khuey, r=baku, r=smaug
...
--HG--
extra : rebase_source : 803fe39f338b6b32cb0fe2be6cf4056bab57283a
2015-05-01 19:12:52 -07:00
Robert O'Callahan
d5d49432af
Bug 1184842. Allow BeforeSetAttr to preparse aValue. r=peterv
...
We will pass the preparsed value into AttributeWillChange.
--HG--
extra : commitid : HCiY4DRKWkC
extra : rebase_source : aa17a819a20578322380d388299279e4e41a690b
2015-08-01 17:14:06 +12:00
Arnaud Bienner
52ee71547c
Bug 1186603 - Add a "Contains" method for string classes and use it in HTMLInputElement. r=nfroyd
2015-07-30 19:45:25 +02:00
Andrea Marchesini
367d4612a6
Bug 1185381 - Make FileList clonable - patch 1 - move code into FileList.h/.cpp, r=smaug
2015-07-22 17:03:07 +01:00