[bugs] [Bug 1097] New - Passphrase window Javascript in
imp/compose.php (v 2.559) incompatible w/ Mozilla 5.x+
bugs@bugs.horde.org
bugs@bugs.horde.org
Wed Nov 6 18:42:22 2002
http://bugs.horde.org/show_bug.cgi?id=1097
*** shadow/1097 Wed Nov 6 14:42:21 2002
--- shadow/1097.tmp.11776 Wed Nov 6 14:42:21 2002
***************
*** 0 ****
--- 1,51 ----
+ Bug#: 1097
+ Product: Horde
+ Version: other
+ Platform: Mozilla 5.x
+ OS/Version: All
+ Status: NEW
+ Resolution:
+ Severity: normal
+ Priority: P3
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck@horde.org
+ ReportedBy: windhamg@email.arizona.edu
+ URL:
+ Summary: Passphrase window Javascript in imp/compose.php (v 2.559) incompatible w/ Mozilla 5.x+
+
+ The javascript in imp/compose.php (CVS HEAD version) responsible for opening the
+ PGP passphrase window doesn't work properly with Mozilla (and Netscape
+ derivatives). Line 1202 references "opener.compose.actionID.value"; while this
+ works in IE/Opera/Konqueror/etc, Mozilla complains, requiring the object
+ hierarchy "opener.document.compose.actionID.value". This hierarchy works with
+ the aforementioned browsers as well, so fixing it for Mozilla shouldn't break
+ anything else. The diff is as follows:
+
+ *** compose.php 2002-11-06 11:26:17.000000000 -0700
+ --- compose.php.fix 2002-11-06 11:39:13.000000000 -0700
+ ***************
+ *** 1199,1205 ****
+ /* Open the passphrase window here. */
+ if (isset($open_passphrase_dialog)) {
+ require IMP_TEMPLATES . '/pgp/open_pgp_win.js';
+ ! echo '<script language="JavaScript" type="text/javascript">' .
+ $imp_pgp->getJSOpenWinCode(PGP_OPEN_PASSPHRASE_DIALOG,
+ opener.focus();opener.compose.actionID.value='" . SEND_MESSAGE .
+ "';opener.uniqSubmit();") . '</script>';
+ }
+
+ require IMP_TEMPLATES . '/common-footer.inc';
+ --- 1199,1205 ----
+ /* Open the passphrase window here. */
+ if (isset($open_passphrase_dialog)) {
+ require IMP_TEMPLATES . '/pgp/open_pgp_win.js';
+ ! echo '<script language="JavaScript" type="text/javascript">' .
+ $imp_pgp->getJSOpenWinCode(PGP_OPEN_PASSPHRASE_DIALOG,
+ "opener.focus();opener.document.compose.actionID.value='" . SEND_MESSAGE .
+ "';opener.uniqSubmit();") . '</script>';
+ }
+
+ require IMP_TEMPLATES . '/common-footer.inc';
+
+
More information about the bugs
mailing list