Skip to content

feat(sw-controller): compare host instead of href for getWindowClient #2772

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

Merged
merged 1 commit into from
Apr 21, 2020
Merged

feat(sw-controller): compare host instead of href for getWindowClient #2772

merged 1 commit into from
Apr 21, 2020

Conversation

Oupsla
Copy link
Contributor

@Oupsla Oupsla commented Mar 20, 2020

Hello folks,

Instead of comparing the href (cause the user can be in a other page), we compare the host and take the first page that has the same host

Fix: #390

@Oupsla
Copy link
Contributor Author

Oupsla commented Apr 2, 2020

Ping @mmermerkaya for review (sorry if disturbing, I don't know who to ping for a review and can't request a review 🤷‍♂)

@Oupsla
Copy link
Contributor Author

Oupsla commented Apr 10, 2020

Pinging @schmidt-sebastian for review or help to know who to ping or how to ask a review, sorry for the disturbance !

@schmidt-sebastian
Copy link
Contributor

I will find someone to review on Monday.

Copy link
Member

@zwu52 zwu52 left a comment

Choose a reason for hiding this comment

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

Hi Nicolas,
Thanks for identifying the issue and creating the PR. I think it is reasonable to have a fuzzier match for recognizing pages with the same origin as the same page. So that FCM opens minimal number of windows for users and be respectful. I will create a release note for this. cheers 🍺

@zwu52 zwu52 requested a review from Feiyang1 April 14, 2020 20:45
@zwu52
Copy link
Member

zwu52 commented Apr 14, 2020

@Feiyang1 Hey Feiyang, do you mind taking a look and grant owner's approval for this? 😃

@zwu52 zwu52 merged commit 18fb16b into firebase:master Apr 21, 2020
@firebase firebase locked and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FR: Focus tab of the same origin (but not with the same url)
4 participants