Closed Bug 213 Opened 27 years ago Closed 7 years ago

showDocument("javascript:..."); broken

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: lynxx, Assigned: bugz)

Details

Attachments

(1 file)

(deleted), application/octet-stream
Details
Created by Holger Hippenstiel (lynxx@uni.de) on Tuesday, April 14, 1998 7:06:16 AM PDT Additional Details : Since Version 4.02 of Communicator "Life" generating of Javascript doesn''t work anymore. The following example works fine in Netscape Navigator 3.01++ or Netscape Communicator 4.01 (Win 95/Win NT/IRIX 5.3, 6.2/AIX 4/HP-UX 10). It "creates" a new Html (with Javascript [also tried "mocha:" and "livescript:"]) and the browser should display "Test". AppletContext is there. The URL is created. No Exception is raised. What''s the problem !?!?! import java.awt.*; import java.applet.*; import java.net.*; public class HtmlCreate extends Applet { public void init() { try { getAppletContext().showDocument(new URL("javascript:''<html><body>Test</body></html>''"), "_self"); System.out.println("Html created"); } catch (Exception e) { System.out.println("Error: "+e); } } } Also tried to give another destination: "_top", and also showDocument(URL) without destination, nothing works !
Assignee: nobody → mccabe
Component: JavaScript
Assignee: mccabe → mlm
Mass move of libmocha-related bugs to libmocha owner. Sorry, Mike.
Status: NEW → ASSIGNED
Have you tried using "javascript:document.write('stuff')" instead?
Setting all current Open Critical and Major to M3
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
DOM bugs are not my problem.
Target Milestone: M3 → M7
Awaiting assignment to sustaining engineering.
QA Contact: 4015 → 4616
QA contact re-assigned according to the product areas we're currently working on.
Assignee: mlm → marek
Status: ASSIGNED → NEW
Transfer to Marek for 4.x series.
Component: JavaScript → DOM Level 0
Moving to DOM Level 0 comnponent. If this is a DOM Level 1 bug, please change component.
Target Milestone: M7
I think it should work. I mean code seems fine. Since Its a .java file I cant test it right now. I've to do it when I install JDK or Semantec or J++. I'll do that soon. But the only thing I'm concerned is destination. Here is some description how destination exactly works here. _self: only works if applet is showing. _parent: for parent window. don't specify: browser's choice. _top: the Frame that contains applet. _blank: a new, unnamed window. My Window: a window named "My Window". So I think you could try, _blank or creating your own window. I'll also be testing this code pretty soon.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
This is now in Bugsplat - http://scopus/bugsplat/show_bug.cgi?id=355514 Marking Verified/Invalid for Comm 5.0
Attached file code block (deleted) —
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/e5d0188f641284f8982205ce58d74172d0e70884 Fix issue #213, implement traffic cop for interactive examples testing https://github.com/mozilla/kuma/commit/6b791f0fc7327215f1e3b873520fae9af6ee11ea Merge pull request #4384 from schalkneethling/issue#213-implement-traffic-cop-for-interactive-examples Fix issue #213, implement traffic cop for interactive examples testing
Status: VERIFIED → RESOLVED
Closed: 26 years ago7 years ago
Resolution: INVALID → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: