mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Issue #2672 - Part 1: Load nsCookieService OMT and use sync reads.
No more lazy-loading on the main thread, thanks. Everyone needs this.
This commit is contained in:
parent
334de9ffcc
commit
aec27853c6
3 changed files with 426 additions and 568 deletions
|
|
@ -1437,6 +1437,11 @@ nsIOService::Observe(nsISupports *subject,
|
|||
nsCOMPtr<nsIPrefBranch> prefBranch;
|
||||
GetPrefBranch(getter_AddRefs(prefBranch));
|
||||
PrefsChanged(prefBranch, MANAGE_OFFLINE_STATUS_PREF);
|
||||
|
||||
// Issue #2672 - Read cookie database at an early-as-possible time
|
||||
// off main thread. Hence, we have more chance to finish db query
|
||||
// before something calls into the cookie service.
|
||||
nsCOMPtr<nsISupports> cookieServ = do_GetService(NS_COOKIESERVICE_CONTRACTID);
|
||||
}
|
||||
} else if (!strcmp(topic, NS_XPCOM_SHUTDOWN_OBSERVER_ID)) {
|
||||
// Remember we passed XPCOM shutdown notification to prevent any
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue