Closed Bug 282823 Opened 20 years ago Closed 20 years ago

Javascript document.open("model/vrml") displays the source text instead of starting the plugin

Categories

(Core Graveyard :: Plug-ins, defect)

Other Branch
x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: fishjimboding, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

When generating a new document using the javascript DOM function
document.open("model/vrml"), the browser uses a text mime type and displays the
text being written to the document instead of loading the vrml plugin and
displaying the scene.

Reproducible: Always

Steps to Reproduce:
1.in a javascript script tag call the function document.open("model/vrml");
2.write something to the document using document.write("something");
3.optionally close the document using document.close();

Actual Results:  
The word something appears on the webpage

Expected Results:  
The VRML plugin should have started
(probably with an error since "something" isn't valid VRML)

Using the Cortona VRML plugin from parallelgraphics.com
Component: File Handling → Plug-ins
Product: Firefox → Core
Version: unspecified → Other Branch
Assignee: bugs → nobody
QA Contact: aebrahim-bmo → plugins
Plugin documents are a different type of object from HTML documents in Mozilla
(unlike Netscape 4).  document.open() can't change the type of object "document"
is.  So this isn't really going to work in Mozilla...

See bug 73409 for more information.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.