Closed Bug 1679295 Opened 5 years ago Closed 5 years ago

ext-cloudFile.js doesn't avoid unregistering providers on shutdown

Categories

(Thunderbird :: FileLink, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1680989

People

(Reporter: standard8, Unassigned)

References

Details

I cam across this code earlier today:

https://searchfox.org/comm-central/rev/709ab8c3e9eecdfe11d848cf717236948b4d6800/mail/components/extensions/parent/ext-cloudFile.js#240-245

  onShutdown(reason) {
    if (reason == "APP_SHUTDOWN") {
      return;
    }
    cloudFileAccounts.unregisterProvider(this.providerType);
  }

Unfortunately that doesn't work for extension API definitions. The argument passed to onShutdown is typically isAppShutdown and is a boolean value, e.g. https://searchfox.org/comm-central/search?q=isAppShutdown&path=&case=false&regexp=false

Therefore the unregister won't be skipped on app shutdown.

(assuming this affects 78, and isn't a recent regression)

Version: unspecified → 78
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.