зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1448734. Stop exposing Components in content XBL scopes. r=kmag
This commit is contained in:
Родитель
a245fdf72d
Коммит
8ebd656d81
|
@ -249,7 +249,7 @@ XPCWrappedNativeScope::EnsureContentXBLScope(JSContext* cx)
|
|||
// same-origin Xrays.
|
||||
SandboxOptions options;
|
||||
options.wantXrays = false;
|
||||
options.wantComponents = true;
|
||||
options.wantComponents = false;
|
||||
options.proto = global;
|
||||
options.sameZoneAs = global;
|
||||
options.isContentXBLScope = true;
|
||||
|
|
|
@ -65,7 +65,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=795275
|
|||
getWin('frame2').touchInterfaces();
|
||||
getWin('frame4').touchComponents();
|
||||
getWin('frame4').touchInterfaces();
|
||||
// This shouldn't warn.
|
||||
// This should warn twice.
|
||||
getWin('frame5').touchViaXBL();
|
||||
|
||||
// Warnings are dispatched async, so stick ourselves at the end of the event
|
||||
|
@ -75,7 +75,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=795275
|
|||
|
||||
function done() {
|
||||
gConsoleService.unregisterListener(gListener);
|
||||
is(gWarnings, 3, "Got the right number of warnings");
|
||||
is(gWarnings, 5, "Got the right number of warnings");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче