зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1620239 - ensure not to access null pointer; r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D65576 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
fc528a6c7a
Коммит
70053c6f5f
|
@ -643,6 +643,7 @@ class ContentHandler {
|
||||||
let getTopURL = channel => {
|
let getTopURL = channel => {
|
||||||
// top-level document
|
// top-level document
|
||||||
if (
|
if (
|
||||||
|
channel.loadInfo &&
|
||||||
channel.loadInfo.externalContentPolicyType ==
|
channel.loadInfo.externalContentPolicyType ==
|
||||||
Ci.nsIContentPolicy.TYPE_DOCUMENT
|
Ci.nsIContentPolicy.TYPE_DOCUMENT
|
||||||
) {
|
) {
|
||||||
|
@ -665,6 +666,7 @@ class ContentHandler {
|
||||||
|
|
||||||
// top-level resource
|
// top-level resource
|
||||||
if (
|
if (
|
||||||
|
channel.loadInfo &&
|
||||||
channel.loadInfo.loadingPrincipal &&
|
channel.loadInfo.loadingPrincipal &&
|
||||||
channel.loadInfo.loadingPrincipal.URI
|
channel.loadInfo.loadingPrincipal.URI
|
||||||
) {
|
) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче