w3c / w3c/webdriver

JSON serialization of the WindowProxy object isn't very useful if it's a nested browser context

Open
#1,088 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

If the WindowProxy is a nested browsing context, you get a window handle, except you can't actually use it for anything (e.g., you can't use it to switch the current browsing context). Having an opaque string that's only useful for comparing it doesn't seem like it is very useful?

(Technically, you could, by going to its top-level browsing context and then switching to every frame until you find one with the same window handle.)

As for a use-case: I have a message event and I want to switch the current browsing context to e.source to react to that message.

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 the issue's discussion of WindowProxy serialization, nested browsing contexts, window handles, and switching contexts. Review the WebDriver browsing-context and window-handle behavior, then determine a concrete protocol change that would let a message event's source identify a usable context; done means the behavior and interoperability expectations are specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.