Skip to content

After navigating to a new page in an iframe, previous page is not destroyed/frozen #8673

Closed

Description

@paulrouget

I believe this happens only with documents in iframes.

index.html:

<iframe src="a.html"></iframe>

a.html:

<script>
  setInterval(() => {
    console.log("a");
  }, 1000);

</script>

<a href="./b.html">b</a>

b.html:

<h1>b</h1>

Running index.html, logs are printed in the console. Then navigating to b.html, a.html is not displayed anymore, but its JS code is still running.

Activity

  1. Ms2ger commented on Nov 25, 2015

    @Ms2ger
    Contributor
  2. added
    A-content/dom
    on Nov 25, 2015
  3. paulrouget commented on Dec 8, 2015

    @paulrouget
    ContributorAuthor

    This happens because the pipelines in iframes are never frozen.

  4. changed the title [-]After navigating to a new page, previous page is not destroyed/frozen[/-] [+]After navigating to a new page in an iframe, previous page is not destroyed/frozen[/+] on Dec 14, 2015
  5. added 2 commits that reference this issue on Dec 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/dom

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions