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

Command+Click doesn't set parent frame correctly #6971

Closed
bbondy opened this issue Feb 1, 2017 · 6 comments
Closed

Command+Click doesn't set parent frame correctly #6971

bbondy opened this issue Feb 1, 2017 · 6 comments

Comments

@bbondy
Copy link
Member

bbondy commented Feb 1, 2017

  • Did you search for similar issues before submitting this one?
    yes

  • Describe the issue you encountered:
    If you command+click a link it should glue it to the current tab.

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    macOS

  • Brave Version (revision SHA):
    0.13.0 and 0.13.1 official

  • Steps to reproduce:

    1. Open 2 tabs
    2. Go to the first tab and load brave.com
    3. Command + click on a link
  • Actual result:
    It opens in position 3

  • Expected result:
    It should open in position 2

  • Will the steps above reproduce in a fresh profile? If not what other info can be added?
    Yes

  • Is this an issue in the currently released version?
    Yes

  • Can this issue be consistently reproduced?
    Yes

  • Extra QA steps:

@bbondy bbondy added this to the 0.13.2 milestone Feb 1, 2017
@bbondy
Copy link
Member Author

bbondy commented Feb 1, 2017

doh duping to #6907

@bbondy bbondy closed this as completed Feb 1, 2017
@bbondy bbondy removed this from the 0.13.2 milestone Feb 1, 2017
@bbondy
Copy link
Member Author

bbondy commented Feb 1, 2017

Actually I'm going to re-open this to just fix the bug that exists and we can see what to do about the setting in general in the other issue. This is just to fix the regression.

@NejcZdovc
Copy link
Contributor

NejcZdovc commented Feb 1, 2017

Adding some additional info:

the value is not correct in app/browser/tabs.js
const openerTabId = !source.isDestroyed() ? source.getId() : -1
this line in tabs.js return 1
but only for add-new-contents, for open-url-from-tab it’s returning different number (didn’t test it but I assume it's correct)

@NejcZdovc
Copy link
Contributor

NejcZdovc commented Feb 1, 2017

Some steps how to test it:

  1. pin tab (in my case https://twitter.com/brave)
  2. restart browser
  3. go to the pinned tab
  4. with middle mouse click on first twitter link
  5. go to freshly opened tab
  6. click with middle mouse button on any link in the header
  7. go to freshly opened tab

now you should have always the same number and you can reproduce it infinitely
After that you can click on new tab
open fresh page and middle mouse click on a link and value is still the same (edited)
please let me know if you can reproduce it

And some gifs (problematic is add-new-contents which is the same in different tabs, which is wrong):
untitled
untitled1

In this gifs I added console log in app/browser/tabs.js on this lines:
image

@bbondy bbondy removed their assignment Feb 2, 2017
@bbondy
Copy link
Member Author

bbondy commented Feb 2, 2017

works now

@NejcZdovc
Copy link
Contributor

I tried my scenarios and it's working. Great job all

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

No branches or pull requests

5 participants