-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Remove dead JS code #9136
Remove dead JS code #9136
Conversation
/label ready-for-merge This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
This seems to have caused a regression when creating a new certificate credential with PKCS#12 type. @zbynek can you investigate JENKINS-73166 to confirm that my |
As far as I can tell, I had to restore the following subset of the commit:
When I replace the The replacement of the YUI logging lines with console.log did not seem to affect JENKINS-73166. |
https://issues.jenkins.io/browse/JENKINS-73166 notes that the credentials code for certificates has a dependency on this JavaScript code. Without this JavaScript, an attempt to add a new certificate credential type using PKCS#12 will fail with an HTTP 404 error. The replacement of YUI.log with console.log is not involved in the bug report, so it is retained in the code change. This reverts part of commit 932ab19c5448bb0afa46f60b93c245eb08e86b55.
The
YUI.log
was most likely a typo (was meant to beYAHOO.log
) and is not needed anyway since the standardconsole.log
is used in other places. Checks for existence ofconsole
can be dropped since they are missing in other places. Some global vars are not needed in anymore (mostly because of Prototype removal).No tests were added/changed because functionality didn't change.
geval
code was simplified by removing IE-only hacks, but it remains incompatible with CSP (on purpose)Testing done
JS lint passes
Proposed changelog entries
(skip changelog)
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist