w3c / w3c/ServiceWorker

Restrict openWindow() to http(s) schemes?

Open
#699 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question TPAC2025
Dominant language
Bikeshed
Stars
3.6k
Forks
324
Avg merge
14d 22h
Merged PRs (30d)
1

Description

We currently reject on about:blank (due to #696), but is there any benefit in allowing schemes other than http and https?

What would it mean to openWindow('mailto:hello@example.com')? etc

I propose we reject on schemes other than http/https. Any objections?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with issue #699 and the referenced issue #696, focusing on the current handling of openWindow() and about:blank. Determine whether non-http(s) schemes should be rejected, and document or specify the resolved behavior for cases such as mailto:hello@example.com.

Written by the indexing model from the issue text.

Assessment

Domain
api, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.