[Webkit-unassigned] [Bug 76039] New: HTMLInputElement::setDefaultName issues
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 11 01:13:34 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=76039
Summary: HTMLInputElement::setDefaultName issues
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Minor
Priority: P3
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: tkent at chromium.org
CC: darin at apple.com
https://bugs.webkit.org/show_bug.cgi?id=45719#c22
> In a mostly unrelated note, when looking at this I noticed a peculiarly-named public function, setDefaultName, that is called only by the HTMLIsIndexElement constructor. We should probably make that function protected. And further, it’s only safe to call that function if the object is not a checkbox, so we might want to assert that. And it’s only correct to call it on an object that doesn’t already have a name, so we might want to assert that m_name is null. And finally, this doesn’t actually work correctly if a name is added and then subsequently removed from the isindex element. That’s probably unimportant because of how rare it is to use the isindex element at all, but annoying that it’s incorrect. That’s the reason the function name is so bad: It doesn’t actually set a default name, just sets an initial name.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list