Closed Bug 759364 Opened 9 years ago Closed 9 years ago
Run the Silverlight plugin OOP in 32-bit mode on OS X
This bug is spun off from bug 753248 comment #8. When building on OS X 10.7 and up, the linker by default prevents code execution on the heap. But the Silverlight plugin does execute code on the heap, and crashes on startup when heap execution is forbidden. In the patch for bug 753248 we've stopped the 10.7-and-up linker from preventing heap execution in the plugin-container process, but not in the main process. We don't want to lose the protection against heap execution in the main process (where most of our code runs), but think it's a reasonable compromise to allow it in the plugin-container process. (Chrome behaves similarly -- see bug 753248 comment #50.) This means that Silverlight doesn't crash in 64-bit mode (where it runs out of process). But currently Silverlight defaults to running in-process in 32-bit mode on the Mac, so it always crashes (and brings down the browser) in 32-bit mode. Though we don't really support running in 32-bit mode, we gain flexibility by making Silverlight run out-of-process in 32-bit mode. After some testing, I'll post a patch that does this.
I made a build with this patch on OS X 10.7, then tested it in 32-bit mode with the STR from bug 753248 comment #3. I saw no problems. Josh, can you think of reasons not to do this?
Attachment #628111 - Flags: review?(joshmoz)
Comment on attachment 628111 [details] [diff] [review] Fix Landed on mozilla-inbound: http://hg.mozilla.org/integration/mozilla-inbound/rev/fcbaab8ad541
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
Comment on attachment 628111 [details] [diff] [review] Fix [Approval Request Comment] Bug caused by (feature/regressing bug #): Starting to do beta builds on 10.7. User impact if declined: Large numbers of crashes in our 14-branch betas. Testing completed (on m-c, etc.): Currently on trunk and aurora, with no reported problems Risk to taking this patch (and alternatives if risky): Minimal risk String or UUID changes made by this patch: none
Attachment #628111 - Flags: approval-mozilla-beta?
Comment on attachment 628111 [details] [diff] [review] Fix [Triage Comment] Glad there's no problems on trunk/aurora - go ahead and push to beta.
Attachment #628111 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment on attachment 628111 [details] [diff] [review] Fix Landed on mozilla-beta: http://hg.mozilla.org/releases/mozilla-beta/rev/f72a8cf9834d
Target Milestone: mozilla15 → mozilla14
You need to log in before you can comment on or make changes to this bug.