-
Notifications
You must be signed in to change notification settings - Fork 234
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
Prepare for prototype removal #491
Conversation
|
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 have confirmed the issues by trying to add a new domain, there is a very clear error message on my js console about $
that does not happen when you use a jenkins version that still contains prototype.
The concrete fixes look good to me
… prototype_removal
I've reverted the changes to |
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.
Looks fine security wise
Potentially introduced JENKINS-72364 |
@@ -3,5 +3,5 @@ Behaviour.specify("#credentials-add-submit", 'credentials-dialog-add', 0, functi | |||
}); | |||
|
|||
Behaviour.specify("#credentials-add-abort", 'credentials-dialog-abort', 0, function (e) { | |||
e.onclick = (_) => window.credentials.dialog.hide(); | |||
e.onclick = (_) => window.credentials.dialog.style.display = "none"; |
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.
This change appears to be in error, as this was YUI code, not Prototype code.
One change from jenkinsci#491 was applied to a reference that was not using Prototype.js. https://issues.jenkins.io/browse/JENKINS-72364 is the issue report. Confirmed interactively that I can see the problem before the change and that with this change the problem is resolved.
See https://www.jenkins.io/blog/2023/05/12/removing-prototype-from-jenkins/
Testing done
Manual testing done:
Submitter checklist