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

For #8123: Fix history title crash #8174

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

NotWoods
Copy link
Contributor


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.

@@ -680,7 +680,13 @@ class GeckoEngineSession(
session: GeckoSession,
historyList: GeckoSession.HistoryDelegate.HistoryList
) {
val items = historyList.map { HistoryItem(title = it.title, uri = it.uri) }
val items = historyList.map {
val title: String? = it.title
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you leave a comment here why we are doing this and link to the GV bug that fixes the issue.

@NotWoods
Copy link
Contributor Author

bors r=jonalmeida

@bors
Copy link

bors bot commented Aug 21, 2020

Build succeeded:

@bors bors bot merged commit 96a8a14 into mozilla-mobile:master Aug 21, 2020
@NotWoods NotWoods deleted the 8123_history-crash branch August 21, 2020 18:33
@jonalmeida jonalmeida linked an issue Aug 21, 2020 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GeckoEngineSession#onHistoryStateChange: it.title must not be null
2 participants