Closed Bug 635465 Opened 14 years ago Closed 14 years ago

JavaScript menu is not working on sports.ru

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: mdykun, Assigned: tnikkel)

References

()

Details

(Keywords: regression, testcase, Whiteboard: [hardblocker])

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b12pre) Gecko/20110218 Firefox/4.0b12pre Build Identifier: Cannot go to the menu in the main site menu Reproducible: Always Steps to Reproduce: 1. Go to http://www.sports.ru/ 2. Put the cursor on the main menu item in the header, for ex. "ФУТБОЛ" 3. Try to click at one of the drop-down menu, it disappears Actual Results: Submenu is disappears, cannot click on it
Status: UNCONFIRMED → NEW
Ever confirmed: true
Regression window: Works; http://hg.mozilla.org/mozilla-central/rev/dbf0cee832f6 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b10pre) Gecko/20110125 Firefox/4.0b10pre ID:20110125102831 Fails: http://hg.mozilla.org/mozilla-central/rev/273cb783edac Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b10pre) Gecko/20110125 Firefox/4.0b10pre ID:20110125105431 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=dbf0cee832f6&tochange=273cb783edac Regressed by: 273cb783edac Kevin Gadd — bug 627628 - Throttle the dispatching of starved paints so that time is allowed for the processing of input events between each starved paint. This helps maintain responsiveness in cases where input events are being generated very rapidly or where painting is extremely expensive. r=roc a=roc
Blocks: 627628
blocking2.0: --- → ?
Version: unspecified → Trunk
(FYI, This happens on Ubuntu too, however regression window is different. The problem happens on Namoroka/3.6.15pre and Shiretoko/3.5.18pre )
Attached file Testcase #1 (deleted) —
It looks like we forget about an element's hover state when it's reframed? The test works if I remove the "item.offsetWidth" line.
I don't think this needs to block since it also occurs in Fx 3.6 and 3.5, at least on Linux.
Keywords: testcase
OS: Windows 7 → All
Hardware: x86 → All
This is probably the same as bug 592954, comment 36 and comment 38 explain the problem.
(In reply to comment #4) > I don't think this needs to block since it also occurs in Fx 3.6 and 3.5, > at least on Linux. Linux is different in this case, because it has never dispatched starved paints.
tn: so, does this need to block?
Do the dropdown menus in bug 592954 and bug 592093 work currently in Windows? aka is this menu a special case or did this whole class of drop downs regress?
Before landing bug 627628 They work on Windows7 properly. After landing bug 627628 They work on Windows7 unwillingly. It need moving mouse _very_ _very_ slowly. So, I think that bug 627628 is something wrong. this bug is not special case. http://hg.mozilla.org/mozilla-central/rev/657c2a92ee2b Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110219
Comment #9 is a reply for comment #8
So to fix this we either need to back out bug 627628 or fix the general problem here (see comment 5) in a better way, althrough I'm not sure what that is. Note that the original reason for taking bug 627628 (slow twitter typing) is now fixed by twitter taking my suggestion to avoid the problem on their site. I'm thinking this might block.
So far the best idea I've come up with is: if we flush sometime during the processing of an event, then flush after we have completely processed the event. But that does not seem like something we want to take this late in the game.
Let's do the backout, and fast.
blocking2.0: ? → betaN+
Whiteboard: [hardblocker]
Assignee: nobody → tnikkel
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
(In reply to Timothy Nikkel (:tn) from comment #12) > So far the best idea I've come up with is: if we flush sometime during the > processing of an event, then flush after we have completely processed the > event. But that does not seem like something we want to take this late in > the game. I'm not sold on the "flush afterwards" strategy, though it might be the best compromise considering the performance implications of flushing too often. Conceptually, flushing should be something that's done *before* a crucial point. And in this case that point seems to be when we search for the element under the mouse in order to know where to dispatch the event to; this bug happens because at that point we're looking at outdated layout information. So I think it would make most sense to flush right before looking for the event target. And I think it would make sense to do that for all positioned events. What do you think about that?
You're right that flushing before finding the target of a positioned event makes the most sense. And like you mention I am worried that flushing on every mouse move might cause performance problems. smaug, what do you think? (comment 5 if you need to refresh your memory about the problem here)
Logically, flushing before we dispatch positioned events is the right thing to do. Maybe we should just try it and see. Maybe avoiding those flushes is a premature optimization. Boris, what do you think?
If it causes problems, one way to deal with it might be (and this might be a crazy idea) to flush before all positioned events except for mouse moves, and dispatch mouse-move events off the refresh driver (after flushing). That would ensure flushes for paints are coalesced with flushes for mouse-move events, and that mouse-move events are throttled. And maybe we'd need something similar for touches.
We used to flush on every mousemove (e.g. see nsEventStateManager on the aviary branch; the NS_MOUSE_MOVE case in PreHandleEvent); the claim in the comments was that we wanted that to avoid flicker; that was done to fix bug 36849. We took it out in bug 244366 when we came up with a better solution for dealing with the flicker. I could probably live with reintroducing it, esp. if we do some careful measurement (and e.g. optimize the no-op flush case to be faster as needed).
I actually kinda like the idea of firing mousemoves in the refresh driver. Optimizing no-op flushes is a good idea no matter what!
Firing mousemoves when? After refreshing everything else? Or before? (I don't know in which order different things run on refreshing driver.)
(In reply to Olli Pettay [:smaug] from comment #21) > Firing mousemoves when? After refreshing everything else? Or before? After (and then flush again before painting).
Attached patch flush before positioned event (deleted) — Splinter Review
This fixes the sports.ru testcase, but it doesn't fix the testcase in bug 592954.
I just tried writing a test for this, but it seems to fail randomly even on trunk (without the patches in bug 598482), at about the same frequency as in that bug. We really need to figure out a way to test this....
Flags: in-litmus?
Oh, and we optimized no-op flushes a bit in 709256. At this point they're under 150ns each on my hardware.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: