I was having a white screen of death after some minutes of an open page that manifested only when I had this installed at the same time:

JQuery Update 2.0 alpha
JQuery 1.3.2
DrupalChat 2.0 beta
CKEditor 1.6.3 under Wywiwyg module

The error in Firefox Javascript console was:

Erro: uncaught exception: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMWindow.getComputedStyle]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://www.corais.org/sites/default/files/js/js_1a5e21d2fcff611ef592617c... :: :: line 12" data: no]

I could reproduce the same error by pressing the browser refresh button and checking the javascript console.

I found a related issue in JQuery here http://siderite.blogspot.com/2009/07/jquery-firexof-error-could-not-conv...

But my solution had to add a little bit to it in order to work. Original code, line 808 of jquey_update/replace/jquery/1.3/jquery.js:

var computedStyle = defaultView.getComputedStyle( elem, null );

Modified version:

if (elem == document) elem = document.body;  
if(elem != null) var computedStyle = defaultView.getComputedStyle( elem, null );

This change is also necessary in minified version of Jquery jquey_update/replace/jquery/1.3/jquery.min.js

Replaced this var M=q.getComputedStyle(I,null)
with this if (I==document) I=document.body;if(I!=null){var M=q.getComputedStyle(I,null)}

I don't have a clue of what I have done, but at least I don't have the terrible white screen of death, that made me lose some precious data.

Comments

amstel’s picture

Actually I've got new errors by this solution, but I could finally solve it (until now) by exchanging Wysiwyg module for the CKEditor module directly. http://drupal.org/project/ckeditor

amstel’s picture

Issue summary: View changes

minified jquery version

markhalliwell’s picture

Status: Active » Closed (outdated)

Drupal 6 reached EOL (end-of-life) on February 24, 2016.