Open Bug 772377 Opened 13 years ago Updated 3 years ago

URL bar doesn't handle non-predefined XML character entities

Categories

(Firefox :: File Handling, defect)

13 Branch
x86
macOS
defect

Tracking

()

People

(Reporter: jens, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1 Build ID: 20120614114901 Steps to reproduce: Open a new window/tab with the following URL: data:text/xml,<say>hello&#xD;World</say> Actual results: Firefox complains about an unclosed token Expected results: Firefox should show an XML document, either omitting the escaped CR or displaying it as break, but it shouldn't give an error message. This doesn't just occur with escaped CRs, but with any non-predefined XML character entity, and it's not restricted to text/xml data types. Perhaps even worse, If you open: data:text/plain,<say>hello&#xD;World</say> everything behind the ampersand character is cut off.
# should be escaped, See Bug 658949.
Reproducible on Firefox 13.0.1 and the latest Aurora and Nightly builds(07/10).
Component: Untriaged → File Handling
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.