Closed
Bug 87918
Opened 23 years ago
Closed 21 years ago
Cannot view xul source
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 206691
Future
People
(Reporter: joki, Assigned: doronr)
References
()
Details
Running Win2K we seem to just get a blank window these days when attempting a view-source on a xul doc. I don't know if harishd is the right owner for this or not but he seems to own more view-source bugs than anybody else so I'll start with him.
Comment 1•23 years ago
|
||
When doing this, I get the following error: Error: redeclaration of const kIOServiceProgID Source File: chrome://communicator/content/utilityOverlay.js Line: 1 Also, I can load view-source:chrome://communicator/content/pref/pref-appearance.xul just fine up _until_ I have loaded chrome://communicator/content/pref/pref-appearance.xul Over to XP apps, ccing doron and myself. I think this is a dup....
Assignee: harishd → blake
Component: Browser-General → XP Apps: GUI Features
QA Contact: doronr → sairuh
Comment 2•23 years ago
|
||
In fact it's a dup of bug 86238. *** This bug has been marked as a duplicate of 86238 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 4•23 years ago
|
||
Hrm. I suck. Looks like that error appears even when we load the source correctly. Nevertheless, it looks like we don't make it down to the parser when we try to view source in this case. So this should stay in XP app land for now.
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
Comment 5•23 years ago
|
||
OK. A bit of research shows the following: 1) Once we've loaded the XUL doc in the browser window, further loads use the content type mozilla.application/cached-xul instead of application/vnd.mozilla.xul+xml 2) The parser does not handle that mimetype in viewsource (so there _is_ some parser component to this bug). But if I add this mimetype to the list of handled types I get the source of about:blank instead of the actual source I need to handle. Still investigating this.
Looks like an OnDataAvailable is not getting fired! I see an OnStartRequest followed by an OnStopRequest and that's it. Data did not flow into the parser.
Comment 9•23 years ago
|
||
How do I reproduce this?
Comment 10•23 years ago
|
||
Hmm.. Could the problem be caused by the code at http://lxr.mozilla.org/seamonkey/source/content/xul/document/src/nsXULDocument.cpp#702 ? Though when we're viewing source the document is treated as an HTML document, so this code may never even be called...
Comment 11•23 years ago
|
||
To reproduce: 1) Load chrome://communicator/content/pref/pref-appearance.xul in the browser window 2) Select View > Page Source To reproduce the desired behavior: 1) Start a fresh mozillla 2) Type view-source:chrome://communicator/content/pref/pref-appearance.xul in the URL bar
Comment 12•23 years ago
|
||
Umm...since Harish accepted this, I take it this is supposed to be assigned to him...
Assignee: blake → harishd
Status: ASSIGNED → NEW
Comment 13•23 years ago
|
||
Nope...this should probably go to dougt or darin.
Assignee: harishd → dougt
Comment 14•23 years ago
|
||
This is some xul cache problem as Boris suggested. If the XUL file is in the *xul* cache, there will not be any oda's. Do we want endusers to be able to viewsource of XUL? Reassigning to default owner.
Assignee: dougt → blake
Updated•23 years ago
|
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Updated•23 years ago
|
Target Milestone: mozilla0.9.4 → Future
Comment 16•21 years ago
|
||
Dupping forward to a bug with a clearer description of the problem. *** This bug has been marked as a duplicate of 206691 ***
Status: NEW → RESOLVED
Closed: 23 years ago → 21 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•