-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #124: make more types follow text/plain navigate logic
This change makes JavaScript MIME types, JSON MIME types (including text/json due to https://bugzilla.mozilla.org/show_bug.cgi?id=1201632), text/cache-manifest, text/css, and text/vtt follow the text/plain navigate logic. It also blocks text/vtt from being used by registerContentHandler() as the user agent needs to handle it natively. It further changes the navigate algorithm to use the abstract terms HTML MIME type and XML MIME type rather than the explicit MIME types to make them consistent with what is done for JavaScript and JSON. As especially for JavaScript listing all MIME types again in duplicate would be quite cumbersome.
- Loading branch information
Showing
1 changed file
with
40 additions
and
23 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