Bug 1872297 - Fix `nsIDefaultAgent`'s `appRanRecently` in XPIDL and JavaScript. r=mhughes

Differential Revision: https://phabricator.services.mozilla.com/D197391
This commit is contained in:
Nicholas Rishel 2023-12-28 22:38:34 +00:00
Родитель 3c8e24ffbf
Коммит b7168d21ed
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -213,7 +213,7 @@ async function runWithRegistryLocked(aMutexGuardedFunction) {
}
async function doTask(defaultAgent, force) {
if (!defaultAgent.appRecentlyRan() && !force) {
if (!defaultAgent.appRanRecently() && !force) {
lazy.log.warn("Main app has not ran recently, exiting without running.");
throw new Error("App hasn't ran recently");
}

Просмотреть файл

@ -70,7 +70,7 @@ interface nsIDefaultAgent : nsISupports
*
* @return {boolean} true if the app ran recently.
*/
boolean AppRanRecently();
boolean appRanRecently();
/**
* Returns a string for the default browser if known, binned to known browsers.