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

NEW
Unassigned

Status

()

Firefox
File Handling
6 years ago
6 years ago

People

(Reporter: Jens Mönig, Unassigned)

Tracking

13 Branch
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
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.

Comment 1

6 years ago
# should be escaped, See Bug 658949.

Comment 2

6 years ago
Reproducible on Firefox 13.0.1 and the latest Aurora and Nightly builds(07/10).
Component: Untriaged → File Handling

Updated

6 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.