Closed Bug 759364 Opened 12 years ago Closed 12 years ago

Run the Silverlight plugin OOP in 32-bit mode on OS X


(Core Graveyard :: Plug-ins, defect)

Not set


(firefox14+ fixed, firefox15+ fixed, firefox16 fixed)

Tracking Status
firefox14 + fixed
firefox15 + fixed
firefox16 --- fixed


(Reporter: smichaud, Assigned: smichaud)




(1 file)

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.
Assignee: nobody → smichaud
Blocks: 758931
Attached patch FixSplinter Review
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)
Attachment #628111 - Flags: review?(joshmoz) → review+
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
Comment on attachment 628111 [details] [diff] [review]

[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?
See bug 764385.
See Also: → 764385
Comment on attachment 628111 [details] [diff] [review]

[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+
Target Milestone: mozilla15 → mozilla14
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.