Closed Bug 271507 Opened 20 years ago Closed 20 years ago

script in overlay isn't loaded

Categories

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

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: surkov, Unassigned)

Details

Attachments

(3 files)

25 bytes, application/x-javascript
Details
328 bytes, application/vnd.mozilla.xul+xml
Details
265 bytes, application/vnd.mozilla.xul+xml
Details
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'
Attached file Script
Attached file Overlay
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
Attachment #167983 - Attachment description: Test file → Test file (load this)
Yes. This bug was fixed.
OK.  Please do test a recent build before filing bugs...
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: