Closed
Bug 74855
Opened 24 years ago
Closed 24 years ago
JavaScript 'window.location=view-source:[url here]' nonfunctional
Categories
(Core :: Networking, defect)
Tracking
()
People
(Reporter: bischoff, Assigned: neeti)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 0.8.1)
BuildID: 2201040404
Using 'window.location=view-source:' in JavaScript doesn't bring up the View
Source window, as it does in both Netscape 4.x and IE.
Reproducible: Always
Steps to Reproduce:
1. View the above url in Netscape 4.x or IE
2. Click the "View Source Code" button
3. Notice that the View Source window is opened
4. Open the url in a recent Mozilla build
5. Repeat step 2 and notice that no View Source window is opened
Actual Results: Nothing happens.
Expected Results: The View Source window should have been opened.
The applicable HTML code from the url:
<FORM><INPUT TYPE=button NAME="view" VALUE="View Source Code "
OnClick='window.location="view-source:" +window.location.href'></FORM>
Also, I wasn't sure which Component to assign.
Comment 1•24 years ago
|
||
View-source isn't supported at the moment. See bug 15372. I'm not sure if this
should be made a duplicate of that one, since this is about javascript access
and it sounds like that one is about typing it in the location/URL box.
I'll confirm this bug. Should it be moved to browser/networking? Or duplicate?
Status: UNCONFIRMED → NEW
Ever confirmed: true
this is a dupe of the we need a view-source: protocol handler bug.
Assignee: asa → neeti
Component: Browser-General → Networking
Keywords: 4xp
QA Contact: doronr → tever
Whiteboard: DUPEME
Comment 3•24 years ago
|
||
This used to work. I will try to find out when it broke.
Comment 4•24 years ago
|
||
dupe of 66334
*** This bug has been marked as a duplicate of 66334 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•