Closed Bug 1544222 Opened 6 years ago Closed 6 years ago

Port Bug 1526243 "[Linux] Don't use nsGConfService in nsGNOMEShellService.cpp" to SeaMonkey

Categories

(SeaMonkey :: OS Integration, enhancement)

All
Linux
enhancement
Not set
blocker

Tracking

(seamonkey2.53 affected, seamonkey2.57esr fixed)

RESOLVED FIXED
seamonkey2.65
Tracking Status
seamonkey2.53 --- affected
seamonkey2.57esr --- fixed

People

(Reporter: frg, Assigned: frg)

Details

Attachments

(1 file, 2 obsolete files)

nsGConfService was removed in Bug 1433685. We need to remove its usage from our nsGNOMEShellService.cpp.

Attached patch port-1526243.patch (obsolete) — Splinter Review

Taking the bug for Bill. Initial WIP patch from him.

Severity: trivial → blocker
Attached patch port-1526243.patch (obsolete) — Splinter Review
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

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED

Lets decide later if we take it to 2.57.

Target Milestone: --- → seamonkey2.65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: