Skip to content

Commit 793b34d

Browse files
committed
hrm, removal
1 parent f16616d commit 793b34d

File tree

4 files changed

+1
-20
lines changed

4 files changed

+1
-20
lines changed

src/node/handler/ImportHandler.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,6 @@ exports.doImport = function(req, res, padId)
291291
</head> \
292292
<script> \
293293
$(window).load(function(){ \
294-
if(navigator.userAgent.indexOf('MSIE') === -1){ \
295-
// document.domain = document.domain; \
296-
} \
297294
var impexp = window.parent.padimpexp.handleFrameCall('" + directDatabaseAccess +"', '" + status + "'); \
298295
}) \
299296
</script>"

src/static/js/ace.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ window.onload = function () {\n\
286286
iframe.name = "ace_inner";\n\
287287
iframe.title = "pad";\n\
288288
iframe.scrolling = "no";\n\
289-
iframe.setAttribute("sandbox", "allow-same-origin allow-scripts allow-popups allow-forms allow-modals");\n\
290289
var outerdocbody = document.getElementById("outerdocbody");\n\
291290
iframe.frameBorder = 0;\n\
292291
iframe.allowTransparency = true; // for IE\n\
@@ -326,13 +325,10 @@ window.onload = function () {\n\
326325

327326
// bizarrely, in FF2, a file with no "external" dependencies won't finish loading properly
328327
// (throbs busy while typing)
329-
var testHTML = '<span>WONT WORK in Chrome</span><iframe src="/editable2.html" style="position:fixed;left:200px;right:0;top:250px;bottom:0;width:400px;height:200px;z-index:90999" sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-modals"></iframe>';
330-
331-
outerHTML.push('<style type="text/css" title="dynamicsyntax"></style>', '<link rel="stylesheet" type="text/css" href="data:text/css,"/>', scriptTag(outerScript), '</head><body id="outerdocbody" class="outerdocbody"><div id="sidediv" class="sidediv"><!-- --></div><div id="linemetricsdiv">x</div>'+testHTML+'</body></html>');
328+
outerHTML.push('<style type="text/css" title="dynamicsyntax"></style>', '<link rel="stylesheet" type="text/css" href="data:text/css,"/>', scriptTag(outerScript), '</head><body id="outerdocbody" class="outerdocbody"><div id="sidediv" class="sidediv"><!-- --></div><div id="linemetricsdiv">x</div></body></html>');
332329

333330
var outerFrame = document.createElement("IFRAME");
334331
outerFrame.name = "ace_outer";
335-
outerFrame.setAttribute("sandbox", "allow-same-origin allow-scripts allow-popups allow-forms allow-modals");
336332
outerFrame.frameBorder = 0; // for IE
337333
outerFrame.title = "Ether";
338334
info.frame = outerFrame;

src/static/js/ace2_inner.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5006,12 +5006,6 @@ function Ace2Inner(){
50065006
});
50075007
})
50085008

5009-
/*
5010-
$(root).on("dragend", function(e){
5011-
top.console.log("dragend");
5012-
});
5013-
5014-
50155009
$(root).on("drop", function(e){
50165010
top.console.log("DROP");
50175011
if(e.target.a || e.target.localName === "a"){
@@ -5026,7 +5020,6 @@ function Ace2Inner(){
50265020
e: e
50275021
});
50285022
});
5029-
*/
50305023

50315024
// CompositionEvent is not implemented below IE version 8
50325025
if ( !(browser.msie && parseInt(browser.version <= 9)) && document.documentElement)

src/static/js/pad.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,6 @@ var pad = {
522522
pad.initTime = +(new Date());
523523
pad.padOptions = clientVars.initialOptions;
524524

525-
if ((!browser.msie) && (!(browser.firefox && browser.version.indexOf("1.8.") == 0)))
526-
{
527-
// document.domain = document.domain; // for comet
528-
}
529-
530525
// for IE
531526
if (browser.msie)
532527
{

0 commit comments

Comments
 (0)