From 113446bdacaafa07b26ae3db3adcdef64c575d35 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Wed, 18 Jul 2012 13:51:28 +0200 Subject: [PATCH] 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. --- browser/components/sessionstore/test/browser_461743_sample.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/components/sessionstore/test/browser_461743_sample.html b/browser/components/sessionstore/test/browser_461743_sample.html index e2d41634e683..12294f77c28d 100644 --- a/browser/components/sessionstore/test/browser_461743_sample.html +++ b/browser/components/sessionstore/test/browser_461743_sample.html @@ -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 };