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

MWPW-146577: [Kodiak]: Cross-site Scripting (XSS) in JavaScript in [github.com/adobecom/milo] #2384

Merged
merged 8 commits into from
Jun 5, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions libs/features/personalization/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,18 @@ function createPreviewPill(manifests) {
</div>
</div>
</div>
</div>
<div class="dark">
<a class="con-button outline button-l" href="${simulateHref.href}" title="Preview above choices">Preview</a>
</div>`;
const darkDiv = createTag('div', { class: 'dark'});
denlight marked this conversation as resolved.
Show resolved Hide resolved
const button = createTag('a', {
denlight marked this conversation as resolved.
Show resolved Hide resolved
class: 'con-button outline button-l',
denlight marked this conversation as resolved.
Show resolved Hide resolved
text: 'Preview',
denlight marked this conversation as resolved.
Show resolved Hide resolved
href: simulateHref.href,
denlight marked this conversation as resolved.
Show resolved Hide resolved
title: 'Preview above choices'
denlight marked this conversation as resolved.
Show resolved Hide resolved
});
darkDiv.append(button);

div.append(darkDiv);

overlay.append(div);
addPillEventListeners(div);
}
Expand Down
Loading