Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Revert "For #13336: Open bookmarks in current tab (#23169)"
Browse files Browse the repository at this point in the history
This reverts commit e73deb2.

(cherry picked from commit d1c0e9b)
  • Loading branch information
rocketsroger authored and mergify-bot committed Feb 23, 2022
1 parent 4e9a32a commit b45adf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class DefaultBookmarkController(
val flags = EngineSession.LoadUrlFlags.select(EngineSession.LoadUrlFlags.ALLOW_JAVASCRIPT_URL)
openInNewTabAndShow(
item.url!!,
false,
true,
BrowserDirection.FromBookmarks,
activity.browsingModeManager.mode,
flags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class BookmarkControllerTest {
}

@Test
fun `handleBookmarkTapped should load the bookmark in the current tab`() {
fun `handleBookmarkTapped should load the bookmark in a new tab`() {
var invokePendingDeletionInvoked = false
val flags = EngineSession.LoadUrlFlags.select(EngineSession.LoadUrlFlags.ALLOW_JAVASCRIPT_URL)

Expand All @@ -124,7 +124,7 @@ class BookmarkControllerTest {
verify {
homeActivity.openToBrowserAndLoad(
item.url!!,
false,
true,
BrowserDirection.FromBookmarks,
flags = flags
)
Expand Down Expand Up @@ -290,7 +290,7 @@ class BookmarkControllerTest {
verify {
homeActivity.openToBrowserAndLoad(
item.url!!,
false,
true,
BrowserDirection.FromBookmarks,
flags = flags
)
Expand Down

0 comments on commit b45adf2

Please sign in to comment.