[Webkit-unassigned] [Bug 55577] Geolocation should continue to work after iframe reparenting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 7 08:52:57 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=55577





--- Comment #1 from John Knottenbelt <jknotten at chromium.org>  2011-03-07 08:52:57 PST ---
Some ideas, please comment:
- in Frame::transferChildToNewDocument, in the body of the  "if (didTransfer) {", extend the "if (oldPage != newPage)" body to include a call to a new method DOMWindow::geolocationPageChanged(oldPage) that will indirectly call a new method Geolocation::pageChanged(Page* oldPage).
- Geolocation::pageChanged(oldPage) will:
  - If the Geolocation is updating, subscribe to the new page's GeolocationController, unsubscribe from the old page's GeolocationController
  - If the Geolocation is awaiting permission, cancel permission on the old page's GeolocationController and request permission from the new page's GeolocationController

I think that there may be some subtleties involved with the above. We will want to avoid annoying the user with a permission request dialog disappearing and then reappearing.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list