Closed
Bug 41227
Opened 24 years ago
Closed 24 years ago
view-source from html form submit not responding
Categories
(Core :: DOM: Navigation, defect, P3)
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: tever, Assigned: adamlock)
References
()
Details
(Keywords: embed)
Attachments
(2 files)
Overview Description: The following line of html does not work with 5.0 - it sets up a button for calling view-source. <form><INPUT type=button value='Show page source' onclick= 'window.location = "view-source:" + window.location.href'> </form> Steps to Reproduce: 1.) Go to above site for test case Actual Results: nothing happens Expected Results: source should be displayed Build Date & Platform Bug Found: NT 2000060108
Comment 1•24 years ago
|
||
sounds like a dup. *** This bug has been marked as a duplicate of 41090 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 2•24 years ago
|
||
There is a slight difference here in that clicking the button results in nothing, not even a blank page. Talked over with R Ginda who suggests assigning to DOM and that this could be a problem with window.location.href not working in above example. re-opening
Status: RESOLVED → REOPENED
Component: XPApps → DOM Level 2
Resolution: DUPLICATE → ---
Comment 4•24 years ago
|
||
The DOM is not responcible for this, mozilla doesn't AFAIK even know what view-source: means yet, should be quite easy to implement in the docshell/uriloader tho, just pass on the view-source command to the document/parser...
Assignee: jst → adamlock
Component: DOM Level 2 → Embedding: Docshell
Updated•24 years ago
|
QA Contact: sairuh → adamlock
Docshell can be modified to check if the protocol of the URI it has been passed was of type view-source: and then set the content viewer appropriately. It does rely on the nsURI parser being able to cope with URLS in this form view-source:http://www.blah.com/foo#bar A problem for someone else. The chrome also needs updating so that if someone types view-source: into the address bar, that a new window is created to show the source code in, rather than replacing the existing content.
Status: NEW → ASSIGNED
Updated•24 years ago
|
Target Milestone: --- → Future
Committed as part of yesterday's general API cleanup
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•