Community
Participate
Working Groups
Apperently if the eval-call in this function tries to access "wm", it works only because it is avaible in the global namespace, not because of the line "var wm = this;". This is at least true for webkit-browser.
Created attachment 159296 [details] fix This removes the "newWidget" function from the client, instead writing the needed code on the server side. This solves this bug, is less confusing (regarding the "Shell"-workarounds) and also removes another "eval"-call. ("eval" in JS is potentially slow and difficult to debug/profile.)
Applied patch to CVS HEAD