Bug 35809

Summary: cancelGeolocationPermissionRequestForFrame not called if document in a iframe
Product: WebKit Reporter: arno. <a.renevier>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Severity: Normal CC: jknotten
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
URL: http://renevier.net/misc/geoloc_inside_frame.html
Bug Depends on: 34962    
Bug Blocks:    

Description arno. 2010-03-05 14:21:10 PST
I a document tries to use geolocation, a request is done to user, and document is unloaded, cancelGeolocationPermissionRequestForFrame is called.
But if document is loaded from an iframe or a frameset, and parent document is unloaded, that function isn't called anymore.

That's because, with an iframe, page element is destroyed (or at least set to null) before m_domWindow->disconnectFrame() is called. Then, cancelGeolocationPermissionRequestForFrame cannot be called in Geolocation::disconnectFrame.
Comment 1 John Knottenbelt 2011-02-14 03:27:31 PST

*** This bug has been marked as a duplicate of bug 52877 ***