Skip to content

iframe: layers scroll position get lost #7864

Closed

Description

@paulrouget

Scrolling iframes work, but at the next composition, the layer scroll position get lost. It looks like the page is scrolled up, but it is not (scrolling again re-sync the scroll position).

Here is an example to show what I mean:

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

  div:hover {
    background: blue;
  }

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

<div></div>
<div></div>

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

colorlesshopefulharvestmouse

Activity

  1. paulrouget commented on Oct 8, 2015

    @paulrouget
    ContributorAuthor

    Note to self: might want to look at the self.scroll_layer_to_fragment_point_if_necessary call in create_or_update_descendant_layer.

  2. paulrouget commented on Oct 20, 2015

    @paulrouget
    ContributorAuthor

    Fixed by #8089

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions