Skip to content

Commit d176bcf

Browse files
committed
fix(client.html): always open debug.html in a new browser process
Chrome reuses a single process for tabs opened by clicking links. This means that if I use debugger in debug.html it will block the regular karma tab which will make karma think that the connection was lost. By forcing the debug.html to be opened in a new process the original chrome tab will be unaffected while debugging with debug.html. Info about the rel attribute: http://blog.chromium.org/2009/12/links-that-open-in-new-processes.html
1 parent 9d17ed0 commit d176bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/client.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
</head>
103103
<body>
104104
<div id="banner" class="offline">
105-
<a href="debug.html%X_UA_COMPATIBLE_URL%" target="_blank" class="btn-debug">DEBUG</a>
105+
<a href="debug.html%X_UA_COMPATIBLE_URL%" target="_blank" rel="noreferrer" class="btn-debug">DEBUG</a>
106106
<h1 id="title">Karma - starting</h1>
107107
</div>
108108

0 commit comments

Comments
 (0)