Bug 1609075 - Silence the getEmbedderElement error message. r=jdescottes

This error should hopefully be addressed in bug 1579042.

Differential Revision: https://phabricator.services.mozilla.com/D61466

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alexandre Poirot 2020-02-03 13:49:52 +00:00
Родитель 6c24cec024
Коммит 43612e0dba
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -532,9 +532,8 @@ const NodeActor = protocol.ActorClassWithSpec(nodeSpec, {
// which is retrieved via Node.getEmbedderElement and doesn't return the LocalTabTargetActor.
// We should probably work on TabDescriptor so that the LocalTabTargetActor has a descriptor,
// and see if we can possibly move the local tab specific out of the TargetActor and have
// the TabDescriptor expose a pure FrameTargetActor??
// the TabDescriptor expose a pure FrameTargetActor?? (See bug 1579042)
if (Cu.getObjectPrincipal(global) == Cu.getObjectPrincipal(dbg)) {
dump("Ignored system principal in getEmbedderElement!\n");
return undefined;
}