[
https://issues.apache.org/jira/browse/GUACAMOLE-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17152333#comment-17152333
]
Mike Jumper commented on GUACAMOLE-1127:
----------------------------------------
Perhaps your extension needs to more broadly apply the {{document.domain}}
changes such that it affects the HTML of the {{guacResize}} directive, as well?
https://github.com/apache/guacamole-client/blob/d1e928bea79ca81c827e9b6adedabc98eefdf701/guacamole/src/main/webapp/app/element/templates/blank.html
http://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-patch-html
> 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
> Priority: Minor
>
> 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)