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

Extension API: chrome.tabs.duplicate #7458

Closed
jonathansampson opened this issue Mar 2, 2017 · 5 comments
Closed

Extension API: chrome.tabs.duplicate #7458

jonathansampson opened this issue Mar 2, 2017 · 5 comments
Assignees
Labels
bug feature/extensions fixed-with-brave-core This issue will automatically resolved with the replacement of Muon with Brave Core. needs-owner ♞ This issue is tagged for an upcoming release but has no owner. wontfix

Comments

@jonathansampson
Copy link
Collaborator

jonathansampson commented Mar 2, 2017

https://developer.chrome.com/extensions/tabs#method-duplicate

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

  • Describe the issue you encountered:
    Unable to duplicate tabs with chrome.tabs.duplicate.

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

  • Brave Version (revision SHA):
    0.13.0

  • Steps to reproduce:

    1. Call chrome.tabs.duplicate(tabid), where tabid is a valid ID.
    2. Note Unchecked runtime.lastError... message

The callback on chrome.tabs.duplicate is optional, and therefore no exception should be thrown. Complying with our implementation, however, still does not yield the expected results:

chrome.tabs.duplicate(tabid, () => console.log(chrome.runtime.lastError)

Instead, the user is presented with Access to extension API denied.

  • Actual result:
    No tabs are duplicated.

  • Expected result:
    The tab should be duplicated, and the callback should not be required.

  • 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

@bsclifton
Copy link
Member

moving to 0.13.7

@bsclifton bsclifton modified the milestones: 0.13.7, 0.13.6 Mar 14, 2017
@bsclifton
Copy link
Member

moving to 0.14.3

@bsclifton bsclifton modified the milestones: 0.14.3, 0.14.2 Apr 5, 2017
@bsclifton bsclifton added needs-owner ♞ This issue is tagged for an upcoming release but has no owner. and removed needs-owner ♞ This issue is tagged for an upcoming release but has no owner. labels Apr 7, 2017
@kevinlawler
Copy link
Contributor

kevinlawler commented Apr 19, 2017

It seems like in the complete case duplicate should preserve:

  • location
  • history
  • scroll state
  • zoom state
  • ...

It should drop:

  • input values (eg, user edits to textarea)
  • ...

I haven't seen the complete list specified anywhere yet. This is what I have currently.

@bbondy bbondy modified the milestones: 0.15.3, 0.15.2 May 2, 2017
@jonathansampson jonathansampson changed the title chrome.tabs.duplicate unsupported Extension APIs: chrome.tabs.duplicate May 4, 2017
@alexwykoff alexwykoff modified the milestones: 0.16.200, 0.16.100 May 23, 2017
@alexwykoff alexwykoff removed this from the 0.18.x (Developer Channel) milestone Jun 13, 2017
@jonathansampson jonathansampson mentioned this issue Jun 18, 2017
47 tasks
@jonathansampson
Copy link
Collaborator Author

Blocks Vimium (#9531)

@jonathansampson jonathansampson changed the title Extension APIs: chrome.tabs.duplicate Extension API: chrome.tabs.duplicate Jun 18, 2017
@jonathansampson
Copy link
Collaborator Author

jonathansampson commented Aug 12, 2017

@kevinlawler, @bridiver Can we, for now, simply map this to cloneByTabIndex?

@bsclifton bsclifton added this to the Triage Backlog milestone Nov 27, 2017
@bsclifton bsclifton added fixed-with-brave-core This issue will automatically resolved with the replacement of Muon with Brave Core. wontfix labels Jul 25, 2018
@bsclifton bsclifton removed this from the Triage Backlog milestone Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug feature/extensions fixed-with-brave-core This issue will automatically resolved with the replacement of Muon with Brave Core. needs-owner ♞ This issue is tagged for an upcoming release but has no owner. wontfix
Projects
None yet
Development

No branches or pull requests

5 participants