RESOLVED FIXED 94338
Remove RefPtr from HTMLTextAreaElement::m_placeholder
https://bugs.webkit.org/show_bug.cgi?id=94338
Summary Remove RefPtr from HTMLTextAreaElement::m_placeholder
Kentaro Hara
Reported 2012-08-17 05:18:10 PDT
To avoid reference cycles of RefPtr<Node>s, we want to remove unnecessary RefPtr<Node>s. The rationale is described in bug 94324. HTMLTextAreaElement::m_placeholder does not need to be a RefPtr<Node>, because it is guaranteed to point to a shadow DOM tree of the HTMLTextAreaElement node, which is guaranteed to exist in the subtree of the HTMLTextAreaElement node.
Attachments
Patch (4.01 KB, patch)
2012-08-17 05:20 PDT, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2012-08-17 05:20:20 PDT
Abhishek Arya
Comment 2 2012-08-22 13:58:22 PDT
Please do check trac.webkit.org for history on who added the refptr. if it a security guy, then best to just run the layout test they added under libgmalloc/asan. we don't wanna regress on security :(:(
Kentaro Hara
Comment 3 2012-08-22 19:30:56 PDT
(In reply to comment #2) > Please do check trac.webkit.org for history on who added the refptr. if it a security guy, then best to just run the layout test they added under libgmalloc/asan. we don't wanna regress on security :(:( It's added by tkent at r90971. It looks like it's not added for a security issue. (Although I believe this patch is safe and will make reference-cycle reasoning simple, I'm not strongly intending to land this patch.)
Kent Tamura
Comment 4 2012-08-24 02:52:37 PDT
Comment on attachment 159096 [details] Patch Probably ok
WebKit Review Bot
Comment 5 2012-08-24 03:08:27 PDT
Comment on attachment 159096 [details] Patch Clearing flags on attachment: 159096 Committed r126567: <http://trac.webkit.org/changeset/126567>
WebKit Review Bot
Comment 6 2012-08-24 03:08:30 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.