Android - Define a refresh cookie count in AuthenticatedWebView

Description

In a case where webview returns http error, our webview enters into an infinite loop to refresh the session cookie.

https://github.com/edx/edx-app-android/blob/a785d5394e3c508811edd395a1049cbc0f8ba48b/OpenEdXMobile/src/main/java/org/edx/mobile/view/custom/AuthenticatedWebView.java#L138-L139

For example if we pass a program path which doesn't exist, web-view returns HttpStatus.NOT_FOUND error (404) and webview enters into an infinite loop.

https://github.com/edx/edx-app-android/blob/a93d1bcd03a25d348033eebfbe8edd88e8d1c558/OpenEdXMobile/src/main/java/org/edx/mobile/view/WebViewProgramFragment.java

This story should also be tested again in case when wrong path_id will come in param.
https://openedx.atlassian.net/browse/LEARNER-7015
https://edx.app.link/program_detail

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Assignee

Unassigned

Reporter

Farhan Khan

Labels

None

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Story Points

2

Sprint

Fix versions

Priority

Unset
Configure