Skip to content

Conversation

@ccw-morris
Copy link
Contributor

@ccw-morris ccw-morris commented Sep 10, 2025

No description provided.

@ccw-morris ccw-morris requested a review from Copilot September 10, 2025 09:59

This comment was marked as outdated.

@ccw-morris ccw-morris requested a review from Copilot September 10, 2025 10:14

This comment was marked as outdated.

@ccw-morris ccw-morris requested a review from Copilot September 10, 2025 11:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the error handling behavior in the MessengerWebViewActivity to prevent redirecting to the app's error page when errors originate from external domains. The change ensures that only errors from the main Messenger domain trigger the error page, allowing external resources to fail gracefully without disrupting the user experience.

Key Changes

  • Added domain validation before redirecting to error page
  • Imported URL parsing utilities for domain comparison
  • Added exception handling for malformed URLs

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@qsdnikola qsdnikola changed the base branch from main to develop October 2, 2025 18:41
@qsdnikola qsdnikola changed the base branch from develop to main October 2, 2025 18:42
@qsdnikola qsdnikola force-pushed the bug/sc-199871/messenger-content-could-not-be-loaded-error branch from 15045e8 to 4210703 Compare October 2, 2025 18:48
@qsdnikola qsdnikola changed the base branch from main to develop October 2, 2025 18:49
@qsdnikola qsdnikola changed the title do not redirect to the App error page when the error comes from anoth… fix: SC-199871 Prevent redirect to app error page for external domain errors Oct 2, 2025
@qsdnikola qsdnikola merged commit 9c75039 into develop Oct 3, 2025
3 checks passed
qsdnikola added a commit that referenced this pull request Oct 3, 2025
* Update codeql.yml

* Update README.md

* DP-60 Adjust url and script

* Update README.md with Java support code example

* DP-36 Add inject script and validation changes (#23)

* Update README.md

* feat: DP-63 Build webview url (#24)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Gradle and CI update (#29)

* fix: SC-199871 Prevent redirect to app error page for external domain errors (#27)

Do not redirect to the App error page for errors coming from external domains.

* Update README.md

---------

Co-authored-by: Igor QSD <igor.maric@qsd.ba>
Co-authored-by: Chris Morris <ccwm_uk@yahoo.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants