-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detail how javascript: return values become response bodies
Fixes #301, by aligning with the 3/4 browser majority and checking the type of the completion value, turning non-strings and thrown errors into 204s. (Thrown errors are still reported, however.) While working on this algorithm, we fix #945 by copying the HTTPS state to response. This also does some minor cleanup to clarify that "run a classic script" returns undefined when scripting is disabled. #1129 was opened to track a remaining open issue discovered, which is exactly how the JS string completion value becomes a response body. For now the spec includes a warning saying that this is underspecified.
- Loading branch information
Showing
1 changed file
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters