Closed Bug 288339 Opened 20 years ago Closed 20 years ago

In SVG build: window.status does not trigger anymore from JavaScript embedded in SVG

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: 23tzr, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050329 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050329 Firefox/1.0+

The following script used to work in previous builds of SVG enabled Gecko builds:

<script type="text/javascript">
<![CDATA[
function ShowStatus(Name){if(navigator.appName!="Adobe SVG Viewer")
eval('window.status = " ' + Name + '"'); else browserEval('status = " ' + Name +
'"');}//]]></script>

It's supposed to display a passed parameter in the browser status bar.
It doesn't work anymore, though it has been working flawlessly before, may it be
in IE or Gecko based browsers (i.e. I tested successfully IE, Maxthon, Firefox
SVG and Mozilla SVG).
The test is implemented in order for the script to work in both IE and Gecko
based browsers.
Now, even if I reduce it to:

<script type="text/javascript">
<![CDATA[
function ShowStatus(Name){window.status="Hello world")
}//]]></script>

It still doesn't work in Gecko browsers.

I strongly believe something was broken since nothing changed on my machine
apart from the CSV build used. Unfortunately, I overwrote my previous build.

Yes, I did enable SVG in about:config, and the status bar is indeed showing.

Reproducible: Always

Steps to Reproduce:
1. Create an SVG with the code above
2. Over the mouse over a node
3. Status bar does not display anything (though standard links outside SVG do
appear)

Actual Results:  
Nothing

Expected Results:  
Display the passed parameter in the status bar
What value is dom.disable_window_status_change set to in about:config?
Sorry, I was busy with something else.
The value of dom.disable_window_status_change in about:config is set to true.
Does changing the value of dom.disable_window_status_change to false solve the
problem?
Heck, yeah, that sorted it out! I should have tried it instead of barely 
saying that it was on true :) Thanks, I'd never have figured that out by 
myself!
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
(In reply to comment #4)
> Heck, yeah, that sorted it out! I should have tried it instead of barely 
> saying that it was on true :) Thanks, I'd never have figured that out by 
> myself!

No problem.

Changing resolution to WORKSFORME (FIXED is used when a bug is resolved by
changing the Firefox source code).
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.