New issue
Advanced search Search tips

Issue 902393 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Task



Sign in to add a comment

-[CRWWebController webViewDidClose:] should close the window unconditionally

Project Member Reported by eugene...@chromium.org, Nov 6

Issue description

Currently webViewDidClose: checks self.hasOpener flag and ignores the callback if opener exists. Ignoring the callback may put WebKit into incorrect state, because WebKit expects the window to be closed. WebKit should only call webViewDidClose: if the window has opener (thought WebKit may have bugs and mistakenly think that there is an opener).

Unconditionally closing the window will not allow chrome to restore hasOpener flag after WKWebView is killed, but that's the right thing to do for webViewDidClose: API contract.
 
Labels: Hotlist-GoodFirstBug

Sign in to add a comment