Bug 755631 - Remove extraneous exceptions in Cross Origin Wrappers. r=mrbkap
authordev <dev.akhawe@gmail.com>
Sat, 26 May 2012 09:33:52 -0400
changeset 97308 ae9977a419c997a7e571d95dd496f5332d6214c2
parent 97307 9dc532ce5de7a93cba1d134291035d6096f48bbb
child 97309 6de6c3de450d471d2c4117e6cd339c2aef556934
push id1439
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 20:19:22 +0000
treeherdermozilla-aurora@ea74834dccd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs755631
milestone15.0a1
Bug 755631 - Remove extraneous exceptions in Cross Origin Wrappers. r=mrbkap
js/xpconnect/wrappers/AccessCheck.cpp
--- a/js/xpconnect/wrappers/AccessCheck.cpp
+++ b/js/xpconnect/wrappers/AccessCheck.cpp
@@ -115,24 +115,16 @@ static bool
 IsPermitted(const char *name, JSFlatString *prop, bool set)
 {
     size_t propLength;
     const jschar *propChars =
         JS_GetInternedStringCharsAndLength(JS_FORGET_STRING_FLATNESS(prop), &propLength);
     if (!propLength)
         return false;
     switch (name[0]) {
-        NAME('D', "DOMException",
-             PROP('c', RW("code"))
-             PROP('m', RW("message"))
-             PROP('n', RW("name"))
-             PROP('r', RW("result"))
-             PROP('t', R("toString")))
-        NAME('E', "Error",
-             PROP('m', R("message")))
         NAME('H', "History",
              PROP('b', R("back"))
              PROP('f', R("forward"))
              PROP('g', R("go")))
         NAME('L', "Location",
              PROP('h', W("hash") W("href"))
              PROP('r', R("replace")))
         NAME('W', "Window",