<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 - -[WKNavigationDelegate webView:didFinishNavigation:] can be called before the main frame load is complete."
href="https://bugs.webkit.org/show_bug.cgi?id=152032">152032</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-[WKNavigationDelegate webView:didFinishNavigation:] can be called before the main frame load is complete.
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Safari 9
</td>
</tr>
<tr>
<th>Hardware</th>
<td>iOS
</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>gchatz@chromium.org
</td>
</tr></table>
<p>
<div>
<pre>Summary:
When navigating to web sites, the didFinishNavigation callback from WKNavigationDelegate can be called before the main frame load completes, which is not allowed according to the documentation. I have seen this happen with sites like nytimes.com, techmeme.com, and gmail.com.
Steps to Reproduce:
1. Put a breakpoint on the didFinishNavigation method.
2. Run app using WKWebView.
3. Navigate to nytimes.com.
Expected Results:
Breakpoint is hit, and the nytimes.com main frame is fully loaded.
Actual Results:
Breakpoint is hit, but the nytimes.com main frame is not fully loaded.
Version:
iOS 9.1
Is there a suggested workaround?</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>