Opened 8 years ago
Closed 8 years ago
#14813 closed Bug (expired)
Firefox fails to apply contentsCss to later editors in a rapid series
Reported by: | Alex-Dev | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Steps to reproduce
- Use the Firefox browser; with debugger turned OFF.
- Create a program that loads five textarea/iframe CKEditors in rapid sequence.
- Provide a contentsCss file to be applied.
Expected result
The contentsCss file is applied to all five.
Actual result
Last one or two don't have the contentsCss file applied.
Other details (browser, OS, CKEditor version, installed plugins)
I have confirmed that the string going to "doc.write()" always has the proper <link> statement, so that string is consistently built correctly.
I have confirmed, through the element Inspector, that the first three editors have had the stylesheet applied, and that the last one, (at least, often the last two,) have not had the stylesheet applied.
This, of course, looks like some sort of timing issue; but it is very strange. Why would the <link> directive fail? The data is all there, so the string is getting delivered to Firefox, but Firefox somehow does not fulfill the <link> directive.
By the way, I have confirmed that the "try/catch" around "doc.write()" in "setData()" has never triggered the "catch"; so that's not it.
I have confirmed that "setData()" is getting called for each editor; obviously, since the data shows up, but also through "console.log()" I have confirmed that "setData()" is called twice for the editors failing to get "contentsCss" applied, just the same as for those that succeed in getting "contentsCss" applied.
Note: Within Firefox debugger, the issue does not occur. As you know, such a "disappearance" of a problem is not unusual for timing related issues, since the debugger alters event sequences and timings.
Alexander
Change History (2)
comment:1 Changed 8 years ago by
Keywords: | Firefox contentsCss fail applied removed |
---|---|
Status: | new → pending |
Version: | 4.5.10 (GitHub - master) |
comment:2 Changed 8 years ago by
Resolution: | → expired |
---|---|
Status: | pending → closed |
I'm sorry but I have no idea what do you mean by rapid sequence. Please provide reduced and working HTML file which will show this problem in code. I'm talking about simple HTML page (reduced to problem only) which I could put in to samples folder of default CKEditor package and see the issue.