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

New debug menu option - 'Allow Manual Tab Discarding': creates 'Discard' tab context menu command #13118

Merged
merged 1 commit into from
Feb 13, 2018

Conversation

petemill
Copy link
Member

@petemill petemill commented Feb 13, 2018

Test plan

  • run in development mode so that the 'Debug' app menu shows
  • Enable the Debug --> Allow Manual Tab Discarding option
  • open some tabs
  • When you right-click a tab, the 'discard' menu should show
  • Click the 'discard' option in the context menu of a previously-loaded tab
  • The tab contents should be discarded

Note: that you will not be able to switch to the tab due to #10673 which this debug menu option is designed to help fix!

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.
  • Request a security/privacy review as needed. (Ask a Brave employee to help if you cannot access this document.)

Reviewer Checklist:

  • Request a security/privacy review as needed if one was not already requested.

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

@codecov-io
Copy link

codecov-io commented Feb 13, 2018

Codecov Report

Merging #13118 into master will decrease coverage by 0.05%.
The diff coverage is 12.9%.

@@            Coverage Diff             @@
##           master   #13118      +/-   ##
==========================================
- Coverage   56.36%    56.3%   -0.06%     
==========================================
  Files         278      278              
  Lines       27550    27588      +38     
  Branches     4491     4496       +5     
==========================================
+ Hits        15528    15533       +5     
- Misses      12022    12055      +33
Flag Coverage Δ
#unittest 56.3% <12.9%> (-0.06%) ⬇️
Impacted Files Coverage Δ
js/constants/appConfig.js 100% <ø> (ø) ⬆️
js/constants/appConstants.js 100% <ø> (ø) ⬆️
js/constants/settings.js 100% <ø> (ø) ⬆️
app/browser/tabs.js 24.23% <0%> (+0.01%) ⬆️
js/actions/appActions.js 19.67% <0%> (-0.11%) ⬇️
app/browser/reducers/tabsReducer.js 40.63% <0%> (-1.28%) ⬇️
js/contextMenus.js 18.51% <0%> (-0.02%) ⬇️
app/browser/menu.js 51.64% <36.36%> (-0.15%) ⬇️
... and 2 more

@@ -20,7 +20,7 @@ const settings = require('../../js/constants/settings')

// State
const {getByTabId} = require('../common/state/tabState')
const tabState = require('../../app/common/state/tabState')
const tabState = require('../common/state/tabState')
Copy link
Member

Choose a reason for hiding this comment

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

weird; the path before was invalid, right? did references before to tabState work (before this PR)?

Copy link
Contributor

Choose a reason for hiding this comment

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

it was not invalid, we just went one more step up and then back into the app folder

Copy link
Contributor

Choose a reason for hiding this comment

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

where now we just go one folder up and then into common

Copy link
Member

Choose a reason for hiding this comment

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

ah- I totally see it now 😄 Was up past bedtime and didn't catch that LOL

Copy link
Member Author

Choose a reason for hiding this comment

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

yep, just some tiny clean up whilst there

@petemill petemill changed the title New debug menu option - 'Allow Manual Tab Discarding' will create 'Discard' tab context menu command New debug menu option - 'Allow Manual Tab Discarding': creates 'Discard' tab context menu command Feb 13, 2018
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.

works great 😄 👍

@bsclifton bsclifton added this to the 0.21.x (Beta Channel) milestone Feb 13, 2018
@bsclifton bsclifton merged commit 9b393df into master Feb 13, 2018
@bsclifton bsclifton deleted the feature/manual-tab-discard branch February 13, 2018 17:54
bsclifton added a commit that referenced this pull request Feb 13, 2018
New debug menu option - 'Allow Manual Tab Discarding': creates 'Discard' tab context menu command
bsclifton added a commit that referenced this pull request Feb 13, 2018
New debug menu option - 'Allow Manual Tab Discarding': creates 'Discard' tab context menu command
@bsclifton
Copy link
Member

master 9b393df
0.22.x 9621f74
0.21.x a527aff

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants