mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
PocoDoc: fix iframe sandboxing
This commit is contained in:
parent
6da3186911
commit
96c0bf6d78
@ -16,7 +16,7 @@ ${PocoDoc.customHeadHTML}
|
|||||||
</div>
|
</div>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<div id="navigation">
|
<div id="navigation">
|
||||||
<iframe sandbox src="navigation.html" onload="iFrameResize(this);" scrolling="no"></iframe>
|
<iframe sandbox="allow-scripts allow-top-navigation-by-user-activation allow-same-origin" src="navigation.html" onload="iFrameResize(this);" scrolling="no"></iframe>
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>User Guides And Tutorials</h2>
|
<h2>User Guides And Tutorials</h2>
|
||||||
|
@ -808,7 +808,7 @@ void DocWriter::writeNavigationFrame(std::ostream& ostr, const std::string& grou
|
|||||||
query += item;
|
query += item;
|
||||||
}
|
}
|
||||||
ostr << "<div id=\"navigation\">\n";
|
ostr << "<div id=\"navigation\">\n";
|
||||||
ostr << "<iframe sandbox src=\"navigation.html" << query << "\" onload=\"iFrameResize(this);\" scrolling=\"no\"></iframe>\n";
|
ostr << "<iframe sandbox=\"allow-scripts allow-top-navigation-by-user-activation allow-same-origin\" src=\"navigation.html" << query << "\" onload=\"iFrameResize(this);\" scrolling=\"no\"></iframe>\n";
|
||||||
ostr << "</div>\n";
|
ostr << "</div>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user