Open Bug 1760753 Opened 4 years ago Updated 4 years ago

Rename TriggeringPrincipal() to GetTriggeringPrincipal() in nsDocShellLoadState

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

People

(Reporter: timhuang, Unassigned)

Details

The function TriggeringPrincipal() could return a nullptr. To match our function naming rule, we should use GetTriggeringPrincipal() to indicate that this function may return a nullptr.

Aha, now I found https://searchfox.org/mozilla-central/rev/840881e1232f664a58b39caaae6284c7bcf121df/netwerk/base/nsILoadInfo.idl#289.

So perhaps we have a bug that it can be actually null.

(I asked for this bug)

Component: DOM: Core & HTML → DOM: Navigation
You need to log in before you can comment on or make changes to this bug.