WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
94340
Remove RefPtr<Node>s from TextFieldInputType
https://bugs.webkit.org/show_bug.cgi?id=94340
Summary
Remove RefPtr<Node>s from TextFieldInputType
Kentaro Hara
Reported
2012-08-17 05:44:35 PDT
To avoid reference cycles of RefPtr<Node>s, we want to remove unnecessary RefPtr<Node>s. The rationale is described in
bug 94324
. TextFieldInputType::m_container, TextFieldInputType::m_innerBlock, TextFieldInputType::m_innerText, TextFieldInputType::m_placeholder, TextFieldInputType::m_speechButton and TextFieldInputType::m_innerSpinButton do not need to be RefPtr<Node>s, because they are guaranteed to point to the shadow DOM tree of the TextFieldInputType node, which is guaranteed to exist in the subtree of the TextFieldInputType node.
Attachments
Patch
(8.88 KB, patch)
2012-08-17 05:46 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2012-08-17 05:46:58 PDT
Created
attachment 159105
[details]
Patch
Kent Tamura
Comment 2
2012-09-20 21:00:28 PDT
I'm very afraid this change causes security regressions. Text field code is really complex. So, I won't set r+ unless
Bug 87815
is fixed and the patch uses ID access instead of raw pointers.
Kentaro Hara
Comment 3
2012-09-20 21:02:30 PDT
Comment on
attachment 159105
[details]
Patch OK. I'll clear r? because I also don't have a strong intention to land this patch.
Ahmad Saleem
Comment 4
2022-08-17 04:41:56 PDT
I can see from Webkit Github source that this patch didn't landed, some examples below:
https://github.com/WebKit/WebKit/blob/af43ca312063d6ce476c3eb23c3755919916001d/Source/WebCore/html/TextFieldInputType.cpp#L78
https://github.com/WebKit/WebKit/blob/af43ca312063d6ce476c3eb23c3755919916001d/Source/WebCore/html/TextFieldInputType.cpp#L337
https://github.com/WebKit/WebKit/blob/af43ca312063d6ce476c3eb23c3755919916001d/Source/WebCore/html/TextFieldInputType.cpp#L356
rniwa@webkit.org
- Is this needed now or this can be "RESOLVED LATER"? Thanks!
Ryosuke Niwa
Comment 5
2022-08-17 12:37:48 PDT
We're not gonna do this.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug