-
Notifications
You must be signed in to change notification settings - Fork 975
Conversation
js/state/siteUtil.js
Outdated
@@ -417,6 +417,10 @@ module.exports.removeSite = function (state, siteDetail, tag, reorder = true, sy | |||
site = site.set('tags', tags) | |||
return state.setIn(stateKey, site) | |||
} else { | |||
if (!tag && module.exports.isHistoryEntry(siteDetail)) { | |||
// Delete the site from history | |||
return state.deleteIn(stateKey) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#10136 is in the 0.21.x milestone whereas this issue should be fixed in 0.19.x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but I tried this PR with STR in #7238. bookmark will disappear and pinned tab will also disappear after relaunch
fix #8761 test plan: 1. open a new tab, go to some site 2. close the tab 3. open about:history. right-click to delete the site. it should disappear from the list 4. open the History menu. you should no longer see the site under 'Recently Closed'. 5. repeat above steps but opening/closing two tabs and selecting both of them to delete instead of only one
ef785e4
to
67aef34
Compare
@darkdh good catch, i think it's fixed now |
Codecov Report
@@ Coverage Diff @@
## master #10069 +/- ##
==========================================
- Coverage 52.95% 52.93% -0.02%
==========================================
Files 228 228
Lines 20308 20327 +19
Branches 3253 3258 +5
==========================================
+ Hits 10754 10761 +7
- Misses 9554 9566 +12
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm now!
Merging. need to make sure this works after #10296 |
I added |
@luixxiul was this actually reverted? Per @diracdeltas comment above, should the two issues she mentioned be reopened? |
I think I misunderstood something. please ignore #10069 (comment). |
fix #8761
test plan:
I tried to write a test for this but couldn't find a way to get Webdriver to click on a context menu item in about:history.
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests