Skip to content

How are non-text/css responses handled? #14

Closed

Description

@bzbarsky

This applies at least to @import in sheets, and to the sheets themselves if loading from URL ever gets allowed. For <link> and @import from link loads, a non-text/css type for a same-origin load in quirks mode allows the sheet to be parsed. It seems to me that we may not want that quirk here.

Activity

  1. TakayoshiKochi commented on Apr 6, 2018

    @TakayoshiKochi
    Member

    Good catch, I don't think we have to support legacy behavior like quirks mode, as this is for a new API.

  2. added
    needs resolution
    on Apr 17, 2018
  3. TakayoshiKochi commented on May 22, 2018

    @TakayoshiKochi
    Member

    As #25 concludes disallowing @import, let me close this.

  4. bzbarsky commented on May 22, 2018

    @bzbarsky
    Author

    Um... I don't see a conclusion in #25 that "disallows import". Have you talked to the CSSWG about this? You can't just go creating your own separate CSS syntax willy-nilly!

  5. TakayoshiKochi commented on May 22, 2018

    @TakayoshiKochi
    Member

    Well, sorry for the wording "conclusion" - it was not really a consensus.

  6. tabatkins commented on May 22, 2018

    @tabatkins
    Contributor

    Ignoring #25 for the moment tho, I agree that we shouldn't support non-text/css responses in this API.

  7. TakayoshiKochi commented on May 23, 2018

    @TakayoshiKochi
    Member

    @tabatkins shall we describe the response type restriction for each spec that involves any loading, or is there good one place to put all relevant information?

  8. tabatkins commented on May 23, 2018

    @tabatkins
    Contributor

    I suspect that each spec should define their type restrictions; there's a lot of places where things are loaded, so having a single point that tries to define all of them is probably bad. But I think @annevk would have a more useful opinion on that.

  9. annevk commented on May 23, 2018

    @annevk

    I'd actually expect a single point to be defined in CSS somewhere, suitably parameterized. Especially for security-sensitive code like loading you don't want too many independent decision makers.

  10. rakina commented on Sep 12, 2018

    @rakina
    Member

    #35 resolves this - We don't handle non-text/css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs resolution

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions