Open Bug 516678 Opened 15 years ago Updated 2 years ago

redirect toolbar generates malformed xml for 0 byte pages with redirect headers

Categories

(Firefox :: Toolbars and Customization, defect)

3.5 Branch
x86
All
defect

Tracking

()

People

(Reporter: timeless, Unassigned)

References

()

Details

Bug 516441 reported this problem on linux, i can reproduce on os x

Description From Akkana Peck 2009-09-14 09:40:30 PDT (-)

1. Enable redirect warnings (Preferences, Advanced, "Warn me when web sites try to
redirect or reload the page").

2. load http://mxr.mozilla.org/mozilla/search?find=this&find=js&tree=mozilla-central

actual results:
It loads something, there's a brief flash at the top like it's trying to show a
redirect warning, but no warning bar actually appears and I end up at a blank
page.

the following two messages are visible in the error console:
Error: not well-formed
Source File: 
Line: 1, Column: 49
Source Code:
<body xmlns="http://www.w3.org/1999/xhtml">&find=js&tree=mozilla-central</

Error: not well-formed
Source File: 
Line: 1, Column: 49
Source Code:
<body xmlns="http://www.w3.org/1999/xhtml">&find=js&tree=mozilla-central</

expected results:
The redirect warning that one gets for other websites

akkana writes:
I'm not sure what's special about mxr.

mxr has a zero byte page

http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.js#4333
seems to be the thing that deals w/ the redirect toolbar,
Assignee: nobody → mano
Depends on: 83265
Assignee: asaf → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.