Created attachment 388175 [details] testcase Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090712 Minefield/3.6a1pre Steps to reproduce: 1. Open the testcase. 2. Mouse over "generated content" at the right of "testA". Actual result: Does nothing. Expected result: :hover should work like testB, i.e. "generated content" in testA should change to red "content is used with hover". 20080817033619 works fine. 20080818033342 fails. Likely from bug 238072.
10 years ago
Created attachment 388384 [details] testcase with <a> When this bug occurs with <a>, click on the generated content does not work first time. In this testcase, clicking on "generated content" at the right of "testA" once does nothing. When click again, it follows the link. Is this the same bug? Or another separate bug is needed?
Assignee: nobody → roc
Flags: blocking1.9.2? → blocking1.9.2+
Priority: -- → P2
status1.9.1: --- → ?
10 years ago
Summary: :hover does not work with generated content → changing generated content on :hover does not work when the hovering is over the generated content
10 years ago
OS: Windows XP → All
Hardware: x86 → All
Created attachment 397605 [details] [diff] [review] fix GetContentForEvent should return the nearest enclosing non-generated content. This function is used in quite a few places but I'm pretty sure this is the right thing to do in all those cases. We simply shouldn't be targeting DOM events at generated content.
Attachment #397605 - Flags: review?(dbaron)
This patch fixes both testcases in this bug.
Whiteboard: [needs review]
Comment on attachment 397605 [details] [diff] [review] fix r=dbaron But I think you should also remove nsHTMLCanvasFrame::GetContentForEvent; it's now the only GetContentForEvent implementation that doesn't do this fixup, and as far as I can tell it's entirely unneeded. (I can't see how it can occur in generated content now, but we may as well avoid problems if it ever can.)
Attachment #397605 - Flags: review?(dbaron) → review+
Whiteboard: [needs review] → [needs landing]
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing] → [needs 1.9.2 landing]
Whiteboard: [needs 1.9.2 landing] → [needs 192 landing]
Wed Sep 02 14:46:33 2009 +1200 (at Wed Sep 02 14:46:33 2009 +1200): http://hg.mozilla.org/releases/mozilla-1.9.2/rev/41c751e0aab1
status1.9.2: --- → beta1-fixed
Whiteboard: [needs 192 landing]
Confirmed fixed in 1.9.2.
You need to log in before you can comment on or make changes to this bug.