зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1603902 - Remove a race condition where storage access would get denied when a delayed automatic grant is in progress; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D57211 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
58e8c17d92
Коммит
74daab44a0
|
@ -31,8 +31,6 @@ StorageAccessPermissionRequest::StorageAccessPermissionRequest(
|
||||||
PermissionRequest(mType, nsTArray<nsString>()));
|
PermissionRequest(mType, nsTArray<nsString>()));
|
||||||
}
|
}
|
||||||
|
|
||||||
StorageAccessPermissionRequest::~StorageAccessPermissionRequest() { Cancel(); }
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
StorageAccessPermissionRequest::Cancel() {
|
StorageAccessPermissionRequest::Cancel() {
|
||||||
if (!mCallbackCalled) {
|
if (!mCallbackCalled) {
|
||||||
|
|
|
@ -43,7 +43,7 @@ class StorageAccessPermissionRequest final
|
||||||
nsIPrincipal* aNodePrincipal,
|
nsIPrincipal* aNodePrincipal,
|
||||||
AllowCallback&& aAllowCallback,
|
AllowCallback&& aAllowCallback,
|
||||||
CancelCallback&& aCancelCallback);
|
CancelCallback&& aCancelCallback);
|
||||||
~StorageAccessPermissionRequest();
|
~StorageAccessPermissionRequest() = default;
|
||||||
|
|
||||||
unsigned CalculateSimulatedDelay();
|
unsigned CalculateSimulatedDelay();
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче