Closed
Bug 1544222
Opened 5 years ago
Closed 5 years ago
Port Bug 1526243 "[Linux] Don't use nsGConfService in nsGNOMEShellService.cpp" to SeaMonkey
Categories
(SeaMonkey :: OS Integration, enhancement)
Tracking
(seamonkey2.53 affected, seamonkey2.57esr fixed)
RESOLVED
FIXED
seamonkey2.65
People
(Reporter: frg, Assigned: frg)
Details
Attachments
(1 file, 2 obsolete files)
9.79 KB,
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
nsGConfService was removed in Bug 1433685. We need to remove its usage from our nsGNOMEShellService.cpp.
Assignee | ||
Comment 1•5 years ago
|
||
Taking the bug for Bill. Initial WIP patch from him.
Assignee | ||
Updated•5 years ago
|
Severity: trivial → blocker
Attachment #9058097 -
Attachment is obsolete: true
Comment on attachment 9058153 [details] [diff] [review] port-1526243.patch >+++ b/suite/components/shell/nsGNOMEShellService.cpp > NS_IMETHODIMP > nsGNOMEShellService::SetDefaultClient(bool aForAllUsers, > bool aClaimAllTypes, uint16_t aApps) > { > nsresult rv; > > nsCOMPtr<nsIGIOMimeApp> app; > nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID); > if (giovfs) { >- nsCString brandName; >- rv = GetBrandName(brandName); Leave these two lines in please. >+ nsresult rv; >+ nsCOMPtr<nsIStringBundleService> bundleService = >+ do_GetService(NS_STRINGBUNDLE_CONTRACTID, &rv); >+ NS_ENSURE_SUCCESS(rv, rv); >+ >+ nsCOMPtr<nsIStringBundle> brandBundle; >+ rv = bundleService->CreateBundle(BRAND_PROPERTIES, >+ getter_AddRefs(brandBundle)); Don't need this whole section. > NS_ENSURE_SUCCESS(rv, rv); > Keep this. >+ nsAutoString brandName; >+ brandBundle->GetStringFromName("brandName", brandName); >+ >+ NS_ConvertUTF16toUTF8 id(brandName); Don't need this whole section. >+ rv = giovfs->FindAppFromCommand(mAppPath, getter_AddRefs(app)); >+ if (NS_FAILED(rv)) { >+ // Application was not found in the list of installed applications >+ // provided by OS. Fallback to create appInfo from command and name. >+ rv = giovfs->CreateAppFromCommand(mAppPath, id, getter_AddRefs(app)); Now would use brandName rather than id here. Other than that looks good, r=me
Attachment #9058153 -
Flags: review+
Carrying forward r+
Attachment #9058153 -
Attachment is obsolete: true
Attachment #9058158 -
Flags: review+
Keywords: checkin-needed
Comment on attachment 9058158 [details] [diff] [review] port-1526243.patch a=me if needed
Attachment #9058158 -
Flags: approval-comm-esr60+
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/38970ece368e
Port bug 1526243 [Don't use nsGConfService in nsGNOMEShellService.cpp] to suite. r=IanN
Assignee | ||
Comment 7•5 years ago
|
||
Lets decide later if we take it to 2.57.
status-seamonkey2.53:
--- → affected
status-seamonkey2.57esr:
--- → affected
Target Milestone: --- → seamonkey2.65
Assignee | ||
Comment 8•5 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•