Skip to content

New Tab opens in quirks mode #1180

@Readf0x

Description

@Readf0x

Describe the bug

The WebContainer doesn't contain <!DOCTYPE html>, which causes Firefox to open it in quirks mode if you select "Open in New Tab". Quirks mode entirely breaks the WebContainer. This does not affect iframes.

Link to the blitz that caused the error

https://stackblitz.com/github/readf0x/startpage

Steps to reproduce

Click on "Open in New Tab"
See blank white page

Expected behavior

The WebContainer should function in a new tab.

Parity with Local

Screenshots

image
image

Platform

Browser name  = Firefox
Full version  = 111.0
Major version = 111
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0
performance.memory = undefined
Hash = 7259293c

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions