Bug 441227 - firefox- gives javascript error for salesforce.com
firefox- gives javascript error for salesforce.com
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: firefox (Show other bugs)
All Linux
high Severity medium
: rc
: ---
Assigned To: Martin Stransky
Depends On:
  Show dependency treegraph
Reported: 2008-04-07 05:41 EDT by Huzaifa S. Sidhpurwala
Modified: 2008-05-06 02:53 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-06 02:53:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Huzaifa S. Sidhpurwala 2008-04-07 05:41:33 EDT
Description of problem:
firefox- gives java script error when trying to submit order in
The error is:

Error: uncaught exception: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE)
[nsIDOMHTMLSelectElement.selectedIndex]" nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS frame ::
:: onclick :: line 1" data: no]

Version-Release number of selected component (if applicable):

and firefox2-

also fails

How reproducible:

You need a salesforce login to reproduce this.

Steps to Reproduce:
1. Login to salesforce
2. Submit an order
3. error
Actual results:
Java script error, does not work

Expected results:
Should allow to submit orders.

Additional info:
Comment 2 Mauricio Teixeira 2008-04-07 07:52:19 EDT
Note: does not seem to crash.
Comment 3 Martin Stransky 2008-04-08 07:06:28 EDT
It's caused by mozilla-403168.patch in our packages (it's a fix for

Firefox 3 is affected, too.
Comment 4 Martin Stransky 2008-04-08 10:05:05 EDT
The exeption is raised by this line in connection.js script from salesforce.com:

this.connection.open("POST", this.url, async);

It fails in nsXMLHttpRequest::OpenRequest, at:

 rv = CheckInnerWindowCorrectness();

where fails the condition:

outer->GetCurrentInnerWindow() == win

#0  nsXMLHttpRequest::CheckInnerWindowCorrectness (this=0x35ec560) at
164             return NS_ERROR_FAILURE;
(gdb) l
159           nsCOMPtr<nsPIDOMWindow> win = do_QueryReferent(mOwner);
160           NS_ENSURE_STATE(win);
161           NS_ASSERTION(win->IsInnerWindow(), "Should have inner window
162           nsPIDOMWindow* outer = win->GetOuterWindow();
163           if (!outer || outer->GetCurrentInnerWindow() != win) {
164             return NS_ERROR_FAILURE;
165           }
166         }
167         return NS_OK;
168       }

Comment 7 Martin Stransky 2008-05-06 02:53:46 EDT
Closing as NOTABUG. Cross-windows XHR scripting has been disabled in latest
security update and is not supported in FF3.

Note You need to log in before you can comment on or make changes to this bug.