[webkit-changes] [WebKit/WebKit] 544d14: WebGeolocationManager should use WeakHashMap of We...

Ryosuke Niwa noreply at github.com
Wed Feb 15 17:28:00 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 544d14e5357117f044702793e3169ec97c6ef0a6
      https://github.com/WebKit/WebKit/commit/544d14e5357117f044702793e3169ec97c6ef0a6
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M Source/WebKit/WebProcess/Geolocation/WebGeolocationManager.cpp
    M Source/WebKit/WebProcess/Geolocation/WebGeolocationManager.h

  Log Message:
  -----------
  WebGeolocationManager should use WeakHashMap of WebPage instead of raw pointers
https://bugs.webkit.org/show_bug.cgi?id=252343

Reviewed by Chris Dumez.

Deployed WeakHashMap in place of HashMap of raw pointers.

* Source/WebKit/WebProcess/Geolocation/WebGeolocationManager.cpp:
(WebKit::WebGeolocationManager::registerWebPage):
(WebKit::WebGeolocationManager::unregisterWebPage):
(WebKit::WebGeolocationManager::setEnableHighAccuracyForPage):
* Source/WebKit/WebProcess/Geolocation/WebGeolocationManager.h:

Canonical link: https://commits.webkit.org/260333@main




More information about the webkit-changes mailing list