/work/obj-fuzz/dom/bindings/CanvasCaptureMediaStreamBinding.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM CanvasCaptureMediaStream.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #include "CanvasCaptureMediaStreamBinding.h" |
4 | | #include "MediaStreamBinding.h" |
5 | | #include "WrapperFactory.h" |
6 | | #include "mozilla/OwningNonNull.h" |
7 | | #include "mozilla/Preferences.h" |
8 | | #include "mozilla/dom/BindingUtils.h" |
9 | | #include "mozilla/dom/CanvasCaptureMediaStream.h" |
10 | | #include "mozilla/dom/DOMJSClass.h" |
11 | | #include "mozilla/dom/HTMLCanvasElement.h" |
12 | | #include "mozilla/dom/NonRefcountedDOMObject.h" |
13 | | #include "mozilla/dom/XrayExpandoClass.h" |
14 | | |
15 | | namespace mozilla { |
16 | | namespace dom { |
17 | | |
18 | | namespace binding_detail {}; // Just to make sure it's known as a namespace |
19 | | using namespace mozilla::dom::binding_detail; |
20 | | |
21 | | |
22 | | namespace CanvasCaptureMediaStream_Binding { |
23 | | |
24 | | static_assert(IsRefcounted<NativeType>::value == IsRefcounted<MediaStream_Binding::NativeType>::value, |
25 | | "Can't inherit from an interface with a different ownership model."); |
26 | | |
27 | | MOZ_CAN_RUN_SCRIPT static bool |
28 | | get_canvas(JSContext* cx, JS::Handle<JSObject*> obj, mozilla::dom::CanvasCaptureMediaStream* self, JSJitGetterCallArgs args) |
29 | 0 | { |
30 | 0 | AUTO_PROFILER_LABEL_FAST("get CanvasCaptureMediaStream.canvas", DOM, cx); |
31 | 0 |
|
32 | 0 | auto result(StrongOrRawPtr<mozilla::dom::HTMLCanvasElement>(self->Canvas())); |
33 | 0 | MOZ_ASSERT(!JS_IsExceptionPending(cx)); |
34 | 0 | if (!GetOrCreateDOMReflector(cx, result, args.rval())) { |
35 | 0 | MOZ_ASSERT(JS_IsExceptionPending(cx)); |
36 | 0 | return false; |
37 | 0 | } |
38 | 0 | return true; |
39 | 0 | } |
40 | | |
41 | | static const JSJitInfo canvas_getterinfo = { |
42 | | { (JSJitGetterOp)get_canvas }, |
43 | | { prototypes::id::CanvasCaptureMediaStream }, |
44 | | { PrototypeTraits<prototypes::id::CanvasCaptureMediaStream>::Depth }, |
45 | | JSJitInfo::Getter, |
46 | | JSJitInfo::AliasEverything, /* aliasSet. Not relevant for setters. */ |
47 | | JSVAL_TYPE_OBJECT, /* returnType. Not relevant for setters. */ |
48 | | false, /* isInfallible. False in setters. */ |
49 | | false, /* isMovable. Not relevant for setters. */ |
50 | | false, /* isEliminatable. Not relevant for setters. */ |
51 | | false, /* isAlwaysInSlot. Only relevant for getters. */ |
52 | | false, /* isLazilyCachedInSlot. Only relevant for getters. */ |
53 | | false, /* isTypedMethod. Only relevant for methods. */ |
54 | | 0 /* Reserved slot index, if we're stored in a slot, else 0. */ |
55 | | }; |
56 | | static_assert(0 <= JSJitInfo::maxSlotIndex, "We won't fit"); |
57 | | static_assert(0 < 1, "There is no slot for us"); |
58 | | |
59 | | MOZ_CAN_RUN_SCRIPT static bool |
60 | | requestFrame(JSContext* cx, JS::Handle<JSObject*> obj, mozilla::dom::CanvasCaptureMediaStream* self, const JSJitMethodCallArgs& args) |
61 | 0 | { |
62 | 0 | AUTO_PROFILER_LABEL_FAST("CanvasCaptureMediaStream.requestFrame", DOM, cx); |
63 | 0 |
|
64 | 0 | self->RequestFrame(); |
65 | 0 | MOZ_ASSERT(!JS_IsExceptionPending(cx)); |
66 | 0 | args.rval().setUndefined(); |
67 | 0 | return true; |
68 | 0 | } |
69 | | |
70 | | static const JSJitInfo requestFrame_methodinfo = { |
71 | | { (JSJitGetterOp)requestFrame }, |
72 | | { prototypes::id::CanvasCaptureMediaStream }, |
73 | | { PrototypeTraits<prototypes::id::CanvasCaptureMediaStream>::Depth }, |
74 | | JSJitInfo::Method, |
75 | | JSJitInfo::AliasEverything, /* aliasSet. Not relevant for setters. */ |
76 | | JSVAL_TYPE_UNDEFINED, /* returnType. Not relevant for setters. */ |
77 | | true, /* isInfallible. False in setters. */ |
78 | | false, /* isMovable. Not relevant for setters. */ |
79 | | false, /* isEliminatable. Not relevant for setters. */ |
80 | | false, /* isAlwaysInSlot. Only relevant for getters. */ |
81 | | false, /* isLazilyCachedInSlot. Only relevant for getters. */ |
82 | | false, /* isTypedMethod. Only relevant for methods. */ |
83 | | 0 /* Reserved slot index, if we're stored in a slot, else 0. */ |
84 | | }; |
85 | | static_assert(0 <= JSJitInfo::maxSlotIndex, "We won't fit"); |
86 | | static_assert(0 < 1, "There is no slot for us"); |
87 | | |
88 | | static bool |
89 | | _addProperty(JSContext* cx, JS::Handle<JSObject*> obj, JS::Handle<jsid> id, JS::Handle<JS::Value> val) |
90 | 0 | { |
91 | 0 | mozilla::dom::CanvasCaptureMediaStream* self = UnwrapPossiblyNotInitializedDOMObject<mozilla::dom::CanvasCaptureMediaStream>(obj); |
92 | 0 | // We don't want to preserve if we don't have a wrapper, and we |
93 | 0 | // obviously can't preserve if we're not initialized. |
94 | 0 | if (self && self->GetWrapperPreserveColor()) { |
95 | 0 | PreserveWrapper(self); |
96 | 0 | } |
97 | 0 | return true; |
98 | 0 | } |
99 | | |
100 | | static void |
101 | | _finalize(js::FreeOp* fop, JSObject* obj) |
102 | 0 | { |
103 | 0 | mozilla::dom::CanvasCaptureMediaStream* self = UnwrapPossiblyNotInitializedDOMObject<mozilla::dom::CanvasCaptureMediaStream>(obj); |
104 | 0 | if (self) { |
105 | 0 | ClearWrapper(self, self, obj); |
106 | 0 | AddForDeferredFinalization<mozilla::dom::CanvasCaptureMediaStream>(self); |
107 | 0 | } |
108 | 0 | } |
109 | | |
110 | | static size_t |
111 | | _objectMoved(JSObject* obj, JSObject* old) |
112 | 0 | { |
113 | 0 | mozilla::dom::CanvasCaptureMediaStream* self = UnwrapPossiblyNotInitializedDOMObject<mozilla::dom::CanvasCaptureMediaStream>(obj); |
114 | 0 | if (self) { |
115 | 0 | UpdateWrapper(self, self, obj, old); |
116 | 0 | } |
117 | 0 |
|
118 | 0 | return 0; |
119 | 0 | } |
120 | | |
121 | | // We deliberately use brace-elision to make Visual Studio produce better initalization code. |
122 | | #if defined(__clang__) |
123 | | #pragma clang diagnostic push |
124 | | #pragma clang diagnostic ignored "-Wmissing-braces" |
125 | | #endif |
126 | | static const JSFunctionSpec sMethods_specs[] = { |
127 | | JS_FNSPEC("requestFrame", (GenericMethod<NormalThisPolicy, ThrowExceptions>), reinterpret_cast<const JSJitInfo*>(&requestFrame_methodinfo), 0, JSPROP_ENUMERATE, nullptr), |
128 | | JS_FS_END |
129 | | }; |
130 | | #if defined(__clang__) |
131 | | #pragma clang diagnostic pop |
132 | | #endif |
133 | | |
134 | | |
135 | | static const Prefable<const JSFunctionSpec> sMethods[] = { |
136 | | { nullptr, &sMethods_specs[0] }, |
137 | | { nullptr, nullptr } |
138 | | }; |
139 | | |
140 | | static_assert(1 <= 1ull << NUM_BITS_PROPERTY_INFO_PREF_INDEX, |
141 | | "We have a prefable index that is >= (1 << NUM_BITS_PROPERTY_INFO_PREF_INDEX)"); |
142 | | static_assert(1 <= 1ull << NUM_BITS_PROPERTY_INFO_SPEC_INDEX, |
143 | | "We have a spec index that is >= (1 << NUM_BITS_PROPERTY_INFO_SPEC_INDEX)"); |
144 | | |
145 | | // We deliberately use brace-elision to make Visual Studio produce better initalization code. |
146 | | #if defined(__clang__) |
147 | | #pragma clang diagnostic push |
148 | | #pragma clang diagnostic ignored "-Wmissing-braces" |
149 | | #endif |
150 | | static const JSPropertySpec sAttributes_specs[] = { |
151 | | { "canvas", JSPROP_ENUMERATE, GenericGetter<NormalThisPolicy, ThrowExceptions>, &canvas_getterinfo, nullptr, nullptr }, |
152 | | { nullptr, 0, nullptr, nullptr, nullptr, nullptr } |
153 | | }; |
154 | | #if defined(__clang__) |
155 | | #pragma clang diagnostic pop |
156 | | #endif |
157 | | |
158 | | |
159 | | static const Prefable<const JSPropertySpec> sAttributes[] = { |
160 | | { nullptr, &sAttributes_specs[0] }, |
161 | | { nullptr, nullptr } |
162 | | }; |
163 | | |
164 | | static_assert(1 <= 1ull << NUM_BITS_PROPERTY_INFO_PREF_INDEX, |
165 | | "We have a prefable index that is >= (1 << NUM_BITS_PROPERTY_INFO_PREF_INDEX)"); |
166 | | static_assert(1 <= 1ull << NUM_BITS_PROPERTY_INFO_SPEC_INDEX, |
167 | | "We have a spec index that is >= (1 << NUM_BITS_PROPERTY_INFO_SPEC_INDEX)"); |
168 | | |
169 | | |
170 | | static uint16_t sNativeProperties_sortedPropertyIndices[2]; |
171 | | static PropertyInfo sNativeProperties_propertyInfos[2]; |
172 | | |
173 | | static const NativePropertiesN<2> sNativeProperties = { |
174 | | false, 0, |
175 | | false, 0, |
176 | | true, 0 /* sMethods */, |
177 | | true, 1 /* sAttributes */, |
178 | | false, 0, |
179 | | false, 0, |
180 | | false, 0, |
181 | | -1, |
182 | | 2, |
183 | | sNativeProperties_sortedPropertyIndices, |
184 | | { |
185 | | { sMethods, &sNativeProperties_propertyInfos[0] }, |
186 | | { sAttributes, &sNativeProperties_propertyInfos[1] } |
187 | | } |
188 | | }; |
189 | | static_assert(2 < 1ull << CHAR_BIT * sizeof(sNativeProperties.propertyInfoCount), |
190 | | "We have a property info count that is oversized"); |
191 | | |
192 | | static const DOMIfaceAndProtoJSClass sInterfaceObjectClass = { |
193 | | { |
194 | | "Function", |
195 | | JSCLASS_IS_DOMIFACEANDPROTOJSCLASS | JSCLASS_HAS_RESERVED_SLOTS(DOM_INTERFACE_SLOTS_BASE), |
196 | | &sBoringInterfaceObjectClassClassOps, |
197 | | JS_NULL_CLASS_SPEC, |
198 | | JS_NULL_CLASS_EXT, |
199 | | &sInterfaceObjectClassObjectOps |
200 | | }, |
201 | | eInterface, |
202 | | true, |
203 | | prototypes::id::CanvasCaptureMediaStream, |
204 | | PrototypeTraits<prototypes::id::CanvasCaptureMediaStream>::Depth, |
205 | | sNativePropertyHooks, |
206 | | "function CanvasCaptureMediaStream() {\n [native code]\n}", |
207 | | MediaStream_Binding::GetConstructorObject |
208 | | }; |
209 | | |
210 | | static const DOMIfaceAndProtoJSClass sPrototypeClass = { |
211 | | { |
212 | | "CanvasCaptureMediaStreamPrototype", |
213 | | JSCLASS_IS_DOMIFACEANDPROTOJSCLASS | JSCLASS_HAS_RESERVED_SLOTS(DOM_INTERFACE_PROTO_SLOTS_BASE), |
214 | | JS_NULL_CLASS_OPS, |
215 | | JS_NULL_CLASS_SPEC, |
216 | | JS_NULL_CLASS_EXT, |
217 | | JS_NULL_OBJECT_OPS |
218 | | }, |
219 | | eInterfacePrototype, |
220 | | false, |
221 | | prototypes::id::CanvasCaptureMediaStream, |
222 | | PrototypeTraits<prototypes::id::CanvasCaptureMediaStream>::Depth, |
223 | | sNativePropertyHooks, |
224 | | "[object CanvasCaptureMediaStreamPrototype]", |
225 | | MediaStream_Binding::GetProtoObject |
226 | | }; |
227 | | |
228 | | bool |
229 | | ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj) |
230 | 0 | { |
231 | 0 | static bool sPrefValue; |
232 | 0 | static bool sPrefCacheSetUp = false; |
233 | 0 | if (!sPrefCacheSetUp) { |
234 | 0 | sPrefCacheSetUp = true; |
235 | 0 | Preferences::AddBoolVarCache(&sPrefValue, "canvas.capturestream.enabled"); |
236 | 0 | } |
237 | 0 |
|
238 | 0 | return sPrefValue; |
239 | 0 | } |
240 | | |
241 | | static const js::ClassOps sClassOps = { |
242 | | _addProperty, /* addProperty */ |
243 | | nullptr, /* delProperty */ |
244 | | nullptr, /* enumerate */ |
245 | | nullptr, /* newEnumerate */ |
246 | | nullptr, /* resolve */ |
247 | | nullptr, /* mayResolve */ |
248 | | _finalize, /* finalize */ |
249 | | nullptr, /* call */ |
250 | | nullptr, /* hasInstance */ |
251 | | nullptr, /* construct */ |
252 | | nullptr, /* trace */ |
253 | | }; |
254 | | |
255 | | static const js::ClassExtension sClassExtension = { |
256 | | nullptr, /* weakmapKeyDelegateOp */ |
257 | | _objectMoved /* objectMovedOp */ |
258 | | }; |
259 | | |
260 | | static const DOMJSClass sClass = { |
261 | | { "CanvasCaptureMediaStream", |
262 | | JSCLASS_IS_DOMJSCLASS | JSCLASS_FOREGROUND_FINALIZE | JSCLASS_HAS_RESERVED_SLOTS(1), |
263 | | &sClassOps, |
264 | | JS_NULL_CLASS_SPEC, |
265 | | &sClassExtension, |
266 | | JS_NULL_OBJECT_OPS |
267 | | }, |
268 | | { prototypes::id::EventTarget, prototypes::id::MediaStream, prototypes::id::CanvasCaptureMediaStream, prototypes::id::_ID_Count, prototypes::id::_ID_Count, prototypes::id::_ID_Count, prototypes::id::_ID_Count, prototypes::id::_ID_Count }, |
269 | | IsBaseOf<nsISupports, mozilla::dom::CanvasCaptureMediaStream >::value, |
270 | | sNativePropertyHooks, |
271 | | FindAssociatedGlobalForNative<mozilla::dom::CanvasCaptureMediaStream>::Get, |
272 | | GetProtoObjectHandle, |
273 | | GetCCParticipant<mozilla::dom::CanvasCaptureMediaStream>::Get() |
274 | | }; |
275 | | static_assert(1 == DOM_INSTANCE_RESERVED_SLOTS, |
276 | | "Must have the right minimal number of reserved slots."); |
277 | | static_assert(1 >= 1, |
278 | | "Must have enough reserved slots."); |
279 | | |
280 | | const JSClass* |
281 | | GetJSClass() |
282 | 0 | { |
283 | 0 | return sClass.ToJSClass(); |
284 | 0 | } |
285 | | |
286 | | bool |
287 | | Wrap(JSContext* aCx, mozilla::dom::CanvasCaptureMediaStream* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector) |
288 | 0 | { |
289 | 0 | static_assert(!IsBaseOf<NonRefcountedDOMObject, mozilla::dom::CanvasCaptureMediaStream>::value, |
290 | 0 | "Shouldn't have wrappercached things that are not refcounted."); |
291 | 0 | MOZ_ASSERT(static_cast<mozilla::dom::CanvasCaptureMediaStream*>(aObject) == |
292 | 0 | reinterpret_cast<mozilla::dom::CanvasCaptureMediaStream*>(aObject), |
293 | 0 | "Multiple inheritance for mozilla::dom::CanvasCaptureMediaStream is broken."); |
294 | 0 | MOZ_ASSERT(static_cast<mozilla::DOMMediaStream*>(aObject) == |
295 | 0 | reinterpret_cast<mozilla::DOMMediaStream*>(aObject), |
296 | 0 | "Multiple inheritance for mozilla::DOMMediaStream is broken."); |
297 | 0 | MOZ_ASSERT(static_cast<mozilla::dom::EventTarget*>(aObject) == |
298 | 0 | reinterpret_cast<mozilla::dom::EventTarget*>(aObject), |
299 | 0 | "Multiple inheritance for mozilla::dom::EventTarget is broken."); |
300 | 0 | MOZ_ASSERT(ToSupportsIsCorrect(aObject)); |
301 | 0 | MOZ_ASSERT_IF(aGivenProto, js::IsObjectInContextCompartment(aGivenProto, aCx)); |
302 | 0 | MOZ_ASSERT(!aCache->GetWrapper(), |
303 | 0 | "You should probably not be using Wrap() directly; use " |
304 | 0 | "GetOrCreateDOMReflector instead"); |
305 | 0 |
|
306 | 0 | MOZ_ASSERT(ToSupportsIsOnPrimaryInheritanceChain(aObject, aCache), |
307 | 0 | "nsISupports must be on our primary inheritance chain"); |
308 | 0 |
|
309 | 0 | JS::Rooted<JSObject*> global(aCx, FindAssociatedGlobal(aCx, aObject->GetParentObject())); |
310 | 0 | if (!global) { |
311 | 0 | return false; |
312 | 0 | } |
313 | 0 | MOZ_ASSERT(JS_IsGlobalObject(global)); |
314 | 0 | MOZ_ASSERT(JS::ObjectIsNotGray(global)); |
315 | 0 |
|
316 | 0 | // That might have ended up wrapping us already, due to the wonders |
317 | 0 | // of XBL. Check for that, and bail out as needed. |
318 | 0 | aReflector.set(aCache->GetWrapper()); |
319 | 0 | if (aReflector) { |
320 | | #ifdef DEBUG |
321 | | AssertReflectorHasGivenProto(aCx, aReflector, aGivenProto); |
322 | | #endif // DEBUG |
323 | | return true; |
324 | 0 | } |
325 | 0 |
|
326 | 0 | JSAutoRealm ar(aCx, global); |
327 | 0 | JS::Handle<JSObject*> canonicalProto = GetProtoObjectHandle(aCx); |
328 | 0 | if (!canonicalProto) { |
329 | 0 | return false; |
330 | 0 | } |
331 | 0 | JS::Rooted<JSObject*> proto(aCx); |
332 | 0 | if (aGivenProto) { |
333 | 0 | proto = aGivenProto; |
334 | 0 | // Unfortunately, while aGivenProto was in the compartment of aCx |
335 | 0 | // coming in, we changed compartments to that of "parent" so may need |
336 | 0 | // to wrap the proto here. |
337 | 0 | if (js::GetContextCompartment(aCx) != js::GetObjectCompartment(proto)) { |
338 | 0 | if (!JS_WrapObject(aCx, &proto)) { |
339 | 0 | return false; |
340 | 0 | } |
341 | 0 | } |
342 | 0 | } else { |
343 | 0 | proto = canonicalProto; |
344 | 0 | } |
345 | 0 |
|
346 | 0 | BindingJSObjectCreator<mozilla::dom::CanvasCaptureMediaStream> creator(aCx); |
347 | 0 | creator.CreateObject(aCx, sClass.ToJSClass(), proto, aObject, aReflector); |
348 | 0 | if (!aReflector) { |
349 | 0 | return false; |
350 | 0 | } |
351 | 0 | |
352 | 0 | aCache->SetWrapper(aReflector); |
353 | 0 | creator.InitializationSucceeded(); |
354 | 0 |
|
355 | 0 | MOZ_ASSERT(aCache->GetWrapperPreserveColor() && |
356 | 0 | aCache->GetWrapperPreserveColor() == aReflector); |
357 | 0 | // If proto != canonicalProto, we have to preserve our wrapper; |
358 | 0 | // otherwise we won't be able to properly recreate it later, since |
359 | 0 | // we won't know what proto to use. Note that we don't check |
360 | 0 | // aGivenProto here, since it's entirely possible (and even |
361 | 0 | // somewhat common) to have a non-null aGivenProto which is the |
362 | 0 | // same as canonicalProto. |
363 | 0 | if (proto != canonicalProto) { |
364 | 0 | PreserveWrapper(aObject); |
365 | 0 | } |
366 | 0 |
|
367 | 0 | return true; |
368 | 0 | } |
369 | | |
370 | | const NativePropertyHooks sNativePropertyHooks[] = { { |
371 | | nullptr, |
372 | | nullptr, |
373 | | nullptr, |
374 | | { sNativeProperties.Upcast(), nullptr }, |
375 | | prototypes::id::CanvasCaptureMediaStream, |
376 | | constructors::id::CanvasCaptureMediaStream, |
377 | | MediaStream_Binding::sNativePropertyHooks, |
378 | | &DefaultXrayExpandoObjectClass |
379 | | } }; |
380 | | |
381 | | void |
382 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal) |
383 | 0 | { |
384 | 0 | JS::Handle<JSObject*> parentProto(MediaStream_Binding::GetProtoObjectHandle(aCx)); |
385 | 0 | if (!parentProto) { |
386 | 0 | return; |
387 | 0 | } |
388 | 0 | |
389 | 0 | JS::Handle<JSObject*> constructorProto(MediaStream_Binding::GetConstructorObjectHandle(aCx)); |
390 | 0 | if (!constructorProto) { |
391 | 0 | return; |
392 | 0 | } |
393 | 0 | |
394 | 0 | static bool sIdsInited = false; |
395 | 0 | if (!sIdsInited && NS_IsMainThread()) { |
396 | 0 | if (!InitIds(aCx, sNativeProperties.Upcast())) { |
397 | 0 | return; |
398 | 0 | } |
399 | 0 | sIdsInited = true; |
400 | 0 | } |
401 | 0 |
|
402 | 0 | JS::Heap<JSObject*>* protoCache = &aProtoAndIfaceCache.EntrySlotOrCreate(prototypes::id::CanvasCaptureMediaStream); |
403 | 0 | JS::Heap<JSObject*>* interfaceCache = &aProtoAndIfaceCache.EntrySlotOrCreate(constructors::id::CanvasCaptureMediaStream); |
404 | 0 | dom::CreateInterfaceObjects(aCx, aGlobal, parentProto, |
405 | 0 | &sPrototypeClass.mBase, protoCache, |
406 | 0 | nullptr, |
407 | 0 | constructorProto, &sInterfaceObjectClass.mBase, 0, nullptr, |
408 | 0 | interfaceCache, |
409 | 0 | sNativeProperties.Upcast(), |
410 | 0 | nullptr, |
411 | 0 | "CanvasCaptureMediaStream", aDefineOnGlobal, |
412 | 0 | nullptr, |
413 | 0 | false); |
414 | 0 | } |
415 | | |
416 | | JSObject* |
417 | | GetConstructorObject(JSContext* aCx) |
418 | 0 | { |
419 | 0 | return GetConstructorObjectHandle(aCx); |
420 | 0 | } |
421 | | |
422 | | } // namespace CanvasCaptureMediaStream_Binding |
423 | | |
424 | | |
425 | | |
426 | | } // namespace dom |
427 | | } // namespace mozilla |