move DOM viewer into chrome so that DOM security doesn't f us up again

only a test, not part of the product
This commit is contained in:
alecf%netscape.com 1999-10-30 07:23:07 +00:00
parent 1a87908390
commit a4175fe8a8
3 changed files with 5 additions and 4 deletions

View File

@ -5,13 +5,14 @@
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
onload="onSrcLoaded();"
alignment="horizontal"
title="DOM Viewer">
<html:script language="JavaScript" src="DOMDataSourceViewer.js"/>
<box align="vertical" flex="30%">
<html:input value="resource:/res/samples/rdf/domviewer.html" type="text" name="url" id="url" onkeyup="if (event.which == 13) loadUrl();"/>
<html:input value="chrome://domviewer/content/domviewer.html" type="text" name="url" id="url" onkeyup="if (event.which == 13) loadUrl();"/>
<html:div>
Show:
<html:input type="checkbox" onclick="setMode('content', event.target.checked);"/>
@ -61,6 +62,6 @@
</box>
<splitter collapse="before" persist="state hidden" chromeclass="extrachrome"/>
<html:iframe onload="onSrcLoaded();" name="srcdoc" src="resource:/res/samples/rdf/domviewer.html" flex="73%"/>
<html:iframe onload="onSrcLoaded();" name="srcdoc" src="chrome://domviewer/content/domviewer.html" flex="73%"/>
</window>

View File

@ -24,7 +24,7 @@ include $(DEPTH)/config/autoconf.mk
MODULE = rdfdomds
SAMPLES_DIR = $(DIST)/bin/res/samples/rdf
SAMPLES_DIR = $(DIST)/bin/chrome/domviewer/content/default
RESOURCE_SAMPLES = \
DOMDataSourceViewer.xul \

View File

@ -17,7 +17,7 @@
DEPTH=..\..\..\..
MODULE=rdfdomds
SAMPLES_DIR = $(DIST)/bin/res/samples/rdf
SAMPLES_DIR = $(DIST)/bin/chrome/domviewer/chrome/content/default
include <$(DEPTH)\config\rules.mak>