mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
4a6ff21ab5
While showing a doorhanger permisison prompt, if the user presses the ESC key we call the secondary action callback, passing in whether any checkbox on the popup notification was checked. In the case of an autoplay-media permission prompt, we have a "remember" checkbox, which is checked by default. So pressing ESC means the user will remember a "block" result for the current site. We believe that users don't expect pressing ESC to result in a remembered decision, they expect pressing ESC to avoid making a decision. So we want to ignore the checkbox when ESC is pressed for autoplay-media. So this patch adds a new PopupNotification behaviour which reports the source of event which caused the action callback to be called. This enables the ESC key press to ignore storing a permission. Note: the change here to not store a permission on ESC press applies to all permissions, not just autoplay-media. MozReview-Commit-ID: IUWFN8LG9VF --HG-- extra : rebase_source : b004bc211177a7bfb6dcea563d75db9a6750b214 |
||
---|---|---|
.. | ||
test | ||
ActorsChild.cpp | ||
ActorsChild.h | ||
ActorsParent.cpp | ||
ActorsParent.h | ||
Client.h | ||
FileStreams.cpp | ||
FileStreams.h | ||
moz.build | ||
nsIQuotaCallbacks.idl | ||
nsIQuotaManagerService.idl | ||
nsIQuotaRequests.idl | ||
nsIQuotaResults.idl | ||
OriginScope.h | ||
PersistenceType.h | ||
PQuota.ipdl | ||
PQuotaRequest.ipdl | ||
PQuotaUsageRequest.ipdl | ||
QuotaCommon.h | ||
QuotaManager.h | ||
QuotaManagerService.cpp | ||
QuotaManagerService.h | ||
QuotaObject.h | ||
QuotaRequests.cpp | ||
QuotaRequests.h | ||
QuotaResults.cpp | ||
QuotaResults.h | ||
SerializationHelpers.h | ||
StorageManager.cpp | ||
StorageManager.h | ||
UsageInfo.h |