Bug 1748506 - Don't crash for missing registration of "chrome://browser/content/built_in_addons.json" on Android. r=necko-reviewers,Gijs,valentin

org.mozilla.geckoview_testrunner currently permanently crashes locally when running web-platform-tests jobs on Android.

This patch temporarily disables the chrome registration check until the underlying issue has been completely fixed.

Differential Revision: https://phabricator.services.mozilla.com/D135115
This commit is contained in:
Henrik Skupin 2022-01-05 18:48:28 +00:00
parent 699f44afa9
commit 4abc5956e9

View File

@ -3381,6 +3381,13 @@ void CheckForBrokenChromeURL(nsILoadInfo* aLoadInfo, nsIURI* aURI) {
return;
}
#ifdef ANDROID
// See bug 1748506
if (StringEndsWith(filePath, "/built_in_addons.json"_ns)) {
return;
}
#endif
// Ignore fetches/xhrs, as they are frequently used in a way where
// non-existence is OK (ie with fallbacks). This risks false negatives (ie
// files that *should* be there but aren't) - which we accept for now.