mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
7c10529183
GeckoView can hook error page by `NavigationDelegate.onLoadError`. But when this delegation returns `null`, test-support Web extensions won't be loaded correctly. A content script of Web extensions is loaded when first document element is inserted. But when `onLoadError` returns null, there is no document element. So content script won't be loaded on this situation. If not fission, content script is already loaded. But if fission, content script may not be loaded if switching process by loading new URL. So we should return non-null string if we use `evaluateJS`. Also, `document.reloadWithHttpsOnlyException` may causes that the document will be unloaded immediately before native message isn't handled. So I use `setTimeout` to call it. Differential Revision: https://phabricator.services.mozilla.com/D189217 |
||
---|---|---|
.. | ||
android | ||
locales | ||
.eslintrc.js |