Bug #2511
closedEmbedded as iframe wt application error in firefox
0%
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.
Updated by Vitaly Volochay about 11 years ago
I made a mistake! Iframe even dont show up.
Updated by Wim Dumon about 11 years ago
- Status changed from New to Closed
So no problem after all? Status -> closed.
Updated by Koen Deforche about 11 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).
Updated by Vitaly Volochay about 11 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.
Updated by Vitaly Volochay about 11 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?
Updated by Wim Dumon about 11 years ago
And this does not work?
iframe->setText("<iframe src='http://123.456.789.123:8080/' width=400 height=300></iframe>", XHTMLUnsafeText);
Updated by Vitaly Volochay about 11 years ago
Wim Dumon wrote:
And this does not work?
[...]
Does not work. I've allready used:
iframe->setTextFormat(XHTMLUnsafeText);
Updated by Vitaly Volochay almost 11 years ago
May be there is some way to configure about:conf of firefox to fix this issue?