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

add clone tab support #2593

Merged
merged 1 commit into from
Jul 22, 2016
Merged

add clone tab support #2593

merged 1 commit into from
Jul 22, 2016

Conversation

bridiver
Copy link
Collaborator

@@ -233,27 +213,49 @@ function getPartition (frameOpts) {
}
return partition
}

function cloneFrame (frameOpts, guestInstanceId) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this actually needs to selectively include properties instead of exclude them. Unlike a webview that is detached and reattached, a cloned webview won't have the same audio playback for instance

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@bsclifton
Copy link
Member

bsclifton commented Jul 20, 2016

Awesome PR! This should enable the "move tab to new window" functionality ??

[--- Commented from Asana.com
#commenter brad richter
---[aa]

@bridiver
Copy link
Collaborator Author

yea, this was intended to be a first step towards "move tab to new window" which I'm working on right now

'isPrivate',
'partitionNumber',
'themeColor',
'computedThemeColor'
Copy link
Member

Choose a reason for hiding this comment

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

what about provisionalLocation and maybe src and location.
provisionalLocation I can see maybe being useful on a about:certerror type of page.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it won't clone about pages

@bbondy
Copy link
Member

bbondy commented Jul 22, 2016

merging for now, seems like mainly the only thing to do in a follow up is cloneTab in the tab and not the page context menu.

@bbondy
Copy link
Member

bbondy commented Jul 22, 2016

Great work! :)

@bbondy bbondy merged commit 452d212 into master Jul 22, 2016
@@ -334,6 +334,14 @@ class Frame extends ImmutableComponent {
}
this.webview.reloadIgnoringCache()
break
case 'clone':
if (this.isAboutPage()) {
Copy link
Member

Choose a reason for hiding this comment

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

Pls also add a similar check on the context menu to not even show the option to avid people thinking it's a bug.
Is it possible to use appUrlUtil's isNavigatableAboutPage here and there instead?

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.

5 participants