Bug 774245 - Re-implement moz_bug_r_a4 trickery. r=mrbkap

In the next patch, we drop support for lookupMethod for location objects, since the security policy there is tricky and location objects are already unshadowable Xray wrappers.
This commit is contained in:
Bobby Holley 2012-07-18 13:51:28 +02:00
parent 217bf3edb0
commit 447940c906

View File

@ -25,7 +25,7 @@
return flip++ == 0 ? chromeUrl : exploitUrl;
};
var href = Components.lookupMethod(frames[1].location, "href");
var href = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(frames[1].location), "href").get;
var loadChrome = { handleEvent: href };
var loadExploit = { handleEvent: href };