зеркало из https://github.com/mozilla/gecko-dev.git
9f632b6e53
The timeout timer of a geolocation request holds a strong reference to the request. This can cause the window to leak if the request is not completed before the tab containing the window is closed. To fix this, I made the timer instead hold a strong reference to a wrapper class that has only a weak reference to the request. The request destructor must now cancel the timeout timer. I also outlined a call to StopTimeoutTimer() in nsGeolocationRequest::Shutdown(). |
||
---|---|---|
.. | ||
browser | ||
html | ||
js | ||
mochitest | ||
reftest | ||
unit | ||
moz.build |