<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#c8">Comment # 8</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:yongjun_zhang@apple.com" title="Yongjun Zhang <yongjun_zhang@apple.com>"> <span class="fn">Yongjun Zhang</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=159410#c7">comment #7</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=159410#c6">comment #6</a>)
> > (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?
>
> -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</span >
Thanks Brady! I will try this approach.</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>