Open Bug 1795137 Opened 3 years ago Updated 2 years ago

Error page not working properly

Categories

(Firefox for Android :: Browser Engine, defect)

All
Android
defect

Tracking

()

People

(Reporter: csadilek, Unassigned)

Details

From github: https://github.com/mozilla-mobile/android-components/issues/6529.

Sample: SystemEngineView

Case 1:
If used as is, it does not work
val errorPageUri = ErrorPages.createUrlEncodedErrorPage( context = context, errorType = improvedErrorType, uri = uri, htmlResource = riskLevel.htmlRes ) return RequestInterceptor.ErrorResponse.Uri(errorPageUri)

Case 2:
Replace resource://android/assets to file:///android_asset
return RequestInterceptor.ErrorResponse.Uri(errorPageUri.replace("resource://android/assets", "file:///android_asset"))
The error page reloads and the site does not load

Case 3:
Use default content error page
return RequestInterceptor.ErrorResponse.Content(ErrorPages.createErrorPage(context, improvedErrorType, uri))

The error page just disappeared.
GeckoView might be the same.

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)
Severity: -- → S3
Flags: needinfo?(cpeterson)
You need to log in before you can comment on or make changes to this bug.