Boris Zbarsky
7cfa39b28d
Bug 835981 part 6. Change nsIDOMXULElement::GetControllers consumers to nsXULElement. r=peterv
2017-02-02 10:32:58 -05:00
Neil Deakin
424b26305f
Bug 1297342, reserved attribute should be on key element not on the command, r=felipe
2017-01-19 13:57:11 -05:00
Masayuki Nakano
a50325cf38
Bug 1297013 part.2 Implement some helper methods to log constants related to event handling r=smaug
...
This patch implements some helper methods to log constants related to event handling.
ToString(KeyNameIndex) and ToString(CodeNameIndex) converts the enum itmes to human readable string. They use WidgetKeyboardEvent's helper class which returns Unicode text. Therefore, this need to convert from UTF16 to UTF8. That's the reason why these methods don't return |const char*|.
GetDOMKeyCodeName(uint32_t) returns DOM keycode name if it's defined. Otherwise, returns hexadecimal value. For generating switch-case statement, VirtualKeyCodeList.h shouldn't include ",". Therefore, this patch removes "," from VirtualKeyCodeList.h and append it at defining NS_DEFINE_VK. Additionally, the last item of enum and array should not end with ",". Therefore, this adds dummy last item at each of them. Finally, some of the keyCode values are shared between 2 keys. Therefore, it needs to support NS_DISALLOW_SAME_KEYCODE for switch-case generator. See the comment in the file for more detail.
GetModifiersName(Modifiers) returns all modifier names included in the given value.
MozReview-Commit-ID: 9i2ftFOTpDn
2016-09-15 00:48:47 +09:00
Nicholas Nethercote
e2782e8cbc
Bug 1297300 - Add missing checks to GetSpec() calls in dom/xbl/. r=bz.
2016-09-08 14:19:01 +10:00
Andi-Bogdan Postelnicu
ce3b4e3642
Bug 1300769 - call ConstructPrototype only if mType is NS_HANDLER_TYPE_XUL. r=mrbkap
...
MozReview-Commit-ID: H7vS03mVj4s
2016-09-07 11:01:51 +03:00
Jared Wein
8c5af7b382
Bug 1297993 - Include the ID of the offending <key> element in the key conflict message. r=masayuki
...
MozReview-Commit-ID: 7hZLCZqfHAy
2016-08-31 12:53:24 -04:00
Chris Peterson
6c0f810682
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Nicholas Nethercote
7f7c26ed62
Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
...
do_GetAtom() is currently just a synonym for NS_NewAtom().
2016-03-29 10:09:43 +11:00
Nicholas Nethercote
2d26e460b9
Bug 1259182 - Shrink keyCodeData. r=bz.
...
This reduces static data size by 1480 B per process.
2016-03-16 14:36:37 +11:00
Boris Zbarsky
a50c6aa31a
Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley
2016-03-23 11:44:54 -04:00
Peter Van der Beken
456149fc8d
Bug 1251655 - Remove support for JavaScript-DOM-class and JavaScript-DOM-interface. r=bz.
2016-02-14 15:59:48 +01:00
Aidin Gharibnavaz
9e61252906
Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
...
MozReview-Commit-ID: Hm8Owq17KXn
2016-02-12 19:10:07 +03:30
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Aidin Gharibnavaz
d457460d0c
Bug 1230216 - Changing nsIDOM*Event interfaces so that they don't inherit nsIDOMEvent. r=smaug
...
All the event interfaces changed except for nsIDOMUIEvent and its inheritors.
2016-01-12 07:49:08 +03:30
Kyle Huey
8f8794e1c7
Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz
2015-10-26 14:37:32 -07: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
Neil Deakin
794ec3bb7b
Bug 1180761, cancel the event earlier so that space doesn't trigger checkbox change and scroll, r=neil
2015-09-29 14:49:32 -04:00
Tom Tromey
13fa8dec3d
Bug 1148593 - Pass JSContext to CallbackObject constructor. r=bz
2015-07-24 07:00:00 -04:00
Ryan VanderMeulen
99eb81305b
Backed out changesets fa9fe193778f and 3eaf867930dd (bug 1148593) for test_async_setTimeout_stack.html and test_async_setTimeout_stack_across_globals.html failures.
2015-07-17 12:37:24 -04:00
Tom Tromey
7c1da5f923
Bug 1148593 - Pass JSContext to CallbackObject constructor. r=bz
2015-07-17 07:47:00 -04:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Ehsan Akhgari
49865ef021
Bug 915962 - Part 3: Do not crash when pressing the space bar without having an element focused; r=roc
2015-04-21 22:08:21 -04:00
Ehsan Akhgari
c3734a0fa8
Bug 915962 - Part 1: Allow pressing space to scroll the document if an editable element or form control is not focused; r=roc
2015-04-21 22:07:39 -04:00
Kyle Huey
bfa9b08b5e
Backed out 3 changesets (bug 102663, bug 915962) for crashing constantly. a=me
...
Backed out changeset 984018eae04a (bug 102663)
Backed out changeset ec40bfefa08d (bug 915962)
Backed out changeset 79aeff6684f6 (bug 915962)
2015-04-21 09:19:01 -07:00
Denis Volk
1872a62df8
Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj
2015-04-15 12:47:03 -04:00
Ehsan Akhgari
cb5cbb7260
Bug 915962 - Part 1: Allow pressing space to scroll the document if an editable element or form control is not focused; r=roc
2015-04-19 18:57:50 -04:00
Mike Hommey
338d086ead
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09:00
Andrea Marchesini
3905e91404
Bug 1134280 - Get rid of Tag() - patch 2.9 - dom/svg, dom/xml, dom/xslt and dom/xbl - Fix all the occurrences, m=smaug, r=surkov
2015-03-03 11:09:00 +00:00
Andrea Marchesini
6b10d5e43e
Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug
2015-03-03 11:08:59 +00:00
Masayuki Nakano
237f6b6f4c
Bug 1100862 Shortcut key handlers should ignore Windows-Logo key state if no shortcut keys match a key event and the key is pressed because native applications do so r=enndeakin
2014-12-12 21:17:37 +09:00
Wes Kocher
3c0de68457
Backed out changeset bf25101e66cf (bug 1095098) for build bustage
2014-12-08 16:27:12 -08:00
Denis Volk
cbf9ae78f0
Bug 1095098: move do_QueryObject templates into their own header r=froydnj
2014-11-20 12:20:10 +01:00
Boris Zbarsky
7f6a6d00f9
Bug 1089026 part 5. Eliminate the ability to provide a non-global parent object to JS::CompileFunction and company except via the scopeChain API. r=waldo
2014-10-30 19:40:29 -04:00
Boris Zbarsky
9b636b207d
Bug 1088228 part 5. Use the new CloneFunctionObject in XBL. r=peterv
2014-10-30 17:40:17 -04:00
Wes Kocher
bdc541fa8b
Backed out 6 changesets (bug 1088228) for static analysis bustage
...
Backed out changeset 13ecff800114 (bug 1088228)
Backed out changeset de692c3335f2 (bug 1088228)
Backed out changeset 2d449a2b4e1c (bug 1088228)
Backed out changeset 49ac8f33ab70 (bug 1088228)
Backed out changeset 920d50e84a17 (bug 1088228)
Backed out changeset 55f4818378e4 (bug 1088228)
2014-10-30 16:24:02 -07:00
Boris Zbarsky
e6abb610a4
Bug 1088228 part 5. Use the new CloneFunctionObject in XBL. r=peterv
2014-10-30 17:40:17 -04:00
Boris Zbarsky
2613b9481d
Bug 1083648 followup to fix orange on CLOSED TREE due to random XBL stuff getting defined as props on the global. r=bholley pending
2014-10-25 02:09:12 -04:00
Boris Zbarsky
6fafb28475
Bug 1083648 part 3. Change nsJSUtils::CompileFunction to take an explicit scope chain vector, not just a single scope object, and pass in the right objects in CompileEventHandlerInternal. r=bholley
2014-10-25 00:50:29 -04:00
Bobby Holley
41bf467f8e
Bug 1086996 - Stop wrapping XBL handlers into the content compartment. r=bz
2014-10-22 15:13:15 +02:00
Bobby Holley
bebe4e9993
Bug 1070842 - Move nsJSUtils::CompileFunction (and consequently event handler compilation and XBL compilation) off of nsJSUtils::ReportPendingException. r=bz
2014-09-29 15:34:21 +02:00
Bobby Holley
b2b763cb29
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
df43fcf12d
Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage.
2014-08-14 17:23:10 -04:00
Bobby Holley
10dec58cfc
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 12:54:34 -07:00
Bob Owen
3ca928f6c1
Bug 1037564 Part 2: Replace AutoPushJSContexts et al. in nsXBLPrototypeHandler. r=bholley
2014-07-18 12:52:32 +01:00
Bill McCloskey
a1067f708b
Bug 1017310 - Associate JS compartments with add-on chrome XBL (r=bholley)
2014-06-23 16:33:37 -07:00
Masayuki Nakano
33a920beff
Bug 1009388 part.3 nsXBLPrototypeHandler should use WidgetEvent::AccelModifier() for consistency with other modules r=smaug
2014-05-22 13:06:05 +09:00
Boris Zbarsky
030c58668a
Bug 1007790. When compiling the <body>'s onerror handler, do give it all five args. r=smaug
2014-05-08 22:20:54 -04:00
Boris Zbarsky
a9fc4aaa02
Bug 993889 part 1. Remove "scope" argument from nsContentUtils::WrapNative. r=bholley
2014-04-10 00:58:41 -04:00
Masayuki Nakano
f101a00424
Bug 984253 part.4 Rename nsJSEventListener to mozilla::JSEventHandler r=smaug
2014-04-02 11:00:46 +09:00
Masayuki Nakano
0cc8f3f44e
Bug 984253 part.3 Rename nsEventHandler to mozilla::TypedEventHandler r=smaug
2014-04-02 11:00:45 +09:00