Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Issue 295603002: Use toWebTextAreaElement in GetTextWebTextAreaElement (Closed)

Created:
6 years, 7 months ago by keishi
Modified:
6 years, 7 months ago
Reviewers:
tkent, Ilya Sherman
CC:
chromium-reviews, benquan, jam, browser-components-watch_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Use toWebTextAreaElement in GetTextWebTextAreaElement Elements may have the tag name "textarea" but could not be html textarea element. BUG=358235

Patch Set 1 #

Patch Set 2 : removed hasTagName #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M components/autofill/content/renderer/page_click_tracker.cc View 1 1 chunk +4 lines, -2 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
keishi
Blink side: https://codereview.chromium.org/287313003/
6 years, 7 months ago (2014-05-19 05:25:56 UTC) #1
Ilya Sherman
LGTM, thanks! There are other instances of hasTagName in the Autofill code: [ https://code.google.com/p/chromium/codesearch#search/&q=hastagname%20file:autofill ]. ...
6 years, 7 months ago (2014-05-19 08:41:21 UTC) #2
tkent
On 2014/05/19 08:41:21, Ilya Sherman wrote: > There are other instances of hasTagName in the ...
6 years, 7 months ago (2014-05-19 08:47:00 UTC) #3
Ilya Sherman
On 2014/05/19 08:47:00, tkent wrote: > On 2014/05/19 08:41:21, Ilya Sherman wrote: > > There ...
6 years, 7 months ago (2014-05-19 09:19:45 UTC) #4
tkent
On 2014/05/19 09:19:45, Ilya Sherman wrote: > > We have WebElement::hasHTMLTagName instead. > > Aha. ...
6 years, 7 months ago (2014-05-19 10:06:24 UTC) #5
keishi
6 years, 7 months ago (2014-05-20 14:56:14 UTC) #6
On 2014/05/19 09:19:45, Ilya Sherman wrote:
> On 2014/05/19 08:47:00, tkent wrote:
> > On 2014/05/19 08:41:21, Ilya Sherman wrote:
> > > There are other instances of hasTagName in the Autofill code: [
> > >
> >
>
https://code.google.com/p/chromium/codesearch#search/&q=hastagname%20file:aut...
> > > ].  Should all of these be updated as well?  Should hasTagName() be
removed
> > from
> > > the Web* API layer entirely?
> > 
> > Yes and yes.
> > We have WebElement::hasHTMLTagName instead.
> 
> Aha.  Hmm, does it make sense to use hasHTMLTagName for this CL rather than
> introducing a new toWebTextArea() method?
> 
> I've filed a bug for moving the rest of the Autofill code to use the correct
> method: [ https://code.google.com/p/chromium/issues/detail?id=374725 ].  I've
> tentatively assigned it to myself, but am not sure how soon I'll be able to
work
> on it.  Feel free to snag it if you'd like to! :)

We decided not to add toWebTextAreaElement so I've created another CL.
https://codereview.chromium.org/293993004/

Powered by Google App Engine
This is Rietveld 408576698