Bug 1590965 store clipboard only once on shutdown r=stransky
authorKarl Tomlinson <karlt+@karlt.net>
Thu, 07 Nov 2019 22:42:16 +0000
changeset 501878 aa0f3547216405f94d08eb7e93bb52675e0de413
parent 501877 771c82ef46a350365f7aad056eb30cea2fae820c
child 501879 7369676b8ab5d4ea0d0461299e0e8a10361a612c
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstransky
bugs1590965
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1590965 store clipboard only once on shutdown r=stransky Depends on D50538 Differential Revision: https://phabricator.services.mozilla.com/D50766
widget/gtk/nsClipboard.cpp
--- a/widget/gtk/nsClipboard.cpp
+++ b/widget/gtk/nsClipboard.cpp
@@ -97,17 +97,16 @@ nsresult nsClipboard::Init(void) {
   } else {
     mContext = new nsRetrievalContextWayland();
 #endif
   }
   NS_ASSERTION(mContext, "Missing nsRetrievalContext for nsClipboard!");
 
   nsCOMPtr<nsIObserverService> os = mozilla::services::GetObserverService();
   if (os) {
-    os->AddObserver(this, "quit-application", false);
     os->AddObserver(this, "xpcom-shutdown", false);
   }
 
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsClipboard::Observe(nsISupports* aSubject, const char* aTopic,