Closed Bug 654287 Opened 9 years ago Closed 8 years ago

nsDocShell.cpp:5551:68: warning: 'virtual nsresult nsIScriptSecurityManager::CheckLoadURI(nsIURI*, nsIURI*, PRUint32)' is deprecated

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [build_warning])

Filing bug on this build warning:
{
nsDocShell.cpp: In member function 'virtual nsresult nsDocShell::SetupRefreshURIFromHeader(nsIURI*, const nsACString_internal&)':

nsDocShell.cpp:5551:68: warning: 'virtual nsresult nsIScriptSecurityManager::CheckLoadURI(nsIURI*, nsIURI*, PRUint32)' is deprecated (declared at ../../dist/include/nsIScriptSecurityManager.h:101)
}

Specifically, the CheckLoadURI documentation says:
>  @deprecated Use checkLoadURIWithPrincipal instead of this function.

Code references:
http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.cpp#5548
http://mxr.mozilla.org/mozilla-central/source/caps/idl/nsIScriptSecurityManager.idl#105
Depends on: 120373
(oops; initially added dependency on bug 120373 since that's the last bug to touch these lines of code (in bonsai history), but it looks like that bug merely tweaked code that had been added much much earlier, before CheckLoadURI was deprecated)
No longer depends on: 120373
Fixed by Bug 327244.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.