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

🐛Consider *.gmail.com trusted viewer domains #25027

Merged
merged 1 commit into from Oct 14, 2019

Conversation

zhangsu
Copy link
Member

@zhangsu zhangsu commented Oct 13, 2019

Gmail mobile clients use *.gmail.com as the base URL for the WebView
that embeds the AMP HTML iframe.

/to @choumx

Gmail mobile clients use *.gmail.com as the base URL for the WebView
that embeds the AMP HTML iframe.
@cramforce
Copy link
Member

@rsimha Could we move this into the Google AMP Cache config instead of making it part of the core repo? This and all the other trusted viewers owned by Google.

@rsimha
Copy link
Contributor

rsimha commented Oct 14, 2019

@rsimha Could we move this into the Google AMP Cache config instead of making it part of the core repo? This and all the other trusted viewers owned by Google.

@cramforce Should be possible. Would something similar to caches.json be a worthwhile place to add this to? Or are you thinking of a file outside the ampproject/amphtml repo?

@alabiaga, since you added this field, could you shed some light on how it is currently used, and how we might use it if this were no longer checked in to the core repo?

@dreamofabear dreamofabear self-requested a review October 14, 2019 17:10
@dreamofabear
Copy link

could you shed some light on how it is currently used, and how we might use it if this were no longer checked in to the core repo?

It's currently used to enable features that should only run on certain embedding environments (iframe hosts).

I think the suggestion is to just move this into a transform in the Google AMP Cache. It would avoid other caches from having Google-specific values baked into the default for this field.

@alabiaga
Copy link
Contributor

alabiaga commented Oct 14, 2019

@rsimha Will mentioned its purpose. I added the field but it originally existed and was just moved to a different file. As seen here: https://github.com/ampproject/amphtml/pull/23039/files#diff-4355db0ba8ae714ce669b977af9c8dfd

Also apologies..as I was supposed to look into the task of moving this into an amp cache config but I was already in my new role and didn't get around to it.

@dreamofabear dreamofabear merged commit 1fd304b into ampproject:master Oct 14, 2019
@cramforce
Copy link
Member

cramforce commented Oct 16, 2019 via email

@zhangsu zhangsu deleted the trusted-viewer branch October 20, 2019 02:21
micajuine-ho pushed a commit to micajuine-ho/amphtml that referenced this pull request Dec 27, 2019
Gmail mobile clients use *.gmail.com as the base URL for the WebView
that embeds the AMP HTML iframe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants