- Issue created by @durifal
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 12:07pm 24 May 2023 - last update
over 1 year ago 2,151 pass - last update
over 1 year ago 2,151 pass - @durifal opened merge request.
- Status changed to Needs work
over 1 year ago 8:30am 25 May 2023 - 🇦🇹Austria klausi 🇦🇹 Vienna
Thanks, approach makes sense to me. Just one nitpick:
+++ b/misc/vertical-tabs.js (date 1684929665835) @@ -50,8 +50,9 @@ + var hash = window.location.hash.replace(/[=%;,\/]/g, "");
Please add a code comment here like "// Remove any characters that jquery does not accept in find()."
After that I think we can commit this. I don't see a good way how we would write an automated test for this, so I think that is fine.
- Status changed to Needs review
over 1 year ago 10:01am 25 May 2023 - last update
over 1 year ago 2,151 pass - 🇮🇳India mrinalini9 New Delhi
Updated patch #2 by addressing #4, please review it.
Thanks!
- Status changed to RTBC
over 1 year ago 11:47am 25 May 2023 - 🇦🇹Austria klausi 🇦🇹 Vienna
Thanks, then I think we are ready to commit this.
- last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,155 pass - last update
over 1 year ago 2,155 pass - last update
over 1 year ago 2,155 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,159 pass - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,159 pass - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,159 pass - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,159 pass - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,159 pass - last update
over 1 year ago 2,160 pass - last update
about 1 year ago 2,160 pass - last update
about 1 year ago 2,160 pass - last update
about 1 year ago 2,160 pass - 🇸🇰Slovakia poker10
Thanks for working on this! I have tested the patch manually and it seems to work correctly.
For the record, I was able to simulate the JS error most easily by these steps (but there are probably other ways to run into this):
- clean D7 install with Bartik theme
- enable the Overlay module and jQuery Update module
- change default jQuery for frontend theme to 1.12
- disable
Use the administration theme when editing or creating content
in appearance settings (admin/appearance
) - create a node and visit a link like
node/1/edit#overlay-context=node/1/edit
(you can end up here when clicking thru overlay, but I think it is sufficient to open the link manually for this testing) - the error will appear in the console
After applying the patch the error is gone. Adding a tag for a final review.
Initially I was worried about
window.location.hash.replace
without checking thewindow.location.hash
first, but it seems like it is not a case and thatwindow.location.hash
will return an empty string in case that it is not in URL, see: https://developer.mozilla.org/en-US/docs/Web/API/Location/hash - last update
about 1 year ago run-tests.sh exception - last update
about 1 year ago run-tests.sh exception - last update
about 1 year ago 2,160 pass - last update
about 1 year ago run-tests.sh exception - last update
about 1 year ago 2,160 pass - last update
about 1 year ago 2,160 pass - last update
about 1 year ago 2,160 pass - last update
about 1 year ago 2,160 pass - last update
about 1 year ago 2,160 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass 32:53 29:15 Running- last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago run-tests.sh exception - last update
about 1 year ago 2,161 pass - last update
about 1 year ago run-tests.sh exception - last update
about 1 year ago 2,161 pass - last update
about 1 year ago run-tests.sh exception - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,157 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,122 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,122 pass - last update
about 1 year ago 2,161 pass - 🇬🇧United Kingdom mcdruid 🇬🇧🇪🇺
Adding the comment to explain the removal of the characters is good.
However, the patch also removes the comment that explains what this code is actually doing.
I'd think we want to combine the two.
We could probably do this on commit.
There's also an argument that this belongs in jquery_update rather than Drupal core if the error doesn't come about with core's default jQuery.
- last update
about 1 year ago 2,161 pass - Status changed to Fixed
about 1 year ago 10:21am 13 November 2023 - 🇬🇧United Kingdom mcdruid 🇬🇧🇪🇺
I restored the original comment on commit.
Thanks everybody!
Automatically closed - issue fixed for 2 weeks with no activity.