Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite: Support target rewriting, open new windows in top-frame instead #767

Merged
merged 2 commits into from
Oct 6, 2022

Conversation

tw4l
Copy link
Member

@tw4l tw4l commented Oct 6, 2022

Description

This ports webrecorder/wabac.js#84 to work in pywb, forcing tags with targets to update the top replay frame.

Motivation and Context

Tags with a target of _blank, _top, or _parent were causing issues with replay where new iframes were nested within the existing replay iframe rather than updating it. They also have the potential to open new windows, causing unexpected behaviour.

This was pointed out by Lauren Ko on the site https://cybercemetery.unt.edu/thenamingcommission/20220922214652/https://www.thenamingcommission.gov/

Resolves #766

Related to webrecorder/wombat#94

Types of changes

  • Replay fix (fixes a replay specific issue)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added or updated tests to cover my changes.
  • All new and existing tests passed.

@tw4l tw4l changed the title Dev/issue 766 Rewrite: Support target rewriting, open new windows in top-frame instead Oct 6, 2022
@ikreymer ikreymer self-requested a review October 6, 2022 00:53
@ikreymer ikreymer merged commit 815ea92 into main Oct 6, 2022
tw4l added a commit that referenced this pull request Oct 19, 2022
…ead (#767)

* Bump wombat to 3.3.9

* Set target attributes to iframe name
@ikreymer ikreymer deleted the dev/issue-766 branch November 17, 2022 21:36
tw4l added a commit that referenced this pull request Nov 17, 2022
…ead (#767)

* Bump wombat to 3.3.9

* Set target attributes to iframe name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite: Support target rewriting, open new windows in top-frame instead
2 participants