Monty Thibault created GUACAMOLE-1127:
-----------------------------------------
Summary: dynamic resize sensor breaks on domain alteration
Key: GUACAMOLE-1127
URL: https://issues.apache.org/jira/browse/GUACAMOLE-1127
Project: Guacamole
Issue Type: Bug
Components: guacamole-client
Affects Versions: 1.2.0
Environment: Chrome Version 83.0.4103.116 (Official Build) (64-bit)
MacOS Mojave 10.14.6
Reporter: Monty Thibault
I have a guacamole web application with an extension that [generalizes
document.domain|https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Changing_origin]
to facilitate same-origin conditions with another subdomain.
When I do this, there is a javascript error "Cannot read property defaultView
of null" pointing to
[guacamole-client/guacamole/src/main/webapp/app/element/directives/guacResize.js:98|https://github.com/apache/guacamole-client/blob/d1e928bea79ca81c827e9b6adedabc98eefdf701/guacamole/src/main/webapp/app/element/directives/guacResize.js#L98].
I assume that the resize listener is no-longer same-origin after modifying the
parent document's domain, so contentDocument is inaccessible.
What is the motivation for having an object element as a resize listener?
Thanks!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)