[orca] Chromium: Ignore document events from pages with no URI
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromium: Ignore document events from pages with no URI
- Date: Tue, 8 Jan 2019 22:32:09 +0000 (UTC)
commit c60bdd1fbb9ca2c54fb05cb2c66d6947fe1a8fd4
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jan 8 17:31:37 2019 -0500
Chromium: Ignore document events from pages with no URI
src/orca/scripts/toolkits/Chromium/script.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script.py b/src/orca/scripts/toolkits/Chromium/script.py
index b26896107..2d682cb6c 100644
--- a/src/orca/scripts/toolkits/Chromium/script.py
+++ b/src/orca/scripts/toolkits/Chromium/script.py
@@ -203,6 +203,11 @@ class Script(web.Script):
def onDocumentLoadComplete(self, event):
"""Callback for document:load-complete accessibility events."""
+ if not self.utilities.documentFrameURI(event.source):
+ msg = "CHROMIUM: Ignoring event from page with no URI."
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return
+
if super().onDocumentLoadComplete(event):
return
@@ -213,6 +218,11 @@ class Script(web.Script):
def onDocumentLoadStopped(self, event):
"""Callback for document:load-stopped accessibility events."""
+ if not self.utilities.documentFrameURI(event.source):
+ msg = "CHROMIUM: Ignoring event from page with no URI."
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return
+
if super().onDocumentLoadStopped(event):
return
@@ -223,6 +233,11 @@ class Script(web.Script):
def onDocumentReload(self, event):
"""Callback for document:reload accessibility events."""
+ if not self.utilities.documentFrameURI(event.source):
+ msg = "CHROMIUM: Ignoring event from page with no URI."
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return
+
if super().onDocumentReload(event):
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]