Error while parsing the 'sandbox' attribute: 'ms-allow-popups' is an invalid sandbox flag

Moderator: crythias

Post Reply
Purvi
Znuny newbie
Posts: 9
Joined: 28 Jun 2016, 19:01
Znuny Version: 5.0.10

Error while parsing the 'sandbox' attribute: 'ms-allow-popups' is an invalid sandbox flag

Post by Purvi »

Hello All,

I added some javascript Code in Core.Agent.TicketProcess.js for making some Dynamic Fields Read Only.
My code worked fine.
However, I noticed that I was getting the following error in console.

Error while parsing the 'sandbox' attribute: 'ms-allow-popups' is an invalid sandbox flag in otrs/index.pl?Action=AgentTicketZoom;TicketID=49

I am not able to understand how this occurred.
I removed the my code but still same issue.

Are we not suppose to change the js files ?

Can anyone please help.
M stuck here.
atom
Znuny newbie
Posts: 14
Joined: 06 Nov 2018, 13:03
Znuny Version: OTRS5
Real Name: Ahmet

Re: Error while parsing the 'sandbox' attribute: 'ms-allow-popups' is an invalid sandbox flag

Post by atom »

Hi,

i have the same problem here with v6
Error while parsing the 'sandbox' attribute: 'ms-allow-popups' is an invalid sandbox flag.

What could be the reason?
Regards,
Ahmet
Lenny
Znuny newbie
Posts: 30
Joined: 15 May 2010, 16:57
Znuny Version: 2.4.7

Re: Error while parsing the 'sandbox' attribute: 'ms-allow-popups' is an invalid sandbox flag

Post by Lenny »

edit: Kernel/Output/HTML/Templates/Standard/AgentTicketZoom/ArticleRender/MIMEBase.tt

find code

Code: Select all

<iframe sandbox="allow-same-origin allow-popups ms-allow-popups allow-popups allow-popups-to-escape-sandbox" width="100%" frameborde    r="0" id="Iframe[% Data.ArticleID | html %]" onload="window.setTimeout( function (){ CheckIFrameHeight('Iframe[% Data.ArticleID | html %    ]'); }, 500);" src="[% Env("Baselink") %]Action=AgentTicketArticleContent;Subaction=HTMLView;TicketID=[% Data.TicketID | html %];Article    ID=[% Data.ArticleID | html %];FileID=[% Data.HTMLBodyAttachmentID | html %];[% IF !Config("SessionUseCookie") %][% Env("SessionName") |     html %]=[% Env("SessionID") | html %][% END %]"></iframe>
remove:

Code: Select all

ms-allow-popups
OTRS 中文用户 QQ 群: 157191248
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Error while parsing the 'sandbox' attribute: 'ms-allow-popups' is an invalid sandbox flag

Post by zzz »

Hello,

Just for your information: you don't have to remove this flag, as Chrome only tells you that it doesn't know what to do with it.
No harm at all – just an ugly message.

Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
Post Reply