[PATCH] breaks when trac site is accessed via a link with a target
|Reported by:||anonymous||Owned by:||Vladislav Naumov|
The link (within our website) to my group's trac site uses target="_blank" to open trac in a new window/tab. When that is done and the parent window/tab is left around, cc_selector breaks with:
Error: Permission denied for <https://[parent website]> to get property Window.document from <[parent website]>. Source File: https://[trac site]/chrome/cc_selector/cc_selector.js Line: 95
(tested in firefox 3.5.9 and 3.6.4)
The 1st "if" (line 93) in guess_cc_field() seems to assume there will only be a window.opener within the pop-up window? Our setup is a case where that's not true.
Works fine if we close the parent window/tab before going to "New Ticket", but... need to detect if you're in the pop-up before trying to access window.opener. patch attached.
Change History (3)
comment:1 Changed 7 years ago by
|Summary:||breaks when trac site is accessed via a link with a target → [PATCH] breaks when trac site is accessed via a link with a target|