[Webkit-unassigned] [Bug 30665] REGRESSION: Web Inspector: blur and focus Events are Fired Too Often

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 22 00:28:13 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30665





--- Comment #1 from Joseph Pecoraro <joepeck at webkit.org>  2009-10-22 00:28:13 PDT ---
The first two are registered as follows:

  X.addEventListener("focus", this.windowFocused.bind(this), true);
  X.addEventListener("blur", this.windowBlured.bind(this), true);

By changing the "bubbling" boolean to false these events fire only when
expected and with the expected target (document.defaultView).  However, I
looked at the spec to try and understand the behavior when this attribute was
true and I came across the following:
http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#event-types-list

> All events must accomplish the capture and target phases,
> but not all of them must accomplish the bubbling phase"

In the table, the Spec shows "blur" and "focus" events do not accomplish the
bubbling phase. What then is the behavior I am seeing when the listeners are
registered as non-capturing?  The WebInspector.startEditing event listener does
use "false" in its declaration.  Based on the Spec is this valid?

As for the regression, I do not know what caused that.  Does anyone have a
setup where doing a binary search through the history to narrow down a revision
would not take all day?! =)

-- 
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