Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Overwrite' option when opening a new page in a Web App? #265

Closed
HarveyEllis opened this issue Jan 11, 2023 · 4 comments
Closed

'Overwrite' option when opening a new page in a Web App? #265

HarveyEllis opened this issue Jan 11, 2023 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@HarveyEllis
Copy link

HarveyEllis commented Jan 11, 2023

Problem Description

We can currently have multiple tabs in the same window for the same PWA. We cannot however, have a new visit from outside overwrite the page in the Web app I don't think? (I've had a look round the settings and this doesn't seem to be the case?)

Use case: I have a workflow set up so that when I click on GH/Zendesk issues from slack they open a Github/Zendesk PWA. Every time I click on one, I'd like it just to use the same window, but navigate away from whatever I was looking at (I go back to slack and open a new issue, but I've either commented or read the previous one completely before I do that).

Proposed Solution

A new setting for "overwrite current page" would be nice so that when we click a link or open a page in a web app we can choose to have that open action overwrite whatever is already there.

Additional Information

I suppose this could be possible by installing some kind of tab limiter in every PWA installed, but that is a bit faffy.

@HarveyEllis HarveyEllis added the enhancement New feature or request label Jan 11, 2023
@filips123
Copy link
Owner

So, you want something like "Open a web app in an existing window of that web app", except it overwrites existing tab instead of creating a new one?

@HarveyEllis
Copy link
Author

Yes - that is what I was trying to do.

Managed to emulate this by:

  • Setting tabbed browsing to on in the window you want
  • Set new tabs to open in the same
  • Use userChrome.css to disable tabs

Maybe others could just do that?

A bit awkward and involved to set up, but works.

@filips123
Copy link
Owner

Nice that you managed to set this up. I think it shouldn't be too hard to implement, so I'll probably add a proper option for this in the future.

@filips123 filips123 moved this to To Do in PWAsForFirefox Jan 16, 2023
@filips123 filips123 added this to the 2.5.0 milestone Feb 6, 2023
@filips123 filips123 moved this from To Do to In Progress in PWAsForFirefox Feb 7, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in PWAsForFirefox Feb 8, 2023
@filips123
Copy link
Owner

I've replaced an existing "Open a web app in an existing window of that web app" preference with a new "When launching a web app that is already opened" that allows more configuration for handling web app launch. Option "Replace the existing tab" should then do what want.

This will be available in 2.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants