Project

General

Profile

Actions

Bug #2511

closed

Embedded as iframe wt application error in firefox

Added by Vitaly Volochay over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Target version:
Start date:
12/09/2013
Due date:
% Done:

0%

Estimated time:

Description

Hello! I have main wt application and second wt application. Second application is embedded to main application as iframe using WText:

iframe->setText("<iframe src=\"0.0.0.0:10777\" width=\"400\" height=\"300\">iframe is not supported!</iframe>");

In chrome it works fine, but on firefox (10.0.3 p.e.) iframe is shown but I get popup window with following error:

Wt internal error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMCanvasRenderingContext2D.font]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://192.168.77.27/supim_web_iframe/supim_web_iframe.wt?wtd=MQHUIQrV6qx3V40S&sid=641419264&tz=240&htmlHistory=true&deployPath=%2Fsupim_web_iframe%2Fsupim_web_iframe.wt&request=script&rand=3471593430 :: :: line 233" data: no], code: undefined, description: undefined

Second application itself (not embedded) works fine on the same browser.

Actions #1

Updated by Vitaly Volochay over 10 years ago

I made a mistake! Iframe even dont show up.

Actions #2

Updated by Wim Dumon over 10 years ago

  • Status changed from New to Closed

So no problem after all? Status -> closed.

Actions #3

Updated by Koen Deforche over 10 years ago

I don't think you can insert an iframe like that in an application --- that'll be considered a security risk and prevented by the browser (causing this error in Firefox).

Actions #4

Updated by Vitaly Volochay over 10 years ago

Wim Dumon wrote:

So no problem after all? Status -> closed.

No! It's even worse: iframe don't show up and I get popup error message instead.

Reopen bug please.

Actions #5

Updated by Vitaly Volochay over 10 years ago

Koen Deforche wrote:

I don't think you can insert an iframe like that in an application --- that'll be considered a security risk and prevented by the browser (causing this error in Firefox).

Hm, but I really need to do this. What shall I do?

Actions #6

Updated by Wim Dumon over 10 years ago

And this does not work?

iframe->setText("<iframe src='http://123.456.789.123:8080/' width=400 height=300></iframe>", XHTMLUnsafeText);
Actions #7

Updated by Vitaly Volochay over 10 years ago

Wim Dumon wrote:

And this does not work?

[...]

Does not work. I've allready used:

iframe->setTextFormat(XHTMLUnsafeText);

Actions #8

Updated by Vitaly Volochay over 10 years ago

May be there is some way to configure about:conf of firefox to fix this issue?

Actions

Also available in: Atom PDF