Opened 11 years ago

Closed 11 years ago

#7071 closed defect (fixed)

problem opening page with javascript bookmark in Firefox3

Reported by: guest Owned by: anonymous
Priority: high Milestone: 1.0
Component: General Version: 0.4.2
Keywords: Cc: m.bisping@…
Blocked By: Blocking:

Description

In our special application users can generate bookmarks like this javascript:url="http://localhost:8080/superx/servlet/SuperXmlMaske?tid=17000&Kostentr%C3%A4ger=12080003&Kostentr%C3%A4ger-Sicht=Hauptsicht%20Kostentr%C3%A4ger&untergeordnete%20aufsummieren?=ja&Haushaltsjahr=2002&Zeitraum=monat%3E%3D1%20and%20monat%3C%3D1";%20if%20(window.oeffne)%20oeffne(url);%20else%20self.location.href=url;

it worked fine in Firefox 2 but in Firefox 3, I got an exception reading window.document disallowed in dojo.js line 11958

I'm not sure what the problem was, but adding a try-catch seems to help

this.registerAllWindows=function(_aea){ if(!_aea){ try{

_aea=dojo.html.getDocumentWindow(window.top&&window.top.document
window.document);

}

catch (e){return;}

If you have a less dirty solution, let me know.

Change History (1)

comment:1 Changed 11 years ago by James Burke

Milestone: 1.0
Resolution: fixed
Status: newclosed

This sort of issue should be fixed in at least Dojo 1.1, probably Dojo 1.0 too. There was an issue where the popup code was trying to register in all frames, but that did not work if one of the frames was on a different domain.

In Dojo 1.0 and later (I believe), the code was changed so that it did not try to register in all frames. I think the try/catch thing is the best you can do for Dojo 0.4.2. Marking as fixed in Dojo 1.0.

Note: See TracTickets for help on using tickets.