gecko-dev/mobile
Makoto Kato 7c10529183 Bug 1673954 - onLoadError shouldn't return null if using test-support extension APIs. r=geckoview-reviewers,owlish
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
2023-10-02 01:35:31 +00:00
..
android Bug 1673954 - onLoadError shouldn't return null if using test-support extension APIs. r=geckoview-reviewers,owlish 2023-10-02 01:35:31 +00:00
locales Bug 1831872 - Migrate client.name2 string from sync.properties to Fluent. r=markh,fluent-reviewers,geckoview-reviewers,sync-reviewers,flod,m_kato 2023-05-29 15:24:38 +00:00
.eslintrc.js