Bug 1335368 part 11. Remove the use of ThreadsafeIsCallerChrome in Event::Init, since that's not really interested in the _caller_ anyway. r=smaug

This commit is contained in:
Boris Zbarsky 2017-02-01 15:43:37 -05:00
parent 02217e5d26
commit 014c24c2a5

View File

@ -37,10 +37,6 @@
namespace mozilla {
namespace dom {
namespace workers {
extern bool IsCurrentThreadRunningChromeWorker();
} // namespace workers
static char *sPopupAllowedEvents;
static bool sReturnHighResTimeStamp = false;
@ -367,7 +363,7 @@ bool
Event::Init(mozilla::dom::EventTarget* aGlobal)
{
if (!mIsMainThreadEvent) {
return nsContentUtils::ThreadsafeIsCallerChrome();
return workers::IsCurrentThreadRunningChromeWorker();
}
bool trusted = false;
nsCOMPtr<nsPIDOMWindowInner> w = do_QueryInterface(aGlobal);