pages() returns a list of pages in WebProcess, so this page may or may not be among them - a client can use a reference to WebPageProxy after the page has closed. <rdar://problem/12619000>
Created attachment 176291 [details] proposed fix
Committed <http://trac.webkit.org/r135879>.
Why not add an isClosed() check, and return null here?
That doesn't seem to a be a direct enough check - isClosed() may or may not return true if WebProcess has crashed.