<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - WKUserScript is not injected after window.open"
href="https://bugs.webkit.org/show_bug.cgi?id=150122">150122</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>WKUserScript is not injected after window.open
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>iOS 9.0
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebKit2
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>eugenebut@chromium.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=263081" name="attach_263081" title="Test App">attachment 263081</a> <a href="attachment.cgi?id=263081&action=edit" title="Test App">[details]</a></span>
Test App
WKUserScript is not injected after window.open if |userContentController| property is reassigned to |WKUserContentController|.
Steps to Reproduce:
1. Build and launch WKWebView test app (attached).
2. Tap "Show referrer using window.open" link
3. Tap "Close" button to close child window
4. Tap "Go" button to reload this page
5. Tap "Show referrer using window.open" link again
Expected Results:
NSAssert should not fire, WKUserScript should be injected.
Actual Results:
NSAssert fires, because WKUserScript is not injected
Version:
iOS 9.0.2 (13A452)
Notes:
GOOGLER: eugenebut
Configuration:
iPhone 5s 16 GB</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>