Builds busted (if clang-plugin enabled): mailnews/base/src/nsMsgContentPolicy.cpp:155:23: error: Principal->GetURI is depricated and will be removed soon. Please consider using the new helper functions of nsIPrincipal
Categories
(Thunderbird :: General, defect, P1)
Tracking
(Not tracked)
People
(Reporter: mkmelin, Assigned: mkmelin)
References
Details
Attachments
(3 files, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
3.94 KB,
patch
|
Details | Diff | Splinter Review | |
1.32 KB,
patch
|
benc
:
review+
|
Details | Diff | Splinter Review |
Builds are busted with clang-plugin enabled.
mailnews/base/src/nsMsgContentPolicy.cpp:155:23: error: Principal->GetURI is depricated and will be removed soon. Please consider using the new helper functions of nsIPrincipal.
From bug 1636148 - https://hg.mozilla.org/mozilla-central/rev/1a7e54a71d1d17416b7351dea51db84f936b27d0
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
•
|
||
Needed another fix too to fix some tests (at least). Apparently comparing principal.equals(null) isn't liked anymore. E.g. comm/mail/components/addrbook/test/browser/browser_contact_tree.js and comm/mail/test/browser/account/browser_values.js
Updated•4 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/b8d9cd134ff9
Temporarily disable clang-plugin. rs=bustage-fix
https://hg.mozilla.org/comm-central/rev/091c930b9c4d
Port Bug 1636148 - Make calling nsIPrincipal->GetURI a clang-error. rs=bustage-fix DONTBUILD
Assignee | ||
Comment 5•4 years ago
|
||
(The typo that was in the summary is in the code, don't change.)
Comment 6•4 years ago
|
||
On that last change:
- rv = aRequestPrincipal->GetURI(getter_AddRefs(originatorLocation));
+ BasePrincipal::Cast(loadingPrincipal)->GetURI(getter_AddRefs(originatorLocation));
Is this right? Looking at the original version, should it be:
BasePrincipal::Cast(aRequestPrinciple)->GetURI(getter_AddRefs(originatorLocation));
?
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/comm-central/rev/7ba221cc0eb4 fix mistake in previous patch. r=benc
Comment 9•4 years ago
|
||
Figured we should keep this open until the M-C part of the fix lands ( D75535 ).
Comment hidden (Intermittent Failures Robot) |
Comment 11•4 years ago
|
||
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/integration/autoland/rev/9dd5b0c8f80b don't use nsIPrincipal->GetURI for Thunderbird. r=ckerschb
Comment 12•4 years ago
|
||
OK now that the patch is approved and autoland is open, could we get this landed?
Assignee | ||
Comment 13•4 years ago
•
|
||
Not yet, it needs to be merged to mozilla-central first.
Comment 14•4 years ago
|
||
bugherder |
Comment 15•4 years ago
|
||
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/comm-central/rev/a440d58f09f8 re-enable clang-plugin - back out changeset b8d9cd134ff9. rs=me
Description
•