<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Add a SPI to remove the current item in WKBackForwardList."
href="https://bugs.webkit.org/show_bug.cgi?id=159410#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Add a SPI to remove the current item in WKBackForwardList."
href="https://bugs.webkit.org/show_bug.cgi?id=159410">bug 159410</a>
from <span class="vcard"><a class="email" href="mailto:beidson@apple.com" title="Brady Eidson <beidson@apple.com>"> <span class="fn">Brady Eidson</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=159410#c6">comment #6</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=159410#c5">comment #5</a>)
> > Comment on <span class=""><a href="attachment.cgi?id=282747&action=diff" name="attach_282747" title="Fix style issue.">attachment 282747</a> <a href="attachment.cgi?id=282747&action=edit" title="Fix style issue.">[details]</a></span>
> > Fix style issue.
> >
> > We've resisted APIs to directly manipulate the back/forward list for the
> > entirety of WK2.
> >
> > Every time we've heard that one is needed, we've always found an alternate.
> >
> > Why is this needed?
>
> Sometimes when we restore the saved session state from disk, we would like
> to skip the current item (to prevent crash-loop if the app crashed because
> of loading the URL in current item). We can't just do bfList->back since
> that would make it possible to go forward and crash again if user swipes
> forward.
>
> Seems like there isn't a good way to achieve this with the current API/SPI.
> Any suggestions?</span >
-Take the session state blob
-Restore without navigating
-Make a new session state blob, but filter out the bad url.
-Restore the new session state blob</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>