Thread:Project:Support desk/Protected variable styles of includes/OutputPage.php vs. extension using it/reply (3)

I have opened this in MW bug tracker T76461.

Talk page of extension

Issue in github repo of wysiwyg.

Function onBeforePageDisplay of wysiwyg extension is trying to:
 * 1) read certain .css definitons from the page
 * 2) extract contents of each .css file and place it as inline style definition on page
 * 3) delete orginal -css definition from page

I was trying to debug this with MW1.24.
 * 1) For issue 1. I used function buildCssLinksArray of OutputPage.php. With my limited skills of php programming I was able to extract names of style sheets but unable to get all the other data needed (f.ex type of css).
 * 2) Issue 2. is not a problem because public function addInlineStyle is available in OutputPage.php.
 * 3) For issue 3. I was unable to find a solution.

Is it still possible to have above procedure in MW 1.24?

On the other hand... comments of code block (function onBeforePageDisplay, lines ~194-214) in wysiwyg is referring to some limitation of IE (after max.31 style sheets IE hangs). I do not know if this has been some limitation of some older version of IE or perhaps caused by old version of IE + old CKeditor together. So is this kind of reformatting for style sheets of page necessary at all?