Bug 97710

Summary: REGRESSION(r129521): Broke autocomplete on enter_bug.cgi (Requested by abarth on #webkit).
Product: WebKit Reporter: WebKit Review Bot <webkit.review.bot>
Component: New BugsAssignee: WebKit Review Bot <webkit.review.bot>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, galpeter
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 66752    
Attachments:
Description Flags
ROLLOUT of r129521 none

WebKit Review Bot
Reported 2012-09-26 11:41:00 PDT
http://trac.webkit.org/changeset/129521 broke the build: Broke autocomplete on enter_bug.cgi (Requested by abarth on #webkit). This is an automatic bug report generated by the sheriff-bot. If this bug report was created because of a flaky test, please file a bug for the flaky test (if we don't already have one on file) and dup this bug against that bug so that we can track how often these flaky tests case pain. "Only you can prevent forest fires." -- Smokey the Bear
Attachments
ROLLOUT of r129521 (1.77 KB, patch)
2012-09-26 11:41 PDT, WebKit Review Bot
no flags
WebKit Review Bot
Comment 1 2012-09-26 11:41:36 PDT
Created attachment 165839 [details] ROLLOUT of r129521 Any committer can land this patch automatically by marking it commit-queue+. The commit-queue will build and test the patch before landing to ensure that the rollout will be successful. This process takes approximately 15 minutes. If you would like to land the rollout faster, you can use the following command: webkit-patch land-attachment ATTACHMENT_ID where ATTACHMENT_ID is the ID of this attachment.
Adam Barth
Comment 2 2012-09-26 11:42:25 PDT
Comment on attachment 165839 [details] ROLLOUT of r129521 View in context: https://bugs.webkit.org/attachment.cgi?id=165839&action=review > Websites/bugs.webkit.org/committers-autocomplete.js:401 > - for (var i = 0; i < EMAIL_INPUTS.length; i++) { > - var field = document.getElementById(EMAIL_INPUTS[i]); > - if (field) > - field.addEventListener("focus", function(e) { enableAutoComplete(e.target); }, false); > - } > + document.addEventListener('focusin', function(e) { > + for (var i = 0; i < EMAIL_INPUTS.length; i++) { > + if (e.target.name == EMAIL_INPUTS[i]) { > + enableAutoComplete(e.target); > + break; > + } > + } > + }, false); The problem is you changed this from looking at the "name" to looking at the "id". On enter_bug, we have a name but no ID.
WebKit Review Bot
Comment 3 2012-09-26 11:47:21 PDT
Comment on attachment 165839 [details] ROLLOUT of r129521 Clearing flags on attachment: 165839 Committed r129677: <http://trac.webkit.org/changeset/129677>
WebKit Review Bot
Comment 4 2012-09-26 11:47:24 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.