Changeset 69464 in webkit


Ignore:
Timestamp:
Oct 9, 2010 9:17:05 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-10-09 Adam Barth <abarth@webkit.org>

Reviewed by Alexey Proskuryakov.

Exception in committers-autocomplete in Firefox
https://bugs.webkit.org/show_bug.cgi?id=47456

Remove dependency on a WebKit-only quirk. IMHO, this quirk is bad for
the long-term health of the web, but that's a discussion for another
patch.

  • committers-autocomplete.js:
Location:
trunk/BugsSite
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BugsSite/ChangeLog

    r69434 r69464  
     12010-10-09  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        Exception in committers-autocomplete in Firefox
     6        https://bugs.webkit.org/show_bug.cgi?id=47456
     7
     8        Remove dependency on a WebKit-only quirk.  IMHO, this quirk is bad for
     9        the long-term health of the web, but that's a discussion for another
     10        patch.
     11
     12        * committers-autocomplete.js:
     13
    1142010-10-08  Adam Barth  <abarth@webkit.org>
    215
  • trunk/BugsSite/committers-autocomplete.js

    r68506 r69464  
    278278                selectItem(getIndex(e.target));
    279279                e.preventDefault();
    280             });
     280            }, false);
    281281
    282282            menu.addEventListener('mouseup', function(e) {
    283283                if (m_selectedIndex == getIndex(e.target))
    284284                    insertSelectedItem();
    285             });
     285            }, false);
    286286           
    287287            m_menus[name] = menu;
     
    373373            createMenu(m_focusedInput.name);
    374374            m_focusedInput.setAttribute('autocomplete', 'off');
    375             m_focusedInput.addEventListener('keyup', handleKeyUp);
    376             m_focusedInput.addEventListener('keydown', handleKeyDown);
     375            m_focusedInput.addEventListener('keyup', handleKeyUp, false);
     376            m_focusedInput.addEventListener('keydown', handleKeyDown, false);
    377377            m_focusedInput.addEventListener('blur', function() {
    378378                showMenu(false);
    379379                m_prefix = null;
    380380                m_selectedIndex = 0;
    381             });
     381            }, false);
    382382        }
    383383       
     
    392392            }
    393393        }
    394     });
     394    }, false);
    395395
    396396    WebKitCommitters.getCommitters(function (committers) {
Note: See TracChangeset for help on using the changeset viewer.