Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--browser.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/browser.py b/browser.py
index efcd5c7..39a304d 100644
--- a/browser.py
+++ b/browser.py
@@ -653,9 +653,12 @@ class Browser(WebKit.WebView):
"""Show Sugar's error page"""
# Don't show error page if the load was interrupted by policy
- # change. For example, if a file was requested for download
- if web_error.code == WebKit.PolicyError.\
- FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE:
+ # change or the request is going to be handled by a
+ # plugin. For example, if a file was requested for download or
+ # an .ogg file is going to be played.
+ if web_error.code in (WebKit.PolicyError.\
+ FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE,
+ WebKit.PluginError.WILL_HANDLE_LOAD):
return True
data = {