Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b425ed981e562eafd9ec26be6be6b513014faf1d
https://github.com/WebKit/WebKit/commit/b425ed981e562eafd9ec26be6be6b513014faf1d
Author: Charlie Wolfe <[email protected]>
Date: 2026-06-16 (Tue, 16 Jun 2026)
Changed paths:
M Source/WebKit/WebProcess/Geolocation/WebGeolocationManager.cpp
Log Message:
-----------
WebGeolocationManager::resetPermissions has an inverted iterator check
https://bugs.webkit.org/show_bug.cgi?id=317161
rdar://179755180
Reviewed by Rupin Mittal.
resetPermissions() looked up the registrable domain and then did
"if (it != m_pageSets.end()) return;", which returns when the entry is found
(making the reset a
no-op) and falls through to dereference a past-the-end iterator when it is not
found. Every other
method in this file uses the correct "if (it == end()) return;". Flip the
comparison.
* Source/WebKit/WebProcess/Geolocation/WebGeolocationManager.cpp:
(WebKit::WebGeolocationManager::resetPermissions):
Canonical link: https://commits.webkit.org/315287@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications