Skip to content

Update window.open on document / window creation and load behavior#43913

Merged
hamishwillee merged 5 commits intomdn:mainfrom
vinhill:window-open-blank
May 5, 2026
Merged

Update window.open on document / window creation and load behavior#43913
hamishwillee merged 5 commits intomdn:mainfrom
vinhill:window-open-blank

Conversation

@vinhill
Copy link
Copy Markdown
Contributor

@vinhill vinhill commented Apr 23, 2026

Motivation

I have multiple issues with the existing paragraph.

  • What does remote mean? I think that could be mistaken as non-local or cross origin.
  • The window isn't created asynchronously, only the navigation occurs async.
  • "current script block" is imprecise and probably incorrect.

If we think of this paragraph as being about how window.open() creates the document and window, I also think it's important to mention that the global is reused and thus window.open(...).onload works even though we start on about:blank.

Additional details

@vinhill vinhill requested a review from a team as a code owner April 23, 2026 12:50
@vinhill vinhill requested review from hamishwillee and removed request for a team April 23, 2026 12:50
@github-actions github-actions Bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Apr 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

Preview URLs (1 page)

(comment last updated: 2026-05-04 07:45:06)

Comment thread files/en-us/web/api/window/open/index.md Outdated
Comment thread files/en-us/web/api/window/open/index.md Outdated
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
@github-actions github-actions Bot added size/s [PR only] 6-50 LoC changed and removed size/xs [PR only] 0-5 LoC changed labels Apr 24, 2026
Comment thread files/en-us/web/api/window/open/index.md Outdated
Co-authored-by: Vincent Hilla <vincenthilla5@gmail.com>
Comment thread files/en-us/web/api/window/open/index.md Outdated
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
@vinhill vinhill requested a review from hamishwillee April 27, 2026 07:17
Comment thread files/en-us/web/api/window/open/index.md Outdated
Comment thread files/en-us/web/api/window/open/index.md Outdated
Comment thread files/en-us/web/api/window/open/index.md Outdated
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
Copy link
Copy Markdown
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THanks very much @vinhill - and for your patience with me! I think the result is good.

@hamishwillee hamishwillee merged commit 7e8e176 into mdn:main May 5, 2026
9 checks passed
pepelsbey added a commit to pepelsbey/mdn-content that referenced this pull request May 6, 2026
* upstream/main: (150 commits)
  PWA relative links (mdn#43953)
  feat(jsondata): add `external_link` translation key (mdn#43978)
  Clarify when var() falls back to its second argument (mdn#44015)
  Correct incorrect filename on learn assessment (mdn#44012)
  FF151 Relnote CanvasRenderingContext2D.lang (mdn#44010)
  FF151: Update container style queries support (mdn#44002)
  Firefox experimental features clean-up (mdn#43887)
  FF151 Relnote: shadowrootslotassignment (mdn#43881)
  Editorial review: Document WebGPU compatibility mode (mdn#43944)
  Correction of solution (mdn#44001)
  Synchronize with BCD v7.3.14 (mdn#44007)
  Editorial review: Document texture_and_sampler_let WGSL feature (mdn#43768)
  Editorial review: Document NavigationTransition.committed (mdn#43692)
  Update window.open on document / window creation and load behavior (mdn#43913)
  FF151 Relnote: keyboardLock option for Element.requestFullScreen() (mdn#43883)
  FF118 keyboard value for Window Event tidy (mdn#43942)
  Bump yaml from 2.8.3 to 2.8.4 (mdn#44005)
  Rename Stylesheet glossary definition to Style sheet (mdn#43997)
  Clarify else-if evaluation order (mdn#43917)
  chore(dictionaries): add technical terms flagged by spelling check (mdn#43907)
  ...

# Conflicts:
#	files/en-us/web/api/svgscriptelement/async/index.md
#	files/en-us/web/api/svgscriptelement/index.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants