Opened 16 years ago
Closed 16 years ago
#2922 closed Bug (fixed)
Whole editor broken caused by one malformed plugin
Reported by: | Garry Yao | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.0 |
Component: | General | Version: | SVN (FCKeditor) - Retired |
Keywords: | Confirmed Review+ | Cc: |
Description
Now plugin manager is going down if any of the plugins on the list has a syntax/runtime error or a plugin is not found at the specified position. It's easy to reproduce. The editor should has some level of fault tolerant with plugins, especially when plugin come from external point.
Attachments (3)
Change History (12)
comment:1 Changed 16 years ago by
Keywords: | Confirmed added |
---|
comment:2 Changed 16 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | new → assigned |
Changed 16 years ago by
Attachment: | 2922.patch added |
---|
comment:3 Changed 16 years ago by
Keywords: | Review? added |
---|
The patch now deals with the following cases, prevent it from stopping on loading other plugins :
- Malformed plugin files which has syntax error;
- Missing plugin files;
- Missing plugin definition;
comment:4 Changed 16 years ago by
Keywords: | Review- added; Review? removed |
---|
We can't understand whether a plugin is important or not. Actually, there may be plugins that are decisive for the editor quality, or developers' expectations. So, we can't risk having a working editor which has some of the desired plugins missing.
The solution here should be much simpler than that, simply throwing an error, stopping the editor execution in case of a plugin loading issue. In this way, a developer can catch the error and fix the problem.
comment:5 Changed 16 years ago by
Keywords: | Review? added; Review- removed |
---|
Simplify the solution after confirmed with Fred, the patch is only indented to resolve the issue of this comment.
Changed 16 years ago by
Attachment: | 2922_2.patch added |
---|
Changed 16 years ago by
Attachment: | 2922_3.patch added |
---|
comment:6 Changed 16 years ago by
Keywords: | Review- added; Review? removed |
---|
Ok... now I've completely understood the problem, and I confirm this ticket is not valid (comment:4), except for the dialog issue.
I've introduced a syntax error in a dialog file. It's definitely annoying as the button that opens the dialog simply does nothing, instead of at least throwing an error. I've applied the patch, but there is no difference at all. Can you list the steps you are doing to reproduce it?
comment:7 Changed 16 years ago by
Keywords: | Review? added; Review- removed |
---|
Reproducing Procedures
- Introduced a syntax error within _source\plugins\smiley\dialogs\smiley.js file;
- Open the replace by class example page;
- Click on 'Smiley' button to open dialog;
- Expected Result: An JavaScript Error thrown which prompt with name of the troublesome resource.
- Actual Result: The browser hangs for a while for Firefox; Stack overflow error raised for IE.
comment:8 Changed 16 years ago by
Keywords: | Review+ added; Review? removed |
---|
comment:9 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Sometimes it crash the browser or hangs for a while. It can be very annoying for end-developers. Especially syntax error in external dialog file.