Closed Bug 510699 Opened 15 years ago Closed 4 years ago

Location bar does not handle numeric HTML entities

Categories

(Firefox :: Address Bar, defect, P5)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: ehsan.akhgari, Unassigned)

References

()

Details

STR:

1. Enter a data URI which contains numeric HTML entities in the location bar, such as:
data:text/html,فارسی
2. Hit Enter.
3. Modify a numeric value, or anything after the first hash for that matter.
4. The new URI wouldn't load, because the changed text is interpreted as an anchor specifier.

The problem is that the location bar blindly assumes that anything after a hash is an anchor for all URI schemes, which in general is not correct.
Is this a bug?  If I am not mistaken, the URL
> data:text/html,فارسی
is incorrect and there is no way to tell that the hash symbols are not meant to be a separator for a fragment identifier without the knowledge of the grammar of HTML.  It should be written as
> data:text/html,&%231601;&%231575;&%231585;&%231587;&%231740;
in the first place.

However, the current behavior (interpreting
> data:text/html,فارسی
as
> data:text/html,&%231601;&%231575;&%231585;&%231587;&%231740;
and not updating the content when the numbers are modified) is inconsistent.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
Status: RESOLVED → REOPENED
Priority: -- → P5
Resolution: INACTIVE → ---

I think comment 1 is right.

Status: REOPENED → RESOLVED
Closed: 6 years ago4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.