Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Fix reloading issue with selected tabs + breakpoints#3220

Merged
jbhoosreddy merged 1 commit into
firefox-devtools:masterfrom
jasonLaster:fix-tabs3
Jun 24, 2017
Merged

Fix reloading issue with selected tabs + breakpoints#3220
jbhoosreddy merged 1 commit into
firefox-devtools:masterfrom
jasonLaster:fix-tabs3

Conversation

@jasonLaster
Copy link
Copy Markdown
Contributor

@jasonLaster jasonLaster commented Jun 23, 2017

Fixes: #3221

We were seeing two issues:

  1. tabs were not selected on reload
  2. breakpoints were jumping (we saw this same kinda thing earlier) the root cause is when we try to add the same bp again

how is everything fixed? I changed the action from navigate to connect which now just sets the debuggee url and does not clear any state. I also added lots of tests!

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 24, 2017

Codecov Report

Merging #3220 into master will decrease coverage by 0.19%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #3220     +/-   ##
=========================================
- Coverage    47.9%   47.71%   -0.2%     
=========================================
  Files          98       98             
  Lines        4064     4068      +4     
  Branches      835      836      +1     
=========================================
- Hits         1947     1941      -6     
- Misses       2117     2127     +10
Impacted Files Coverage Δ
src/client/firefox.js 87.5% <100%> (ø) ⬆️
src/reducers/pause.js 35.06% <100%> (ø) ⬆️
src/actions/navigation.js 13.33% <100%> (-2.06%) ⬇️
src/reducers/sources.js 75.86% <57.14%> (-3.16%) ⬇️
src/reducers/event-listeners.js 22.22% <0%> (-11.12%) ⬇️
src/reducers/async-requests.js 91.66% <0%> (-8.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e8d1bc...3afcdf9. Read the comment docs.

@jasonLaster jasonLaster changed the title (wip) fix tabs Fix reloading issue with selected tabs + breakpoints Jun 24, 2017
Comment thread src/reducers/sources.js

if (!url) {
return initialState();
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is a race condition where we don't have a selected source, but we had one prior... It's a small fix that came from some fast tests.

Copy link
Copy Markdown
Contributor Author

@jasonLaster jasonLaster left a comment

Choose a reason for hiding this comment

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

one note

* affects selected tabs
* casues breakpoints to shift on reload
Copy link
Copy Markdown
Contributor

@jbhoosreddy jbhoosreddy left a comment

Choose a reason for hiding this comment

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

LGTM

@jbhoosreddy jbhoosreddy merged commit b543bc8 into firefox-devtools:master Jun 24, 2017
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.

[Tabs] are not selected on reload

2 participants