Bug 843489 - Make initProgressEvent() [noscript]. r=smaug
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Sat, 23 Feb 2013 09:14:35 +0900
changeset 122699 64d47c0e35a89e9b2e10c79edcb0c9ef2b18aaf1
parent 122698 3d74e00b4f4f63fbf3cc414cc5f0e5547d210775
child 122700 2e3a491f363128d3409ee6624bd554ec6bd35b8b
push id23447
push userVYV03354@nifty.ne.jp
push dateSat, 23 Feb 2013 00:14:56 +0000
treeherdermozilla-inbound@64d47c0e35a8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs843489
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 843489 - Make initProgressEvent() [noscript]. r=smaug
content/base/test/test_XHR_onuploadprogress.html
dom/interfaces/events/nsIDOMProgressEvent.idl
--- a/content/base/test/test_XHR_onuploadprogress.html
+++ b/content/base/test/test_XHR_onuploadprogress.html
@@ -23,18 +23,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 var called = false;
 function uploadprogress()
 {
   called = true;
 }
 
 var xhr = new XMLHttpRequest();
 xhr.upload.onprogress = uploadprogress;
-var event = document.createEvent("ProgressEvent");
-event.initProgressEvent("progress", false, false, false, false, 0);
+var event = new ProgressEvent("progress");
 xhr.upload.dispatchEvent(event);
 ok(called,
    "XMLHttpRequest.upload.onprogress sets upload progress event listener");
 
 
 </script>
 </pre>
 </body>
--- a/dom/interfaces/events/nsIDOMProgressEvent.idl
+++ b/dom/interfaces/events/nsIDOMProgressEvent.idl
@@ -11,16 +11,17 @@
  */
 
 [scriptable, builtinclass, uuid(e0682338-4c3f-4d3a-9487-d7492ea76335)]
 interface nsIDOMProgressEvent : nsIDOMEvent
 {
   readonly attribute boolean lengthComputable;
   readonly attribute unsigned long long loaded;
   readonly attribute unsigned long long total;
+  [noscript]
   void initProgressEvent(in DOMString typeArg,
                          in boolean canBubbleArg,
                          in boolean cancelableArg,
                          in boolean lengthComputableArg,
                          in unsigned long long loadedArg,
                          in unsigned long long totalArg);
 };