Closed Bug 865569 Opened 12 years ago Closed 12 years ago

Poison nsView

Categories

(Core :: Web Painting, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23
Tracking Status
firefox22 --- fixed
firefox23 --- fixed
firefox-esr17 --- wontfix
b2g18 --- wontfix

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: sec-want, Whiteboard: [adv-main22+])

Attachments

(1 file, 1 obsolete file)

This is to mitigate crashes like bug 850571 to some degree, and to make the crash more likely to occur so we can get STR.
Attached patch v1 (obsolete) — Splinter Review
This should help, but isn't bullet proof since we still allocate nsView from the general heap. Putting it in the pres arena would be ideal, but would be more work since we need to have the shell in all the new/delete places. https://tbpl.mozilla.org/?tree=Try&rev=02830a221ae6
Comment on attachment 741683 [details] [diff] [review] v1 I tried to allocate nsView from the pres shell arena but that didn't work because we create the root view before the shell in some cases. And I suspect the root view may outlive the shell too. Anyway, this patch should help a little bit.
Attachment #741683 - Flags: review?(roc)
Attached patch v2Splinter Review
No need for the MOZ_MALLOC conditionals -- just invoke operator delete explicitly to deallocate. https://tbpl.mozilla.org/?tree=Try&rev=6bd5129c87e6
Attachment #741683 - Attachment is obsolete: true
Attachment #741683 - Flags: review?(roc)
Attachment #742693 - Flags: review?(roc)
Comment on attachment 742693 [details] [diff] [review] v2 This is to mitigate crashes like bug 850571 to some degree, and to make that crash more likely to occur so we can get STR. Low risk.
Attachment #742693 - Flags: approval-mozilla-beta?
Attachment #742693 - Flags: approval-mozilla-aurora?
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Comment on attachment 742693 [details] [diff] [review] v2 Approving this only on aurora at this point to see if it helps get the needed STR here. Holding off on beta approval as I do not want to a sudden crash spike in our final beta's while we are still getting results from this landing on aurora which may help understand the problem and get a low risk safe patch in time for Fx21 final Beta build(going to build next Monday 5/6) . We will request users/QA to test the aurora build to see if they crash any sooner which may help here.
Attachment #742693 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Blocks: 868619
Comment on attachment 742693 [details] [diff] [review] v2 I was holding off approval per comment #7.But given we have not see any STR and also as Bug 850571 is no longer a top-crasher, lets not rush this in our final beta. Bug 868619 , is the tracking bug if we want to backout nsView poisoning on aurora/trunk.
Attachment #742693 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
Whiteboard: [adv-main22+]
Group: core-security
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: