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

feat: improve checking of data URLs #1412

Merged
merged 1 commit into from Dec 6, 2022
Merged

Conversation

rdeltour
Copy link
Member

@rdeltour rdeltour commented Dec 2, 2022

This commit introduces the following checks:

  • RSC-029(new): check that data URLs are not used when they would result in a top-level browsing context
  • check data URLs for foreign resource restrictions (fallbacks)

An OPFItem instance can now represent a manifest item defined as a data URL. A hasDataURL() method will tell if this is the case.

Fix #1238, fix #1239.

Note: this does not implement the newest resolution that data URLs are not allowed for publication resources

This commit introduces the following checks:

- `RSC-029`(new): check that `data` URLs are not used when they would result in a
  top-level browsing context
- check `data` URLs for foreign resource restrictions (fallbacks)

An OPFItem instance can now represent a manifest item defined as a
data URL. A `hasDataURL()` method will  tell if this is the case.

Fix #1238, fix #1239.
@rdeltour rdeltour added this to the v5.0.0-beta milestone Dec 2, 2022
@rdeltour rdeltour self-assigned this Dec 2, 2022
Base automatically changed from fix/regression-message-location to release/v5.0.0 December 6, 2022 14:36
@rdeltour rdeltour merged commit cbc0b2a into release/v5.0.0 Dec 6, 2022
@rdeltour rdeltour deleted the feat/data-urls branch December 6, 2022 14:36
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.

None yet

2 participants