"View source" doesn't syntax-highlight in certain page

NEW
Unassigned

Status

()

Toolkit
View Source
2 years ago
2 years ago

People

(Reporter: Alice0775 White, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

2 years ago
STR
Open URL
keyPress ctrl+U

This is not a recent regression.
(Reporter)

Updated

2 years ago
status-firefox47: affected → ---
I believe it is due to the Content-Type header in the server's response.  For the URL given here, it is:

Content-Type: multipart/x-mixed-replace;boundary="------- =_aaaaaaaaaa0"; charset=UTF-8

Needs more investigation to check what path we go down in the parser:

https://dxr.mozilla.org/mozilla-central/rev/e355cacefc881ba360d412853b57e8e060e966f4/dom/html/nsHTMLDocument.cpp#597-613
You need to log in before you can comment on or make changes to this bug.