зеркало из https://github.com/mozilla/gecko-dev.git
2e4828ee20
When loading an iframe in the same origin/process, we end up with an edge case. A first "initial" about:blank document is created to bootstrap the iframe. A `DOMWindowCreated` event is fired and its `document.isInitialDocument` is true. If no URL is set on the iframe, it stops there and we won't create any target for this special document. (As we ignore `DOMWindowCreated` events when `document.isInitialDocument` is true) Then, if an URL is set on the iframe, we don't create any new WindowGlobal, instead we will reuse the about:blank's document's one. It means that there won't be any new DOMWindowCreated event. Fortunately, there is a `DOMDocElementInserted` fired, which we can listen here. We can then instantiate a target actor and that, only if no target was previously created by a previous `DOMWindowCreated`. In all other cases, we would receive a `DOMWindowCreated` with `document.isInitialDocument` set to false. Differential Revision: https://phabricator.services.mozilla.com/D128456 |
||
---|---|---|
.. | ||
client | ||
docs | ||
perfdocs | ||
platform | ||
server | ||
shared | ||
startup | ||
.eslintrc.js | ||
.eslintrc.xpcshell.js | ||
CODE_OF_CONDUCT.md | ||
moz.build | ||
templates.mozbuild | ||
tsconfig.json |