ff75b1f352e912542ca6d768194fad6af6f32f10: Bug 887334 - Enter a compartment in b2g-only unloading code. r=me CLOSED TREE
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 14:28:54 -0700 - rev 151254
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Enter a compartment in b2g-only unloading code. r=me CLOSED TREE
3c1303aea1115f09db859e832d53003cb0ad50b4: Backed out changeset 76e7ef98a9d1 (bug 867856) for jit-test failures.
Ryan VanderMeulen <ryanvm@gmail.com> - Wed, 17 Jul 2013 15:54:44 -0400 - rev 151253
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Backed out changeset 76e7ef98a9d1 (bug 867856) for jit-test failures. CLOSED TREE
8bd3aec0de20796a390f6f12d9368b27aae48b11: Bug 887334 - Reorder some bookkeeping and assert in setCompartment that both the old and new compartments are marked as entered. r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:55 -0700 - rev 151252
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Reorder some bookkeeping and assert in setCompartment that both the old and new compartments are marked as entered. r=luke
2e96be43cd12c5e842a9dc2b6c8b69b1a981aef6: Bug 887334 - Require cx->compartment() to be null when destroying a context. r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:54 -0700 - rev 151251
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Require cx->compartment() to be null when destroying a context. r=luke If it's non-null, that means we've got a JSAutoCompartment on the stack, which is going to run into trouble when it tries to restore the old compartment on the now-dead cx.
5427f4d376c46a78913784982ea85995dce9ea7a: Bug 887334 - Stop setting the compartment to defaultCompartmentObject_->compartment(). r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:54 -0700 - rev 151250
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Stop setting the compartment to defaultCompartmentObject_->compartment(). r=luke With this change, defaultCompartmentObject_ is just an opaque (though traced) piece of embedder state on the cx.
a1037583253f8da05f53bf03b54cfcc1d1ae5be4: Bug 887334 - Push a JSContext in nsGlobalWindow::SecurityCheckURL. r=gabor
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:54 -0700 - rev 151249
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Push a JSContext in nsGlobalWindow::SecurityCheckURL. r=gabor
7c93f74e004db9b6a11ad9b9b4202a893c719114: Bug 887334 - Conditionally enter a compartment in WorkerPrivate::DoRunLoop. r=mrbkap
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:54 -0700 - rev 151248
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Conditionally enter a compartment in WorkerPrivate::DoRunLoop. r=mrbkap
85bfca8bc62391d55b65e44f89c9ada313a00d06: Bug 887334 - Enter a compartment in indexedDB's ThreadLocalJSRuntime. r=bent
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:54 -0700 - rev 151247
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Enter a compartment in indexedDB's ThreadLocalJSRuntime. r=bent
9ddf00b075162269022d43ad8ccc77a0c371b79e: Bug 887334 - Fix JSAPI test harness to not fail when the initial compartment is null. r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:53 -0700 - rev 151246
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Fix JSAPI test harness to not fail when the initial compartment is null. r=luke I don't know why it's done this way, but it sure needs to change.
09a8607459c447424033028eca4c1859af0d4203: Bug 887334 - Miscellaneous JSAutoCompartments. r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:53 -0700 - rev 151245
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Miscellaneous JSAutoCompartments. r=luke
fcb33ae736077a7a4f21d4137735746e12af1e3a: Bug 887334 - Enter a compartment between manual calls to JS_{Save,Restore}FrameChain. r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:52 -0700 - rev 151244
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Enter a compartment between manual calls to JS_{Save,Restore}FrameChain. r=luke The stuff in nsXBLProtoImplMethod is doing the same thing, so let's just have it call into nsJSUtils.
4f4167826bc2e2ed20ea7a3bf53a345e1668313a: Bug 887334 - Add a JSAutoCompartment to AutoCxPusher. r=luke,gabor
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:52 -0700 - rev 151243
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Add a JSAutoCompartment to AutoCxPusher. r=luke,gabor This should hopefully take care of any cases where consumers expect to be in the default compartment.
d09d109a7e88f753da58e2e427bdbb7f5fea093a: Bug 887334 - Use the new AutoCompartment overload for the atoms compartment and remove AutoEnterAtomsCompartment. r=bhackett
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:52 -0700 - rev 151242
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Use the new AutoCompartment overload for the atoms compartment and remove AutoEnterAtomsCompartment. r=bhackett We have to do some temporary hackiness to deal with some of the new PJS work. This patch stays as true to the old world as possible, so that we can more easily backport it.
e8125c01b1b0e27bd4ca773053fb623b1dc18a0c: Bug 887334 - Don't rethrow in quickstubs if there's already an exception pending. r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:52 -0700 - rev 151241
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Don't rethrow in quickstubs if there's already an exception pending. r=luke
31d4bde6b786ebd637b8b93c3c48440630be449e: Bug 887334 - Add a JSCompartment* to AutoCompartment and use it in JS_NewGlobalObject. r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:52 -0700 - rev 151240
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Add a JSCompartment* to AutoCompartment and use it in JS_NewGlobalObject. r=luke This gets rid of the wonky setCompartment usage in that function.
957a80f3ddab52d2cd0a792e1988c930d8281037: Bug 887334 - Move faulty JSAutoRequest in initSelfHosting. r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:51 -0700 - rev 151239
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Move faulty JSAutoRequest in initSelfHosting. r=luke The call to JS_SetGlobalObject causes cx->compartment_ to be set to the self- hosting global, which means that the JSAutoCompartment picks up that compartment as the 'previous' compartment. So despite the attempt to restore things with JS_SetGlobalObject at the end of the function, the JSAutoCompartment destructor actually ends up leaving cx in the self-hosting global's compartment at the end of this function. Moving the JSAutoCompartment construction above the call to JS_SetGlobalObject fixes the problem.
8dc4e544f514c30a84620bc9cb3b925b32d964f6: Bug 887334 - Null-check compartment() in JS_GetGlobalForScopeChain(). r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:51 -0700 - rev 151238
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Null-check compartment() in JS_GetGlobalForScopeChain(). r=luke cx->global() assumes a non-null compartment(). When we fix up various bugs related to being in a compartment when we shouldn't be, we start to crash here. Fix it.
3b1bcf086e023b0b1348f44b7179d689f568f89c: Bug 887334 - Rejigger the string manipulation in OnJSContextNew to avoid depending on being in a compartment. r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:51 -0700 - rev 151237
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Rejigger the string manipulation in OnJSContextNew to avoid depending on being in a compartment. r=luke The current code makes calls that assume (implicitly, via assertions) that |cx| is in a compartment, which isn't a valid assumption going forward.
a603feefe7d3edd9cd78c9db7afdb0ead8a65bf9: Bug 887334 - Remove AutoSwitchCompartment. r=luke
Bobby Holley <bobbyholley@gmail.com> - Wed, 17 Jul 2013 11:53:50 -0700 - rev 151236
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 887334 - Remove AutoSwitchCompartment. r=luke This thing is...yikes.
76e7ef98a9d1d4dad2eaade2a07ef022ee123c9e: Bug 867856 - Fix intermittent timeout of bug743094.js test case. r=h4writer
Nicolas B. Pierron <nicolas.b.pierron@mozilla.com> - Wed, 17 Jul 2013 11:51:19 -0700 - rev 151235
Push 2859 by akeybl@mozilla.com at Mon, 16 Sep 2013 19:14:59 +0000
Bug 867856 - Fix intermittent timeout of bug743094.js test case. r=h4writer
(0) -100000 -30000 -10000 -3000 -1000 -300 -100 -50 -20 +20 +50 +100 +300 +1000 +3000 +10000 +30000 +100000 +300000 tip