summaryrefslogtreecommitdiff
path: root/skins/classic
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-04-29 10:43:13 +0200
committerAleksander Machniak <alec@alec.pl>2013-04-29 10:43:48 +0200
commitfb2f066370d1ef30ff6d68ab3f20c17f861a5286 (patch)
tree28e92945b019b5f835b826d098e103f2b26cad27 /skins/classic
parentaf98eb046f28e5cf100293dc7b037dc69f7d6333 (diff)
Catch possible "Permission denied" error on iframe elements in IE
Diffstat (limited to 'skins/classic')
-rw-r--r--skins/classic/functions.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/skins/classic/functions.js b/skins/classic/functions.js
index c59ea9bf8..23c69805c 100644
--- a/skins/classic/functions.js
+++ b/skins/classic/functions.js
@@ -634,8 +634,13 @@ function rcmail_scroller(list, top, bottom)
function iframe_events()
{
// this==iframe
- var doc = this.contentDocument ? this.contentDocument : this.contentWindow ? this.contentWindow.document : null;
- rcube_event.add_listener({ element: doc, object:rcmail_ui, method:'body_mouseup', event:'mouseup' });
+ try {
+ var doc = this.contentDocument ? this.contentDocument : this.contentWindow ? this.contentWindow.document : null;
+ rcube_event.add_listener({ element: doc, object:rcmail_ui, method:'body_mouseup', event:'mouseup' });
+ }
+ catch (e) {
+ // catch possible "Permission denied" error in IE
+ };
};
// Abbreviate mailbox names to fit width of the container