Closed Bug 1875290 Opened 2 years ago Closed 2 years ago

Use about:blank for browsingContext.create with type=window

Categories

(Remote Protocol :: WebDriver BiDi, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1875299

People

(Reporter: jdescottes, Unassigned)

References

Details

Spotted while working on Bug 1874918.

When using browsingContext.create with type=tab, we force the URL to about:blank.

However when using type=window, we rely on the default URL from BrowserWindowTracker.openWindow, which will either be:

  • about:privatebrowsing if the window is in private browsing
  • the default page for new windows defined is user preferences

Should we force about:blank for the initial tab of new windows as well? We could keep this specific to WebDriver BiDi if needed?

(In reply to Julian Descottes [:jdescottes] from comment #0)

Should we force about:blank for the initial tab of new windows as well? We could keep this specific to WebDriver BiDi if needed?

It shouldn't matter which kind of context we are trying to open here. So in short, yes we should do.

Thanks for the feedback. I'll actually try to handle this in Bug 1875299 directly, to avoid having to duplicate the code generating the default URL from BrowserWindowTracker.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1875299
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.