Opened 9 years ago

Closed 9 years ago

#1161 closed defect (fixed)

permission error from ColorPicker.js

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.95
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc:

Description

We reference window.opener on load of this script. In some cases, the opener is not accessible. Putting a try/catch around this block fixes the issue. Can this make it into 0.95? Thanks.

try {

if(window.opener&&window.opener.Xinha){

var openerColorPicker=window.opener.Xinha.colorPicker;
Xinha._addEvent(window,"unload",function(){

Xinha.colorPicker=openerColorPicker;

});

}

}
catch (e) {}

kngan@…

Change History (1)

comment:1 Changed 9 years ago by ray

  • Resolution set to fixed
  • Status changed from new to closed

rev [979]

Note: See TracTickets for help on using tickets.