Skip to content

Suggestion: New WebViewPreview API o webview-preview element #11971

@alexbotio

Description

@alexbotio

What problem are you trying to solve?

Current web development faces two significant, often conflicting, challenges when integrating content from third-party websites: poor User Experience (UX) and restrictive Security Policies.

Read the PDF for more context.

Technical Specification Draft_ The webview-preview Element.pdf

What solutions exist today?

iframe or object

How would you solve it?

We propose the introduction of a new JavaScript Constructor Interface, WebViewPreview() or webview-preview element, which delegates the responsibility of content isolation and mandatory attribution UI to the User Agent (Browser).

This solution eliminates the need for developers to use complex server-side proxies or manually manage the security of <iframe> elements.

Read the PDF for more context.

Anything else?

That covers everything for now. Thank you for your time and attention to this proposal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    addition/proposalNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestneeds incubationReach out to WHATWG Chat or WICG for help

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions