Closed
Bug 664821
Opened 14 years ago
Closed 14 years ago
Compartment mismatch in nsFrameMessageManager::ReceiveMessage
Categories
(Core :: IPC, defect)
Core
IPC
Tracking
()
RESOLVED
FIXED
mozilla7
| Tracking | Status | |
|---|---|---|
| firefox7 | --- | fixed |
People
(Reporter: jdm, Assigned: jdm)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
|
3.89 KB,
patch
|
mrbkap
:
review+
jst
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
There are two problems:
1. we're misusing WrapNative, causing compartment errors when using the global message manager
2. in bootstrapped addons, we're creating the objects array in a sandbox, so the compartment is not the chrome one. Wrapping is required.
| Assignee | ||
Comment 1•14 years ago
|
||
Attachment #539884 -
Flags: review?(mrbkap)
Updated•14 years ago
|
Attachment #539884 -
Flags: review?(mrbkap) → review+
| Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 3•14 years ago
|
||
Assignee: nobody → josh
Status: NEW → RESOLVED
Closed: 14 years ago
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Version: unspecified → Trunk
| Assignee | ||
Comment 4•14 years ago
|
||
Comment on attachment 539884 [details] [diff] [review]
Use WrapNative correctly and wrap objects array to avoid compartment errors.
This is a correctness issue that can bite bootstrapped addons, causing a crash. This patch fixes that crash.
Attachment #539884 -
Flags: approval-mozilla-aurora?
Comment 5•14 years ago
|
||
Backed out:
http://hg.mozilla.org/mozilla-central/rev/97dbe5dc67c8
http://hg.mozilla.org/mozilla-central/rev/00a5700edf6b
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 6•14 years ago
|
||
Comment on attachment 539884 [details] [diff] [review]
Use WrapNative correctly and wrap objects array to avoid compartment errors.
Clearing a-m-a? for now.
Attachment #539884 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 7•14 years ago
|
||
I am ashamed that you had to review the previous patch which was blatantly wrong. Then again, you did r+ it :)
Attachment #541539 -
Flags: review?(mrbkap)
| Assignee | ||
Updated•14 years ago
|
Attachment #539884 -
Attachment is obsolete: true
Comment 8•14 years ago
|
||
Comment on attachment 541539 [details] [diff] [review]
Use WrapNative correctly and wrap objects array to avoid compartment errors.
Er, oops!
Attachment #541539 -
Flags: review?(mrbkap) → review+
| Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 10•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 11•14 years ago
|
||
Comment on attachment 541539 [details] [diff] [review]
Use WrapNative correctly and wrap objects array to avoid compartment errors.
This is a correctness issue that can bite bootstrapped addons, causing a crash. This patch fixes that crash.
Attachment #541539 -
Flags: approval-mozilla-aurora?
Updated•14 years ago
|
Attachment #541539 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 12•14 years ago
|
||
Updated•14 years ago
|
status-firefox7:
--- → fixed
Comment 13•14 years ago
|
||
Can anyone please help me with the name of an add-on this issue reproduced with and some STRs?
Thank you
| Assignee | ||
Comment 14•14 years ago
|
||
http://starkravingfinkle.org/blog/2011/03/cloud-printer-print-from-firefox-mobile/ I received the crash with the cloud printing addon.
Comment 15•14 years ago
|
||
This issue has been verified as fixed on:
Mozilla /5.0 (Android;Linux armv7l;rv:7.0) Gecko/20110824 Firefox/7.0 Fennec/7.0
Device: LG Optimus 2X (Android 2.2).
The add-on from comment #14 was installed and used and no crash reproduced.
Shouldn't this issue also be verified on desktop? Just in case, can anyone please help me with the name of an add-on this issue reproduced with on desktop?
You need to log in
before you can comment on or make changes to this bug.
Description
•