ckEditor editor.js leaking 'load' eventListener attached to the window object #4273
Labels
core
The issue is caused by the editor core code.
status:confirmed
An issue confirmed by the development team.
type:bug
A bug.
Milestone
Type of report
in ckEditor_base, we register 'load' event listener to window object, but never remove it
See below -
ckeditor4/core/ckeditor_base.js
Line 234 in 8fccb33
window.addEventListener( 'load', onReady, false );
if you see in destroy function at removeAllListeners()
ckeditor4/core/editor.js
Line 924 in 8fccb33
Probably we should remove this from window object under onReady() function at this try block where we detach others
ckeditor4/core/ckeditor_base.js
Line 202 in 8fccb33
document.removeEventListener( 'DOMContentLoaded', onReady, false );
Proposing the fix from this change -
rohit1:rohit1-ckeditor4-load-eventlistener-leak-fix
Raising a PR here for inputs on this proposed solution -
#4272
please advise if this is NOT the right way to fix this:)
thank you
Bug
Provide detailed reproduction steps (if any)
Expected result
What is the expected result of the above steps?
Actual result
What is the actual result of the above steps?
Other details
The text was updated successfully, but these errors were encountered: