Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Conversation

@grigoryk
Copy link
Contributor

@grigoryk grigoryk commented Oct 6, 2021

We observed via Sentry that we were hitting a bunch of 'url without
base' exceptions coming out of metadata observation API. One of these
cases where we'll end-up trying to process a URL without a base (e.g.
without a scheme) is when we're processing external intent and see
something like "example.com", instead of "https://example.com".

In our toolbar, we use String.toNormalizedUrl to handle this case.

In this patch, we now do the same for URLs we encounter in external
intents, as well.

Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Milestone: Make sure issues closed by this pull request are added to the milestone of the version currently in development.
  • Breaking Changes: If this is a breaking change, please push a draft PR on Reference Browser to address the breaking issues.

We observed via Sentry that we were hitting a bunch of 'url without
base' exceptions coming out of metadata observation API. One of these
cases where we'll end-up trying to process a URL without a base (e.g.
without a scheme) is when we're processing external intent and see
something like "example.com", instead of "https://example.com".

In our toolbar, we use String.toNormalizedUrl to handle this case.

In this patch, we now do the same for URLs we encounter in external
intents, as well.
@grigoryk grigoryk requested review from a team, Amejia481 and jonalmeida as code owners October 6, 2021 05:27
@grigoryk
Copy link
Contributor Author

grigoryk commented Oct 6, 2021

@csadilek csadilek added the 🛬 needs landing PRs that are ready to land label Oct 6, 2021
@mergify mergify bot merged commit 22841b5 into mozilla-mobile:main Oct 6, 2021
@csadilek
Copy link
Contributor

csadilek commented Oct 6, 2021

@Mergifyio backport releases/94.0

@mergify
Copy link
Contributor

mergify bot commented Oct 6, 2021

Command backport releases/94.0: success

Backports have been created

@grigoryk grigoryk deleted the prependHttpForIntentUrls branch October 6, 2021 17:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🛬 needs landing PRs that are ready to land

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants