New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 721755 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Task



Sign in to add a comment

ModuleScriptFetchRequest should support an empty parser state

Project Member Reported by nhiroki@chromium.org, May 12 2017

Issue description

The fetch spec[1] says...

  "A request has associated parser metadata which is the empty string, "parser-inserted", or "not-parser-inserted". Unless otherwise stated, it is the empty string."

, but current ModuleScriptFetchRequest cannot handle the empty string [2].

To support it, we could add a new enum value into ParserDisposition or make the request's |parser_state_| WTF::Optional.

[1] https://fetch.spec.whatwg.org/#concept-request-parser-metadata
[2] https://chromium.googlesource.com/chromium/src/+/a66d812aa78debb856c1938f439e98feabeaeada/third_party/WebKit/Source/core/loader/modulescript/ModuleScriptFetchRequest.h#70
 
Labels: -Pri-2 Pri-3
Hm... for module loading the parser state could be always "parser-inserted" or "not-parser-inserted"? I read through the spec but I couldn't find the case where it's an empty string. If so, feel free to close this issue.

Comment 2 by kouhei@chromium.org, May 12 2017

Cc: domenic@chromium.org
Adding a new enum value sounds like a better option.

+domenic

Cc: mkwst@chromium.org annevank...@gmail.com
My guess is that the empty string only comes up for API-constructed requests (via new Request()). It's not clear to me why "not parser-inserted" isn't a good fit for that. Maybe Mike West or Anne can help us understand.
https://github.com/w3c/webappsec-csp/issues/70 is the feature for which it was added. The empty string seems to be used for most requests as this member is only set for <script> requests by HTML.

And in https://w3c.github.io/webappsec-csp/ it's only looked at for scripts (though that encompasses more than <script>).

I'm not intimately familiar with the entire setup though. Mike should know.
Project Member

Comment 5 by sheriffbot@chromium.org, May 14 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment