List Info

Thread: Gm Bug in Firefox 1.5.0.4




Gm Bug in Firefox 1.5.0.4
user name
2006-06-07 01:49:02
To add a bit what I am/was doing:

My GM script has a configuration 'dialog' which is
actually a new page
that gets created by the script when I click on a button
that is added
to the original window:

function makeManageFunc(DB, title, size) {
     return function manage(ev) {
     	var theWindow = window.open("Manage",
title, size);
     	//theWindow.focus();
     	var theDoc = theWindow.document;
    
	theDoc.writeln('<html><head></head>'
                       + '<body
bgColor="grey">'
                       + '<h1  style="text-align:
center;" '
                       + 'id="Manage">'
     	              + title
     	              + '</h1>')
         theDoc.writeln('</body></html>')
         theDoc.close()
         ev.preventDefault();
     }
}

The function is used in the EvenListener and gets executed
onclick.

That page has the same URL as the generating page and my
script checks
for id="Manage" whether this is the original
page or the configuration
dialog. If it is the configuration dialog, it creates all
the form fields.

This does not happen anymore.

Checking with the DOM-Inspector both URLs are still
identical as they 
used to be.

When the second page gets created the error console shows
the following 
error:

Error: [Exception... "'Permission denied to get
property 
XULElement.accessKey' when calling method: 
[nsIDOMXULLabelElement::accessKey]"  nsresult:
"0x8057001e 
(NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS
frame :: <unknown 
filename> :: manage :: line 203"  data: no]

Any idea?

Cheers, Andre

Andre wrote:
> true, I am experiencing the same problem.
> 
> Andre
> 
> Bill Donnelly wrote:
>> Gm scripts are not being executed in
Javascript-created pages.
>>
>> [[ using open, write, etc. via a bookmarklet --
example:
>> ww=window;
>> zz=ww.open().document; zz.write ("the html
code"); zz.close();
>> ]]
>>
>> Bill Donnelly wrote:
>>
>>  > Expect some (possible) weirdness between the
new Firefox 1.5.0.4 
>> update and Gm.
>>  > More info to follow. (Win XP)

_______________________________________________
Greasemonkey mailing list
Greasemonkeymozdev.org
http:
//mozdev.org/mailman/listinfo/greasemonkey
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )