Bug 1406146 - Use ShellWindowProxy in jsshell by default. r=jandem,jorendorff

Depends on D26839

Differential Revision: https://phabricator.services.mozilla.com/D26840

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ted Campbell 2019-04-17 16:07:14 +00:00
parent f8db31cd5f
commit 1f6ea6e5b6

View File

@ -4058,7 +4058,7 @@ static void WorkerMain(WorkerInput* input) {
SetStandardRealmOptions(realmOptions);
RootedObject global(cx, NewGlobalObject(cx, realmOptions, nullptr,
ShellGlobalKind::GlobalObject));
ShellGlobalKind::WindowProxy));
if (!global) {
break;
}
@ -6161,7 +6161,7 @@ static bool NewGlobal(JSContext* cx, unsigned argc, Value* vp) {
JS::RealmOptions options;
JS::RealmCreationOptions& creationOptions = options.creationOptions();
JS::RealmBehaviors& behaviors = options.behaviors();
ShellGlobalKind kind = ShellGlobalKind::GlobalObject;
ShellGlobalKind kind = ShellGlobalKind::WindowProxy;
SetStandardRealmOptions(options);
@ -10740,7 +10740,7 @@ static int Shell(JSContext* cx, OptionParser* op, char** envp) {
JS::RealmOptions options;
SetStandardRealmOptions(options);
RootedObject glob(
cx, NewGlobalObject(cx, options, nullptr, ShellGlobalKind::GlobalObject));
cx, NewGlobalObject(cx, options, nullptr, ShellGlobalKind::WindowProxy));
if (!glob) {
return 1;
}