Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Fixes tab title on tab update #8992

Merged
merged 1 commit into from
May 22, 2017
Merged

Conversation

NejcZdovc
Copy link
Contributor

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Resolves #8908

Auditors: @bsclifton @bridiver

Test Plan:

  • go to site clifton.io
  • create a history
  • click on back/forward buttons
  • check that title is always correct

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

@NejcZdovc NejcZdovc added this to the 0.15.300 milestone May 21, 2017
@NejcZdovc NejcZdovc self-assigned this May 21, 2017
@NejcZdovc NejcZdovc requested review from bridiver and bsclifton May 21, 2017 20:25
@@ -92,7 +92,7 @@ const frameReducer = (state, action, immutableAction) => {
}
}

const title = immutableAction.getIn(['changeInfo', 'title'])
const title = immutableAction.getIn(['tabValue', 'title'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

this may help, but won't be a complete fix because it doesn't address the race condition. Getting the title from tabValue will only fix the title when the tab state changes for some other reason. I think this change is ok for now, but we should add a comment/TODO that the race condition with appState is the real problem

Copy link
Collaborator

Choose a reason for hiding this comment

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

we also shouldn't mark this as resolving the issue for the same reason

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently the only problem with the title not updating is when you use navigation buttons, so when tab state changes. What should I wrote in todo? TODO fix race condition with appState

Resolves brave#8908

Auditors: @bsclifton @bridiver

Test Plan:
- go to site clifton.io
- create a history
- click on back/forward buttons
- check that title is always correct
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.

4 participants