Closed Bug 309565 Opened 19 years ago Closed 14 years ago

When searching title from audible.com (and other places) incorrect URL is generated resulting in "domain not found" message

Categories

(Firefox :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jwhite1, Unassigned)

References

()

Details

(Whiteboard: [CLOSEME 2010-11-01])

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.5

Incorrect URL that is generated that consists of the correct URL appended to the
previous page's URL.  If the previous URL is edited out by hand, Firefox goes to
the correct address.

Reproducible: Always

Steps to Reproduce:
1.Go to audible.com  (may have to generate login name)
2. seach any title
Actual Results:  
Browser will returned "domain not found"


Expected Results:  
Generated the correct url without the previous pages URL appended
This is probably more of an advocacy question -- it looks like a bug in their
Javascript, to me.  They have a search form (document.basicSearchForm) with an
action of /adbl/site/audibleSearch/searchResults.jsp and an onsubmit of "return
searchSubmit();"

function searchSubmit() rebuilds the action as 

  "http://" + window.location.hostname + document.basicSearchForm.action

I guess mainly to force non-secure searches.

But it then calls 'basicSearchForm.submit()' again, before returning 'true'.  So
there's a race condition -- does the original form submission happen first, or
does the onsubmit handler get called *again*?  Looks like the onsubmit gets
called 2 or 3 times.  So the flow is:

initial: 

  action = /adbl/site/audibleSearch/searchResults.jsp

onsubmit converts to:

  action = http://www.audible.com/adbl/site/audibleSearch/searchResults.jsp

onsubmit gets call *again* before search is submitted, so we have 

  action =
http://www.audible.comhttp://www.audible.com/adbl/site/audibleSearch/searchResults.jsp

And *then* the search gets submitted (or on occasion, the onsubmit handler gets
called still another time).

I would reclassify this under "Tech Evangelism" unless someone can confirm that
this is a bug in Firefox's JS implementation.

I'd also suggest reporting it to Audible.com (good luck with *that*, by the
way).  The fix would be:  don't call basicSearchForm.submit() in their onsubmit
handler

Same behavior on Windows as OSX, by the way.
p.s. Workaround in the meantime -- Audible's advanced search page (linked as
"More Search Options" on the front page) doesn't have this bug.
This is a mass search for bugs that are in the Firefox General component, are UNCO, and have not been changed for 1000 days and have an unspecified version. 

Reporter, can you please update to Firefox 3.6.10, create a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles, and test again. If you still see the bug, please update this bug. If the issue is gone, please set the resolution to RESOLVED > WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]
No reply from reporter, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.