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

Fixes window restore and fullscreen #10458

Merged
merged 3 commits into from
Aug 28, 2017
Merged

Conversation

NejcZdovc
Copy link
Contributor

@NejcZdovc NejcZdovc commented Aug 13, 2017

Please don't squash commits

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).
  • Tagged reviewers and labelled the pull request as needed.

Resolves #3558
Resolves #3754
Resolves #6602
Resolves #8600
Resolves #8925
Resolves #9371
Resolves #9709

Test Plan:

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.20.x (Developer Channel) milestone Aug 13, 2017
@NejcZdovc NejcZdovc self-assigned this Aug 13, 2017
@codecov-io
Copy link

codecov-io commented Aug 13, 2017

Codecov Report

Merging #10458 into master will decrease coverage by 0.36%.
The diff coverage is 11.59%.

@@            Coverage Diff             @@
##           master   #10458      +/-   ##
==========================================
- Coverage   54.54%   54.17%   -0.37%     
==========================================
  Files         245      246       +1     
  Lines       21156    21374     +218     
  Branches     3263     3316      +53     
==========================================
+ Hits        11539    11579      +40     
- Misses       9617     9795     +178
Flag Coverage Δ
#unittest 54.17% <11.59%> (-0.37%) ⬇️
Impacted Files Coverage Δ
js/actions/appActions.js 12.94% <ø> (+0.09%) ⬆️
js/constants/appConstants.js 100% <ø> (ø) ⬆️
js/constants/windowConstants.js 100% <ø> (ø) ⬆️
app/browser/reducers/tabsReducer.js 49.36% <ø> (-0.8%) ⬇️
js/stores/windowStore.js 30.28% <0%> (+0.51%) ⬆️
js/contextMenus.js 17.92% <0%> (ø) ⬆️
js/actions/windowActions.js 5.71% <0%> (+0.25%) ⬆️
js/state/frameStateUtil.js 55.91% <100%> (ø) ⬆️
app/sessionStore.js 74.32% <12.5%> (-0.92%) ⬇️
app/browser/windows.js 18.43% <22.22%> (+0.6%) ⬆️
... and 12 more

@NejcZdovc NejcZdovc force-pushed the refactor/window branch 8 times, most recently from deffe88 to 0a18ce6 Compare August 14, 2017 11:13
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this pull request Aug 14, 2017
Pre-work for brave#10458 tests

Auditors: @bbondy @bsclifton

Test Plan:
- covered by automated tests
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this pull request Aug 14, 2017
Pre-work for brave#10458 tests

Auditors: @bbondy @bsclifton

Test Plan:
- covered by automated tests
@luixxiul
Copy link
Contributor

I'm wondering if this could be merged to 0.21 to do enough QA over releases among various environments

@luixxiul luixxiul added the needs-info Another team member needs information from the PR/issue opener. label Aug 15, 2017
@NejcZdovc
Copy link
Contributor Author

This is targeted for 0.20, so we should keep it here

@NejcZdovc NejcZdovc removed the needs-info Another team member needs information from the PR/issue opener. label Aug 15, 2017
@NejcZdovc
Copy link
Contributor Author

This PR is complete, I am just writing some tests

@bsclifton
Copy link
Member

bsclifton commented Aug 23, 2017

I just did some manual testing- it seems all issues are resolved except for #3754

It always centers the window 🤔
position

Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

Lots of GREAT cleanup in this PR! Awesome job 😄

Comment left about one issue which didn't appear to be fixed

@NejcZdovc
Copy link
Contributor Author

@bsclifton #3754 should be fixed now as well. Can you please re-test?

@NejcZdovc
Copy link
Contributor Author

Webdriver test for #3754 added

This was causing a crash which breaks the browser window.
I believe this issue is related to the issues we have where wrong index is picked after closing / tearing off tab

Auditors: @NejcZdovc, @bbondy
Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

I confirmed each issue is working as expected 😄 Great job on this

FYI - I ran into an issue while testing which I think is unrelated to this PR and submitted a patch which prevents the window from crashing (I think the root cause will be fixed when @bbondy finishes up the tab index PR)

@bsclifton
Copy link
Member

I went through all 5 issues and added steps / fixed the labels 😄 Should be good to go! Merging 👍

@bsclifton bsclifton merged commit 6fe9849 into brave:master Aug 28, 2017
NejcZdovc pushed a commit that referenced this pull request Aug 28, 2017
Fixes window restore and fullscreen
@luixxiul luixxiul mentioned this pull request Sep 30, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants