Closed Bug 131343 Opened 23 years ago Closed 23 years ago

View-source on wyciwyg url fails if document has a meta charset

Categories

(Core :: DOM: Navigation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
mozilla1.0.1

People

(Reporter: bzbarsky, Assigned: radha)

Details

Attachments

(1 file)

BUILD: 2002-03-15-08. STEPS TO REPRODUCE: 1) Load attached testcase 2) Click the button 3) Open "view source" EXPECTED RESULTS: See source of the document.written page. Failing that see source of original page ACTUAL RESULTS: The document.written page itself is shown NOTES: The presense of the meta charset causes the charset observer to trigger a reload of the document via nsWebShell::ReloadDocument(). This leads to a call to nsDocShell::LoadHistoryEntry on mOSHE. Unfortunately, the URL in mOSHE is wrong -- is is wyciwyg://0/file:///home/bzbarsky/foo.html instead of view-source:wyciwyg://0/file:///home/bzbarsky/foo.html That is the root cause of the bug, but I'm not sure why mOSHE has the wrong url.
Attached file testcase
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.2
Target Milestone: mozilla1.2alpha → mozilla1.0.1
When I click on the "View source Please" link, only the original testcase, http://bugzilla.mozilla.org/showattachment.cgi?attach_id=74467 comes around for loading. There is no meta charset detected or no reload done, Nor a view source url loaded.
You are supposed to just view-source at that point, not click on the link... My apologies for the slightly confusing testcase. That said, this now worksforme...
Per new instructions, this indeed works now.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Component: History: Session → Document Navigation
QA Contact: claudius → docshell
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: