Skip to content

Suppress AJAX errors caused by browser navigation

What does this MR do?

Attempts to detect when AJAX errors are caused by browser navigation and suppress the error. This hides the warnings that often show in Firefox when leaving the page as described in #30917 (closed).

This change is hidden behind the suppress_ajax_navigation_errors feature flag and is enabled by default. A follow-up issue has been created to remove this feature flag once the feature has proven itself in production: #32268 (closed).

There is one poorly-written Karma test that broke because of this change; this MR band-aids the issue to keep the pipeline green. A new issue has been opened for this here: #32479 (closed).

This was originally a CE MR

Original CE MR: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32779. Moved here because of single codebase efforts.

Edited by Nathan Friend

Merge request reports