Closed Bug 87918 Opened 23 years ago Closed 21 years ago

Cannot view xul source

Categories

(SeaMonkey :: UI Design, defect)

x86
All
defect
Not set
normal

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.
Blocks: 78422
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
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
v
Status: RESOLVED → VERIFIED
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 → ---
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.
seeing this on win98 too
OS: Windows 2000 → All
Status: REOPENED → ASSIGNED
Target Milestone: --- → mozilla0.9.3
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.
CCing dougt.
How do I reproduce this?
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...
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
Umm...since Harish accepted this, I take it this is supposed to be assigned to 
him...
Assignee: blake → harishd
Status: ASSIGNED → NEW
Nope...this should probably go to dougt or darin.
Assignee: harishd → dougt
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
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Target Milestone: mozilla0.9.4 → Future
->doron
Assignee: blaker → doronr
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 ago21 years ago
Resolution: --- → DUPLICATE
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.