зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
77a1ce457f
Коммит
113446bdac
|
@ -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 };
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче