Closed
Bug 271507
Opened 20 years ago
Closed 20 years ago
script in overlay isn't loaded
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: surkov, Unassigned)
Details
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
When I include internal scripts (javascript code is inside of script tag)into
overlay and include overlay into window then internal script isn't executed.
When I include external script (script tag has src attribute) then external
script is executed.
Reproducible: Always
Steps to Reproduce:
//script.js
alert('external script');
//overlay.xul
<?xml version="1.0"?>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
orient="vertical">
<script type="application/x-javascript" src="script.js"/>
<script type="application/x-javascript">
alert('internal script');
</script>
</overlay>
//main.xul
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xul-overlay href="overlay.xul"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
</window>
Actual Results:
I should see message box with 'external script' and message box with 'internal
script'.
Expected Results:
I see only message box with 'external script'
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
Comment 3•20 years ago
|
||
Comment 4•20 years ago
|
||
That testcase shows two alerts in a current trunk build... (load the "Test File" attachment).
Summary: script in overlay isn't loaded → script in overlay isn't loaded
Updated•20 years ago
|
Attachment #167983 -
Attachment description: Test file → Test file (load this)
| Reporter | ||
Comment 5•20 years ago
|
||
Yes. This bug was fixed.
Comment 6•20 years ago
|
||
OK. Please do test a recent build before filing bugs...
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Updated•12 years ago
|
Component: DOM: Mozilla Extensions → DOM
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•