Bug 1513241: Update loadURI interface and pass a loadURIOptions dictionary from frontend to docshell loads. r=bz

This commit is contained in:
Christoph Kerschbaumer
2019-01-11 12:43:39 +01:00
parent 443a7345f7
commit be58c1d92d
10 changed files with 173 additions and 177 deletions

View File

@@ -56,6 +56,7 @@
#include "mozilla/dom/Event.h" // for Event
#include "mozilla/dom/File.h" // for input type=file
#include "mozilla/dom/FileList.h" // for input type=file
#include "mozilla/dom/LoadURIOptionsBinding.h"
#include "mozilla/TextEvents.h"
using namespace mozilla;
@@ -896,8 +897,9 @@ nsDocShellTreeOwner::HandleEvent(Event* aEvent) {
"nsDocShellTreeOwner::HandleEvent: Need a valid "
"triggeringPrincipal");
#endif
webnav->LoadURI(url, 0, nullptr, nullptr, nullptr,
triggeringPrincipal);
LoadURIOptions loadURIOptions;
loadURIOptions.mTriggeringPrincipal = triggeringPrincipal;
webnav->LoadURI(url, loadURIOptions);
}
}