Closed
Bug 493251
Opened 16 years ago
Closed 16 years ago
Header/navigation links on PG.com take two clicks to load
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
VERIFIED
FIXED
mozilla1.9.1
People
(Reporter: stephend, Assigned: smaug)
References
(Depends on 1 open bug, )
Details
(Keywords: regression, verified1.9.1)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Build ID: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1b5pre) Gecko/20090515 Shiretoko/3.5b5pre
The top navigation/header links on http://pg.com/en_US/index.shtml, such as "Products", etc. take a double-click to load -- in 3.0.10 they require only a single click.
Comment 1•16 years ago
|
||
This regressed between the 2009-02-26-02 (rev a979ac23e17e) nightly and the
2009-02-27-02 (rev cc8d4e656113) nightly.
Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a979ac23e17e&tochange=cc8d4e656113
Comment 2•16 years ago
|
||
Most likely bug 333198 Suppress Input events for web content during synchronous XMLHttpRequest loads (http://hg.mozilla.org/mozilla-central/rev/7184f7d69ff0).
pg.com fires off a sync XHR on every click of a link to do click tracking.
Blocks: 333198
OS: Mac OS X → All
Comment 3•16 years ago
|
||
Ah, I was wondering about that.
smaug, how come this xhr that's dispatched off the click is affecting the anchor getting the click?
Flags: blocking1.9.1?
Comment 5•16 years ago
|
||
Recent regression that could show up on a number of sites it seems. Blocking.
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P2
Target Milestone: --- → mozilla1.9.1
Assignee | ||
Comment 6•16 years ago
|
||
(In reply to comment #3)
> smaug, how come this xhr that's dispatched off the click is affecting the
> anchor getting the click?
It is not click, but mousedown/up. If I read the code right, the site does
sync XHR during mousedown, and that prevents us to react to mouseup (which would then cause click to be fired).
If one release mouse pretty slowly, the click is generated.
Assignee | ||
Comment 7•16 years ago
|
||
This generalizes delayed event queue, so that it may contain also mouseup and keyup/press events.
New mousedown-up-click or keydown-press-up sequences aren't allowed, only those
ones which aren't finished when sync XHR starts.
I must still write mochitests for this, but feel free to review.
A test for keyevent http://mozilla.pettay.fi/key_and_sync_xhr.html
Attachment #377856 -
Flags: superreview?(jst)
Attachment #377856 -
Flags: review?(jst)
Assignee | ||
Comment 8•16 years ago
|
||
(In reply to comment #7)
> A test for keyevent http://mozilla.pettay.fi/key_and_sync_xhr.html
Btw, Opera and Webkit queues all events, though webkit messes the event ordering
pretty badly.
Comment 9•16 years ago
|
||
Comment on attachment 377856 [details] [diff] [review]
patch
+ if (aEvent->message == NS_KEY_DOWN) {
+ mNoDelayedKeyEvents = PR_TRUE;
Would this not make more sense if mNoDelayedKeyEvents was named mDelayedKeyEvents, and the logic was flipped around here? Same for mNoDelayedKeyEvents?
Assignee | ||
Comment 10•16 years ago
|
||
I don't see much difference between mNoDelayedKeyEvents and
!mDelayedKeyEvents, though actually mNoDelayedKeyEvents may make more sense
because that is a flag which explicitly must be set to prevent delayed events.
(::new initializes everything to 0/PR_FALSE)
Updated•16 years ago
|
Attachment #377856 -
Flags: superreview?(jst)
Attachment #377856 -
Flags: superreview+
Attachment #377856 -
Flags: review?(jst)
Attachment #377856 -
Flags: review+
Comment 11•16 years ago
|
||
Comment on attachment 377856 [details] [diff] [review]
patch
I didn't understand enough of the patch before commenting about the names. This patch looks good. r+sr=jst
Assignee | ||
Comment 12•16 years ago
|
||
Attachment #377856 -
Attachment is obsolete: true
Assignee | ||
Comment 13•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 14•16 years ago
|
||
Keywords: fixed1.9.1
Reporter | ||
Comment 15•16 years ago
|
||
Verified FIXED on trunk using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090519 Minefield/3.6a1pre; will verify on branch when the next Shiretoko nightly is out.
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 16•16 years ago
|
||
Also verified FIXED on the 1.9.1 branch, using:
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b5pre) Gecko/20090520 Shiretoko/3.5b5pre (.NET CLR 3.5.30729).
Replacing fixed1.9.1 keyword with verified1.9.1.
Keywords: fixed1.9.1 → verified1.9.1
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•