Skip to content
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

feature plan about document.domain in ckeditor #5412

Closed
Ravikantsolanki opened this issue Jan 27, 2023 · 3 comments · Fixed by #5439
Closed

feature plan about document.domain in ckeditor #5412

Ravikantsolanki opened this issue Jan 27, 2023 · 3 comments · Fixed by #5439
Assignees
Labels
core The issue is caused by the editor core code. status:confirmed An issue confirmed by the development team. type:task Any other issue (refactoring, typo fix, etc).

Comments

@Ravikantsolanki
Copy link

Currently most of the browsers are going to deprecate the setters for document.domain method.

Here mentioning about deprecation https://developer.mozilla.org/en-US/docs/Web/API/Document/domain. Please refer this article as well.

However, ckeditor.js or others js are still using document.domain method to set document.domain. Please refer the below link where you will find out the document.domain setter.

document.domain = domain;

We wanted to know your feature plan about document.domain. Means are you planning to use any alternative way or it will still be used in feature? In that case it might be create an issue if setters for document.domain will be deprecated.

@Comandeer
Copy link
Member

As it's stated in the documentation of this method, it's used only in Internet Explorer, and due to that it won't be affected by the deprecation.

However, it seems that there is one place in our codebase where this method is accidentally used also in Firefox →

( '(' + CKEDITOR.tools.fixDomain + ')();' ).replace( /\/\/.*?\n/g, '' ).replace( /parent\./g, 'window.opener.' ) +

That's probably something we need to fix.

@Comandeer Comandeer added type:task Any other issue (refactoring, typo fix, etc). status:confirmed An issue confirmed by the development team. core The issue is caused by the editor core code. labels Jan 27, 2023
@tmajumda1
Copy link

@Comandeer
In the meantime, say if document.domain setters stop working completely, will it have any major impact in CKEDITOR?

@Comandeer
Copy link
Member

As I already said, we use it only in the Internet Explorer which means that disabling setters for document.domain shouldn't be an issue for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core The issue is caused by the editor core code. status:confirmed An issue confirmed by the development team. type:task Any other issue (refactoring, typo fix, etc).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants