Opened 13 years ago

Closed 13 years ago

#178 closed defect (fixed)

Bug when page includes another IFRAME

Reported by: akaEdge Owned by: gogo
Priority: high Milestone: Version 1.0
Component: Xinha Core Version: trunk
Severity: critical Keywords: iframe popups
Cc:

Description

I have used a very simple page that includes nothing else - so you should be able to replicate this bug pretty easily.

Basically editor works fine until I put an iframe on the page somewhere. Then it still looks like it is working however the popups then start to throw errors (either insert picture or insert link for example) when you open them, and the "OK" and "Cancel" buttons don't work either.

Here are the errors:

Firefox:
Error: [Exception... "'Permission denied to get property Window.addEventListener' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

Error: opener.Dialog._return is not a function

IE 6:
Line: 3886
Char: 5
Error: Access is denied
Code: 0
URL: my page...

Change History (4)

comment:1 Changed 13 years ago by gogo

put an iframe on the page somewhere

Do you mean just put an iframe on the page that the editor is on, or put an iframe inside the html being edited? Can you attach a test case html file.

comment:2 Changed 13 years ago by gogo

I have marked #171 as a dup of this, I think adsense uses iframes. I guess that means that it's when an iframe is on the page containing a Xinha area that the problem happens. That's crazy.

comment:3 Changed 13 years ago by gogo

  • Milestone set to Version 1.0
  • Severity changed from major to critical
  • Version set to trunk

comment:4 Changed 13 years ago by gogo

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

This is fixed in changset:183

Note: See TracTickets for help on using tickets.