icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include "TCPSocketParent.h"
|
||||
#include "mozilla/BasePrincipal.h"
|
||||
#include "mozilla/ErrorResult.h"
|
||||
#include "mozilla/StaticPrefs_dom.h"
|
||||
#include "mozilla/SyncRunnable.h"
|
||||
#include "mozilla/dom/RootedDictionary.h"
|
||||
#include "mozilla/dom/ScriptSettings.h"
|
||||
|
|
@ -1163,6 +1164,10 @@ TCPSocket::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
|
||||
/* static */
|
||||
bool TCPSocket::ShouldTCPSocketExist(JSContext* aCx, JSObject* aGlobal) {
|
||||
if (XRE_IsContentProcess() &&
|
||||
!StaticPrefs::dom_tcpsocket_in_child_enabled()) {
|
||||
return false;
|
||||
}
|
||||
JS::Rooted<JSObject*> global(aCx, aGlobal);
|
||||
return nsContentUtils::ObjectPrincipal(global)->IsSystemPrincipal();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue