mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out 0501a5506c87 (bug 741131) because of test failures
This commit is contained in:
parent
ced4ea20e1
commit
16def08c7b
@ -419,13 +419,11 @@ nsGeolocationRequest::SetTimeoutTimer()
|
||||
mTimeoutTimer = nsnull;
|
||||
}
|
||||
PRInt32 timeout;
|
||||
if (mOptions && NS_SUCCEEDED(mOptions->GetTimeout(&timeout))) {
|
||||
if (mOptions && NS_SUCCEEDED(mOptions->GetTimeout(&timeout)) && timeout > 0) {
|
||||
|
||||
if (timeout < 0)
|
||||
timeout = 0;
|
||||
else if (timeout < 10)
|
||||
if (timeout < 10)
|
||||
timeout = 10;
|
||||
|
||||
|
||||
mTimeoutTimer = do_CreateInstance("@mozilla.org/timer;1");
|
||||
mTimeoutTimer->InitWithCallback(this, timeout, nsITimer::TYPE_ONE_SHOT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user