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

feat(src): add content credential pin support #50

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

olgahaha
Copy link
Contributor

Added

  • Add support for a content credential pin to display the C2PA verification result on the C2PA verify page.

Add support for a content credential pin to display the C2PA
verification result on the C2PA verify page.
@olgahaha olgahaha requested a review from shc261392 January 23, 2025 03:56
@@ -84,6 +85,8 @@ export class CaptureEyeModal extends LitElement {

@query('.modal') modalElement!: HTMLDivElement;

private _c2paNid = '';
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the variable is supposed to be an url, not an nid, the naming should reflect that

@@ -547,6 +600,45 @@ export class CaptureEyeModal extends LitElement {
}
}

private handleInspectContentCredentials() {
if (this._c2paNid) {
window.open(this._c2paNid);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
window.open(this._c2paNid);
window.open(this._c2paNid, '_blank', 'noopener,noreferrer');

Consider having these arguments for more consistent behavior and security for older browsers

@olgahaha olgahaha requested a review from shc261392 January 23, 2025 07:34
@olgahaha olgahaha merged commit 8a8bc37 into main Jan 23, 2025
6 checks passed
@olgahaha olgahaha deleted the feature-support-content-credential branch January 23, 2025 08:19
@olgahaha olgahaha restored the feature-support-content-credential branch January 24, 2025 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants