Skip to content

esm: data URLs should ignore unknown parameters - #30593

Closed
bmeck wants to merge 1 commit into
nodejs:masterfrom
bmeck:esm-data-url-params
Closed

esm: data URLs should ignore unknown parameters#30593
bmeck wants to merge 1 commit into
nodejs:masterfrom
bmeck:esm-data-url-params

Conversation

@bmeck

Copy link
Copy Markdown
Member

The data: URL implementation was overly strict about what MIMEs it accepted. This caused problems for people using parameters. This relaxes the restrictions and follows the MIME expectation of ignoring unknown parameters. Per RFC2045:

MIME implementations must ignore any parameters whose names they do not recognize.

This also matches the WHATWG handling of data: URLs by using any , as the splitting point.

CC: @nodejs/modules

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@bmeckbmeck added experimental Issues and PRs related to experimental features. esm Issues and PRs related to the ECMAScript Modules implementation. labels Nov 22, 2019

@guybedfordguybedford left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you.

@SMotaal

Copy link
Copy Markdown

For reference (from the original PR) — https://gist.github.com/SMotaal/2e0ede8c6115b828c111fa84a1e952b4

@bmeck
bmeckforce-pushed the esm-data-url-params branch from 415695b to 2495ac6CompareNovember 26, 2019 14:58
@bmeck
bmeckforce-pushed the esm-data-url-params branch from 2495ac6 to 7a6a6dbCompareNovember 26, 2019 14:58
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@bmeck

Copy link
Copy Markdown
MemberAuthor

CI error is on waiting for AIX executor timeout, looks good to merge in a few

bmeck pushed a commit that referenced this pull request Nov 26, 2019
PR-URL: #30593
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
@bmeck

Copy link
Copy Markdown
MemberAuthor

Landed in 568968e

@bmeckbmeck closed this Nov 26, 2019
addaleax pushed a commit that referenced this pull request Nov 30, 2019
PR-URL: #30593
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
@BridgeARBridgeAR mentioned this pull request Dec 3, 2019
MylesBorins pushed a commit that referenced this pull request Jan 12, 2020
PR-URL: #30593
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
@targostargos mentioned this pull request Jan 15, 2020
BethGriggs pushed a commit that referenced this pull request Feb 6, 2020
PR-URL: #30593
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Feb 8, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

esmIssues and PRs related to the ECMAScript Modules implementation.experimentalIssues and PRs related to experimental features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@bmeck@SMotaal@nodejs-github-bot@hybrist@guybedford@bfarias-godaddy