Skip to content

Cleanup unused js files - #3588

Open
stokito wants to merge 2 commits into
igniterealtime:mainfrom
stokito:web_cleanup
Open

stokito wants to merge 2 commits into
igniterealtime:mainfrom
stokito:web_cleanup

Conversation

@stokito

@stokito stokito commented Nov 30, 2026

Copy link
Copy Markdown
Member

The wrap="virtual" was used by ancient browsers and no needed anymore because this is default now.

The cookies.js was added in 91c6bf3 but today there is no any JS code that calls the getCookie or setCookie.
The behaviour.js was added in 68834b6 and then its usage was removed 790b034

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The main JSP decorator no longer loads cookies.js or behaviour.js, and both files are deleted. Several textareas across the web interface no longer specify wrap="virtual". Their other reported attributes and value rendering remain unchanged.

Suggested reviewers: guusdk, bmatasar

Merge Risk: Minimal · up to ff098

This cleanup removes unused scripts and an obsolete textarea attribute. No remaining in-repository code depends on the deleted files, so the user-visible impact should be nil and the change is ready to merge.

Pre-merge checks: Passed 3

Check name Status Explanation
Description check Passed The description states that the wrap="virtual" attribute was used by old browsers and is no longer needed because wrapping is now the default. It also explains that cookies.js has no current calle…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description states that the wrap="virtual" attribute was used by old browsers and is no longer needed because wrapping is now the default. It also explains that cookies.js has no current callers and that behaviour.js lost its usage in an earlier commit. This matches the changeset, which removes wrap="virtual" from several textareas and deletes cookies.js and behaviour.js. The description is related to the changes and is not generic.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

PMD (7.29.0)

xmppserver/src/main/webapp/audit-policy.jsp

PMD reported a processing error; analysis is incomplete

xmppserver/src/main/webapp/import-keystore-certificate.jsp

PMD reported a processing error; analysis is incomplete

xmppserver/src/main/webapp/import-truststore-certificate.jsp

PMD reported a processing error; analysis is incomplete

  • 4 others

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 19ecd634-30cb-4560-b5c1-c55e4838cc06
Commits

Reviewing files that changed from the base of the PR and between ccae647 and ff0987c.

Files selected for processing: 10

  • xmppserver/src/main/webapp/audit-policy.jsp
  • xmppserver/src/main/webapp/decorators/main.jsp
  • xmppserver/src/main/webapp/import-keystore-certificate.jsp
  • xmppserver/src/main/webapp/import-truststore-certificate.jsp
  • xmppserver/src/main/webapp/js/behaviour.js
  • xmppserver/src/main/webapp/js/cookies.js
  • xmppserver/src/main/webapp/security-keystore.jsp
  • xmppserver/src/main/webapp/system-emailtest.jsp
  • xmppserver/src/main/webapp/system-smstest.jsp
  • xmppserver/src/main/webapp/user-message.jsp
Files with no reviewable changes: 3

  • xmppserver/src/main/webapp/decorators/main.jsp
  • xmppserver/src/main/webapp/js/behaviour.js
  • xmppserver/src/main/webapp/js/cookies.js

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@akrherz akrherz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me, but just to denote behaviour.js was updated in 2023 with #2308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants