All page contents get selected after returning from PayPal shopping basket page.




14 years ago
13 years ago


(Reporter: David Viner, Assigned: Blake Ross)


Firefox Tracking Flags

(Not tracked)




14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.8

Clicking on a PayPal "Add to Basket" button brings up a separate PayPal window.
Clicking on the Continue Shopping button refocuses the first window (containing
the "Add to Basket" button). All content on this page is highlighted as if has
been selected by dragging the mouse over it. However, it is difficult to clear
the highlighting. Note that the page contents are NOT actually selected - trying
to copy and paste the info into a text editor doesn't copy anything.

Reproducible: Always
Steps to Reproduce:
1. Add a PayPal "Add to Basket" button to a page (these are forms wrapped around
an image and are generated by a utility on the PayPal site at -
sorry, but you'll need to register for an account through them to use these
pages - however, the code I've included below illustrates the effect without
needing to register). The page itself can be very minimal for testing this
problem - I tested using a button and a single line of text (included below) -
no other HTML tags at all (though adding them in doesn't fix the problem).
2. Click the button - this opens the PayPal window.
3. Click the Continue Shopping button which re-focuses the original window.
4. All the window's contents are highlighted.
Actual Results:  
Page contents appeared highlighted.

Expected Results:  
Page contents should have been as normally displayed.

PayPal is using the following code to refocus the original window. This bit
generates the button from JavaScript:

document.write('<a href="#" onclick="focusWin(baseWin)"><img
src="/en_US/i/btn/cont_shopping.gif" border=0 align=top alt="continue

This bit refocuses the parent window:

function focusWin(win) {
   if (!win.closed) {
   } else {
	alert("The window you were originally browsing in has closed.\nPlease, open a
new window to continue shopping.");

The above all looks like pretty standard stuff. However, trying to simulate the
problem using calls to other local pages doesn't appear to recreate the problem
so it could be just a PayPal problem (or possibly something to with the fact
that their pages are HTTPS encrypted?). However, the problem is not reproducible
on Mozilla (I tested 1.4 and 1.7), Opera (7.51) or IE (6) - only Firefox (0.91,
in spite of what it says in the Build Identifier above - is that another bug
that 0.91 still calls itself 0.8?) exhibits it.

Here is some example code:

<p>Some text to illustrate that it gets highlighted.</p>

<form target="paypal" action="" method="post">
<input type="image" src=""
border="0" name="submit" alt="Make payments with PayPal - it's fast, free and
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="">
<input type="hidden" name="item_name" value="Bucket and Spade">
<input type="hidden" name="item_number" value="BS-1200">
<input type="hidden" name="amount" value="165.00">
<input type="hidden" name="return" value="">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">

Comment 1

14 years ago
Problem no longer occurs in PR1.0
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Last Resolved: 13 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.