mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
02217e5d26
commit
014c24c2a5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user