~/talk

So You Think You Know `window.open`

Talkat CascadiaJS 2021 · 2021-11-03..11-04· [web-platform, javascript]
links:none on file
slides:none on file

A bug where target="blank" (missing underscore) reveals that window.open uses the target as the window name, so opening by name refocuses an existing tab; renaming window.name updates that reference; passing undefined as the URL focuses without navigating; command/right‑click or direct navigation creates separate opener networks so identical names don’t cross them. Built a link wrapper that intercepts clicks, generates UUID names, and a sidebar tracked via localStorage/shared worker to list and focus tabs — it works with notable edge cases and browser support limits.

AI-written summary · about

  1. 0:00Introduction
  2. 0:42Problem with tab overload
  3. 2:06Blank target behavior
  4. 4:14Exploring window.open
  5. 6:18Refocusing existing tabs
  6. 7:02Renaming tabs
  7. 8:48Tab routes and focus
  8. 11:39Cross-tab navigation
  9. 13:04Tab networks explained
  10. 15:10Limitations of window.open
  11. 17:18Design system workaround
  12. 19:48Command click behavior
  13. 21:14Tracking tabs with localStorage
  14. 23:00Final product demo
  15. 23:44Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.