Modify ↓
Opened 15 years ago
Closed 15 years ago
#7085 closed defect (fixed)
[PATCH] breaks when trac site is accessed via a link with a target
Reported by: | anonymous | Owned by: | Vladislav Naumov |
---|---|---|---|
Priority: | normal | Component: | CcSelectorPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
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.
Attachments (1)
Change History (3)
Changed 15 years ago by
Attachment: | cc_selector.diff added |
---|
comment:1 Changed 15 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 |
---|
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
patch for pre-existing opener bug