Skip to content

iframe: hovering the iframe doesn't un-hover parent document nodes #7865

Closed

Description

@paulrouget

In this example, hovering the div turns it blue. Then moving the cursor to the iframe without leaving the div won't turn it back to red.

<style>
  div {
    width: 100px;
    height: 100px;
    background: red;
  }

  div:hover {
    background: blue;
  }

  iframe {
    margin: 10px;
    width: 600px;
    height: 300px;
    border-width: 0;
  }
</style>

<div></div>

<iframe mozbrowser remote src='http://google.com'></iframe>

Activity

  1. added
    A-content/dom
    on Oct 5, 2015
  2. jdm commented on Oct 5, 2015

    @jdm
    Member

    I'm pretty sure this is due to the new mouse move event being sent to the iframe's script task, rather than the parent's so the code in Document::handle_mouse_move_event never sees the list of currently-hovered elements that require checking. We might need to store the pipeline id that received the last mouse move event in the constellation/compositor and ensure that we send a mouse move event to that as well if it's different than the current one.

  3. added
    A-constellation
    on Oct 5, 2015
  4. self-assigned this
    on Oct 5, 2015
  5. paulrouget commented on Oct 19, 2015

    @paulrouget
    ContributorAuthor

    @jdm are you still looking at this? Does that depend on @mrobinson work?

  6. jdm commented on Oct 19, 2015

    @jdm
    Member

    I forgot about this and haven't done any investigation beyond the original comment.

  7. added a commit that references this issue on Nov 4, 2015
    9529196
  8. added a commit that references this issue on Nov 6, 2015
    4067960
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-constellationA-content/dom

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions