Bug 1448734. Stop exposing Components in content XBL scopes. r=kmag

This commit is contained in:
Boris Zbarsky 2018-03-26 13:35:05 -04:00
Родитель a245fdf72d
Коммит 8ebd656d81
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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();
}