mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
parent
1f4a5663e9
commit
57251fc4e7
9 changed files with 0 additions and 77 deletions
|
|
@ -395,18 +395,6 @@ nsGeolocationRequest::Allow(JS::HandleValue aChoices)
|
|||
{
|
||||
MOZ_ASSERT(aChoices.isUndefined());
|
||||
|
||||
if (mRequester) {
|
||||
// Record whether a location callback is fulfilled while the owner window
|
||||
// is not visible.
|
||||
bool isVisible = false;
|
||||
nsCOMPtr<nsPIDOMWindowInner> window = mLocator->GetParentObject();
|
||||
|
||||
if (window) {
|
||||
nsCOMPtr<nsIDocument> doc = window->GetDoc();
|
||||
isVisible = doc && !doc->Hidden();
|
||||
}
|
||||
}
|
||||
|
||||
if (mLocator->ClearPendingRequest(this)) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue