Repository navigation
Conversation
|
Any ideas how to write a test for this bug? |
|
Looks good to me. In general event testing is pretty hard. See some of the testing issues around incremental restyling… |
There was a problem hiding this comment.
I'm not sure whether this case also needs to be changed... or why it is separate from the else case below it.
There was a problem hiding this comment.
masks_to_bounds is only set when it's the root layer for an iframe, I think - but @mrobinson knows this stuff much better then me.
There was a problem hiding this comment.
Isn't this needed to handle the scrolling case?
There was a problem hiding this comment.
Yes, it is. I'll go back to the drawing board and make sure the fix works when the parent and/or child documents are scrolled.
1baa2d7 to
5b37dca
Compare
|
Updated the patch to take scrolling into account. This now fixes #8080 even when the top-level document is scrolled, and sends the correct page coordinates to the script task. r? @mrobinson There is still a pre-existing bug that causes incorrect hit testing inside the iframe if its inner document is scrolled, which is not fixed by this patch. I think this bug is in the hit-testing code in script and gfx. |
There was a problem hiding this comment.
I wonder if it would make sense to simply call this point_in_parent_layer and remove the comment.
Oops, I thought this was a pre-existing bug, but on further testing it looks like it's actually a regression from this patch. |
5b37dca to
d4d77cb
Compare
|
Okay, this time for sure! The problem above was caused by an existing bug in Document, which was treating the mouse event coordinates as both page coordinates and client coordinates, so for scrolled documents it was always wrong in at least one case.
There's one remaining bug involving hit-testing of fixed-position elements in scrolled documents, but this is definitely a pre-existing bug. I added a FIXME comment for it. r? mrobinson I'm going to be gone on PTO all next week, so if this needs fixups and someone wants to take it over, it would be appreciated. |
This needs rebase. Here: #8671 |
Fixes #8080. r? @glennw or @mrobinson