Closed Bug 1642966 Opened 5 years ago Closed 5 years ago

build bustage 2020-06-03 - /builds/worker/checkouts/gecko/comm/mailnews/base/src/nsMessenger.cpp:460:46: error: too few arguments to function call, expected 3, have 2

Categories

(MailNews Core :: Backend, defect, P1)

Tracking

(thunderbird78 fixed)

RESOLVED FIXED
Thunderbird 79.0
Tracking Status
thunderbird78 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: mkmelin)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

Assignee: nobody → mkmelin+mozilla
Severity: normal → S1
Priority: P5 → P1

https://phabricator.services.mozilla.com/D77027 from bug 1676097 needs to be ported to mailnews too fix this

I see instances of LoadURI with only 2 parameters in the following c++ source files:

mailnews/local/src/nsMailboxService.cpp
mailnews/imap/src/nsImapMailFolder.cpp
mailnews/imap/src/nsImapService.cpp
mailnews/base/src/nsMsgWindow.cpp
mailnews/base/src/nsMsgPrintEngine.cpp
mailnews/base/src/nsMessenger.cpp
mailnews/base/util/nsMsgMailNewsUrl.cpp
mailnews/news/src/nsNntpService.cpp

Yes only two c++ cases needed to be fixed. My local build now succeeded, so I'm going to push a fix.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/45bd9be84c3d
Port bug 1606797 to Thunderbird (nsIExternalProtocolService::loadURI now takes 3 args). rs=bustage-fix DONTBUILD

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

Nightlies re-triggered.

See Also: → 1606797
Target Milestone: --- → Thunderbird 79.0
Attached image image.png

[Approval Request Comment]
https://hg.mozilla.org/comm-central/rev/45bd9be84c3d

Need to uplift that to 78 beta to fix bustage. Bug 1606797 was uplifted to Firefox 78b8.

Attachment #9157950 - Flags: approval-comm-beta?
Comment on attachment 9157950 [details] image.png # HG changeset patch # User Magnus Melin <mkmelin+mozilla@iki.fi> # Date 1591189662 -10800 # Wed Jun 03 16:07:42 2020 +0300 # Node ID 0a887f3b2a7a27d5e5ca9b96c425292e646159ba # Parent 1346aaf4d966114172667f66d60042b371aeab3d Bug 1642966 - Port bug 1606797 to Thunderbird (nsIExternalProtocolService::loadURI now takes 3 args). rs=bustage-fix a=rjl diff -r 1346aaf4d966 -r 0a887f3b2a7a mailnews/base/src/nsMessenger.cpp --- a/mailnews/base/src/nsMessenger.cpp Wed Jun 17 19:26:59 2020 +0000 +++ b/mailnews/base/src/nsMessenger.cpp Wed Jun 03 16:07:42 2020 +0300 @@ -452,17 +452,17 @@ nsCOMPtr<nsIURI> uri; rv = NS_NewURI(getter_AddRefs(uri), PromiseFlatCString(aURL).get()); NS_ENSURE_SUCCESS(rv, rv); nsCOMPtr<nsIExternalProtocolService> extProtService = do_GetService(NS_EXTERNALPROTOCOLSERVICE_CONTRACTID, &rv); NS_ENSURE_SUCCESS(rv, rv); - return extProtService->LoadURI(uri, nullptr); + return extProtService->LoadURI(uri, nullptr, nullptr); } NS_IMETHODIMP nsMessenger::LoadURL(mozIDOMWindowProxy *aWin, const nsACString &aURL) { nsresult rv; SetDisplayCharset(NS_LITERAL_CSTRING("UTF-8")); diff -r 1346aaf4d966 -r 0a887f3b2a7a mailnews/imap/src/nsImapMailFolder.cpp --- a/mailnews/imap/src/nsImapMailFolder.cpp Wed Jun 17 19:26:59 2020 +0000 +++ b/mailnews/imap/src/nsImapMailFolder.cpp Wed Jun 03 16:07:42 2020 +0300 @@ -3797,17 +3797,17 @@ return rv; uri->GetScheme(scheme); if (!scheme.IsEmpty()) { // if the URL scheme does not correspond to an exposed protocol, then we // need to hand this link click over to the external protocol handler. bool isExposed; rv = extProtService->IsExposedProtocol(scheme.get(), &isExposed); if (NS_SUCCEEDED(rv) && !isExposed) - return extProtService->LoadURI(uri, nullptr); + return extProtService->LoadURI(uri, nullptr, nullptr); } } } else { nsCOMPtr<nsIImapService> imapService = do_GetService(NS_IMAPSERVICE_CONTRACTID, &rv); NS_ENSURE_SUCCESS(rv, rv); rv = imapService->GetFolderAdminUrl(this, window, this, nullptr); if (NS_SUCCEEDED(rv)) m_urlRunning = true;
Attachment #9157950 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: