Skip to content

[WebAPI] Implement Trusted Types support for document.write()/document.writeln() #37518

@Rumyra

Description

@Rumyra

Acceptance criteria

  • The listed features are documented sufficiently on MDN
  • BCD is updated
  • Interactive example and data repos are updated if appropriate
  • The content has been reviewed as needed

For folks helping with Firefox related documentation

  • Set bugs to dev-doc-complete
  • Add entry to Firefox release notes for enabled/preview features
  • Add/remove entry to Firefox experimental features page for preference/released features

Related Gecko bugs

These ones for 136

Note these ones for 137

These for 138

These for 144

  • https://bugzilla.mozilla.org/show_bug.cgi?id=1928932 see https://bugzilla.mozilla.org/show_bug.cgi?id=1928932#c21. If CSP enabled, this
    • enforces TT for assignment of script to text -
      let script = document.createElement("script");
      script.text = "/* arbitrary JS code */"; 
    • Check at the script execution part for cases where script is about to be executed because there are cases other than direct assignment of text, where the API does not lend itself to TT (read above link). I think action here is to update TT docs to make it clear these kinds of check exist.
      let script = document.createElement("script");
      script.appendChild(document.createTextNode("/* arbitrary JS code */"));
      document.body.appendChild(script);

Other

  • Check content open issues to see if any pertain to the subject matter. If there are any that can be closed because of the work, do so. If there are any that can be fixed relatively quickly because of the knowledge from completing this issue and you have time, feel free to go ahead and fix them.

Metadata

Metadata

Assignees

Labels

Content:WebAPIWeb API docsfx release archiveA closed issue relating to firefox release notes for developers.

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions