-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Viewer: cleanup definitions of embedded and iframed. Enable web view handshake #3162
Conversation
/cc @ericfs |
* method. | ||
* @private @const {boolean} | ||
*/ | ||
this.isEmbedded_ = this.isIframed_ || !!this.params_['origin']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using origin here seems a bit unintuitive. Maybe call a method like isNativeEmbedder
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cramforce Sorry, do you mean add a "isNativeEmbedder" parameter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I meant to add a method of that name that does whatever work it needs to do. I don't really see how it follows out of the origin being present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll just add a new parameter then. We discussed with @ericfs that it might be better anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any type of trust implied? What is the consequence of being embedded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added webview=1
param.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, the consequence of being embedded is a trusted mode. Not much constraints we can reliably apply given that web view allows arbitrary script injection. We're currently going through security review with this. I can add an experiment if you'd like. But, again, the protection from it will be minimal.
Thanks! |
LGTM |
Closes #3117.