Bug 66752

Summary: committers-autocomplete.js works only with WebKit based browsers
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: Tools / TestsAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, galpeter, ossy, rniwa, tony, webkit.review.bot, zarvai
Priority: P4    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 97710    
Bug Blocks:    
Attachments:
Description Flags
WIP patch
none
proposed modification
rniwa: review+
updated patch
rniwa: review+
updated patch #2
none
Fixes the bug
none
Real patch none

Csaba Osztrogonác
Reported 2011-08-23 02:44:12 PDT
Committers automplete tool doesn't work with other browsers: Firefox, IE, Opera
Attachments
WIP patch (1.12 KB, patch)
2011-08-23 03:04 PDT, Csaba Osztrogonác
no flags
proposed modification (1.70 KB, patch)
2012-09-18 07:44 PDT, Peter Gal
rniwa: review+
updated patch (1.66 KB, patch)
2012-09-24 07:47 PDT, Peter Gal
rniwa: review+
updated patch #2 (1.65 KB, patch)
2012-09-25 00:26 PDT, Peter Gal
no flags
Fixes the bug (1.51 KB, patch)
2012-11-06 01:44 PST, Ryosuke Niwa
no flags
Real patch (1.68 KB, patch)
2012-11-06 01:47 PST, Ryosuke Niwa
no flags
Csaba Osztrogonác
Comment 1 2011-08-23 03:04:38 PDT
Created attachment 104807 [details] WIP patch I played a little bit with it. This WIP patch made FF and Chrome happy, but unfortunately Opera is still sad because of a security problem. (Maybe because of XHR.) And IE is still sad, I don't know why.
Peter Gal
Comment 2 2012-09-18 07:44:59 PDT
Created attachment 164558 [details] proposed modification Two things to notice here: 1) using 'focus' instead of 'focusin'. On FF there is no 'focusin' event. 2) adding event listener only to the given inputs, not to the base document. This made FF happy :) will try to work on IE and Opera.
Ryosuke Niwa
Comment 3 2012-09-21 17:36:03 PDT
Comment on attachment 164558 [details] proposed modification View in context: https://bugs.webkit.org/attachment.cgi?id=164558&action=review > Websites/bugs.webkit.org/committers-autocomplete.js:394 > + function focusHandler(e) { I would have used anonymous function here.
Ryosuke Niwa
Comment 4 2012-09-21 17:36:50 PDT
That is, I would have done function () {~} in addEventListener.
Peter Gal
Comment 5 2012-09-24 07:39:22 PDT
(In reply to comment #4) > That is, I would have done function () {~} in addEventListener. ok I'll update it.
Peter Gal
Comment 6 2012-09-24 07:47:29 PDT
Created attachment 165380 [details] updated patch
Ryosuke Niwa
Comment 7 2012-09-24 09:56:40 PDT
Comment on attachment 165380 [details] updated patch View in context: https://bugs.webkit.org/attachment.cgi?id=165380&action=review > Websites/bugs.webkit.org/committers-autocomplete.js:398 > + if (field) { > + field.addEventListener("focus", function(e) { enableAutoComplete(e.target); }, false); > } No curly brackets around single statement.
Ryosuke Niwa
Comment 8 2012-09-24 22:22:13 PDT
Do you want me to land the patch? If so, please re-upload the patch after a addressing my comment and set cq? as well as r?.
Peter Gal
Comment 9 2012-09-25 00:26:54 PDT
Created attachment 165538 [details] updated patch #2 "Should be okay now" (TM)
WebKit Review Bot
Comment 10 2012-09-25 10:07:43 PDT
Comment on attachment 165538 [details] updated patch #2 Clearing flags on attachment: 165538 Committed r129521: <http://trac.webkit.org/changeset/129521>
WebKit Review Bot
Comment 11 2012-09-25 10:07:47 PDT
All reviewed patches have been landed. Closing bug.
Tony Chang
Comment 12 2012-09-26 11:12:33 PDT
I'm no longer getting email completion for the CC field on the "new bug" form.
WebKit Review Bot
Comment 13 2012-09-26 11:41:05 PDT
Re-opened since this is blocked by 97710
Tony Chang
Comment 14 2012-09-26 11:48:47 PDT
On IRC, the cause of the bug is that enter_bug.cgi doesn't set the ID of the CC <input> and the new code uses getElementById. You could use a query selector like "input[name=" + EMAIL_INPUTS[i] + "]" instead of getElementById.
Adam Barth
Comment 15 2012-09-26 11:53:21 PDT
(In reply to comment #14) > On IRC, the cause of the bug is that enter_bug.cgi doesn't set the ID of the CC <input> and the new code uses getElementById. > > You could use a query selector like "input[name=" + EMAIL_INPUTS[i] + "]" instead of getElementById. Or just http://www.w3schools.com/jsref/met_doc_getelementsbyname.asp
Csaba Osztrogonác
Comment 16 2012-11-06 01:34:06 PST
ping? :)
Ryosuke Niwa
Comment 17 2012-11-06 01:44:23 PST
Created attachment 172520 [details] Fixes the bug
Ryosuke Niwa
Comment 18 2012-11-06 01:47:50 PST
Created attachment 172524 [details] Real patch Something went awfully wrong in the previous patch.
Csaba Osztrogonác
Comment 19 2012-11-06 02:24:49 PST
Comment on attachment 172524 [details] Real patch LGTM, r=me. I'll land it manually, because CQ is very slow.
Csaba Osztrogonác
Comment 20 2012-11-06 02:26:33 PST
Comment on attachment 172524 [details] Real patch Clearing flags on attachment: 172524 Committed r133576: <http://trac.webkit.org/changeset/133576>
Csaba Osztrogonác
Comment 21 2012-11-06 02:26:39 PST
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.