-
-
Notifications
You must be signed in to change notification settings - Fork 8.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
[JENKINS-53462] Stop using deprecated submit events #5405
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.
Tested it with Jenkins PR tester on Chrome and Edge. Seems to be working fine.
We may merge it in 24 hours if there is no negative feedback. Please see the merge process documentation for more information about the merge process
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.
Tested with:
- FF 87.0 with
dom.forms.submit.trusted_event_only=false
- FF 87.0 with
dom.forms.submit.trusted_event_only=true
- FF 66.0.3
It looks good, forms are always submitted once and only once (with some usecases involving files parameters, some none).
Whereas plain 2.288 without this PR is very broken on FF 87.0 with dom.forms.submit.trusted_event_only=true
, most forms are then impossible to submit.
PS: now also tested a bit from some Windows 10 navigators (IE 11.1790.17763.0 and Edge 44.17763.831.0), all good.
May have caused a regression in pipeline input step (or at least in the tests) See jenkinsci/bom#511 (comment), picked up in PCT testing |
if its breaking tests, what version of a browser engine are the tests using? I know we had issues in ... that repo that generates all the install lists that jenkins uses (like groovy or perl or whatever). The browser engine was so old it didn't support any of the basic javascript on some sites. |
It's using html unit https://github.com/jenkinsci/bom/pull/511/checks?check_run_id=2535385275 |
Its also breaking |
Also https://groups.google.com/g/jenkinsci-dev/c/Wj3YHoKRDSM/m/r6NbQG8oAgAJ as another indicator that we're either on an outdated HTMLUnit, or that there's just no support for modern web stuff. Although my change here should be backward compatible with old browsers; assuming HTMLUnit is just an "old browser" I would expect it to continue working. Perhaps there's a legitimate problem here? |
https://issues.jenkins.io/browse/JENKINS-65585 FTR I tried bumping HTMLUnit in the |
I've also tried running the failing The tested form has two I think the root cause is a combination of this and that: We are, indeed, calling @daniel-beck: Do you happen to remember what was "not working" when passing a parameter to |
Not specifically. It was something obvious, like an exception, so should be straightforward to reproduce. Might have been that I tried to pass the wrong kind of object? Since it worked without, I just documented the fact and moved on. |
I've tried a few things with this "submitter" parameter, that's where I'm at: #5479 |
I guess you runs into the same issue as reported in https://bugzilla.mozilla.org/show_bug.cgi?id=1653625. |
I'm seeing an unexpected failure during interactive use that seems to be caused by this change. I've not been able to duplicate it in a simplified case yet, but I can see it consistently with this change included and it is resolved when this change is removed. When I attempt to configure a matrix job in Jenkins 2.288 I am able to save the configuration. When I attempt to save the same job with Jenkins 2.289, the page does not return. When I save the same job with a custom build of Jenkins 2.289 with this change reverted, it saves as expected. |
@MarkEWaite: I can reproduce what you're describing, and yes, it is indeed a consequence of this 2.289 change. It's not specific to Matrix jobs though. What triggers the issue here is the invalid depth=0 value in your Git It is something which could be fixed / worked-around in the Git plugin itself, for this specific case. But similar issues might pop up with other plugins and existing configs, so it's difficult to estimate how "bad" this is. |
Removes the Firefox submit event change that broke the save of a matrix project as described in jenkinsci#5405 (comment) This reverts commit 8ee48ec.
…"" This reverts commit f4c94ff.
See JENKINS-53462.
Previously: #4246 #3761 #3760 #3689
In some limited manual testing in Firefox and Chrome, this seems to work.
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeDesired reviewers
@thomasgl-orange @halkeye
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are correctupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).