Bug 1418119 - Update the assertion in nsDocShell::InternalLoad to reflect the change of OnLinkClickSync in bug 1397512. r=bz

MozReview-Commit-ID: J7BCKdsH8Dx
This commit is contained in:
Samael Wang
2017-11-23 15:07:11 +08:00
parent 4d62e92541
commit 7bebbbc7ac

View File

@@ -10279,7 +10279,11 @@ nsDocShell::InternalLoad(nsIURI* aURI,
INTERNAL_LOAD_FLAGS_DONT_SEND_REFERRER));
MOZ_ASSERT(!aPostData);
MOZ_ASSERT(!aHeadersData);
MOZ_ASSERT(aLoadType == LOAD_LINK);
// If OnLinkClickSync was invoked inside the onload handler, the load
// type would be set to LOAD_NORMAL_REPLACE; otherwise it should be
// LOAD_LINK.
MOZ_ASSERT(aLoadType == LOAD_LINK ||
aLoadType == LOAD_NORMAL_REPLACE);
MOZ_ASSERT(!aSHEntry);
MOZ_ASSERT(aFirstParty); // Windowwatcher will assume this.