Closed Bug 308799 Opened 19 years ago Closed 16 years ago

Browser will never unload if a stringbundle is removed by an onunload-listener while a java applet is shown.

Categories

(Firefox :: General, defect)

1.5.0.x Branch
x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bugs, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

This one is strange!

Tested with Fx 1.5 Beta 1
JRE 1.5.0_04

OK:
http://archive.mozilla.org/pub/firefox/nightly/2004-10-08-07-trunk/Firefox-win32.zip

NOT OK:
http://archive.mozilla.org/pub/firefox/nightly/2004-10-09-07-trunk/Firefox-win32.zip

Fx 1.0.x is ok.

Install the test-extension from
http://wwww.krickelkrackel.de/testing/expando.xpi into a fresh profile.
Restart (of course...)

Load http://java.sun.com/openstudio/index.html
Open the Windows Task-Manager
Close the browser
"Firefox.exe" will stay forever

The extension does the following:

<?xml version="1.0"?>
<!DOCTYPE window SYSTEM "chrome://navigator/locale/navigator.dtd">

<overlay id="expando"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <stringbundleset id="stringbundleset">
    <stringbundle id="expandobundle"
src="chrome://expando/content/expando.properties"/>
  </stringbundleset>

  <script type="application/x-javascript">
    addEventListener('unload', expandoRemove, false);

    function expandoRemove(e)
    {
       var exNode = document.getElementById("expandobundle");
       exNode.parentNode.removeChild(exNode);

    }
  </script>
</overlay>

I'm not sure, if it's very clever to remove something from the DOM while
the window is unloading... 

I've tried to remove other nodes from the DOM, but only removing a 
stringbundle reproduces the problem for me.

Reproducible: Always

Steps to Reproduce:



Expected Results:  
Behave like Fx 1.0.x
Summary: Browser will never unload if a stringbundle is removed while a java applet is shown. → Browser will never unload if a stringbundle is removed by an onunload-listener while a java applet is shown.
Reporter, your test extension does not exist any more.

I would like to try to reproduce this bug with Seamonkey, since I'm experiencing
your "Java Plugin and Mouse Guesture Extension conflict"
(http://bugzilla.mozdev.org/show_bug.cgi?id=11567) with Seamonkey 1.0a, too.

Version: unspecified → Trunk
*** Bug 311273 has been marked as a duplicate of this bug. ***
Bug 311273 (which I just marked as a duplicate) are the symptoms caused by this bug.

This has been worked around by the Optimoz team, but it should still be fixed.


~Grauw
Oops! My spam filter was too strict.

The correct link to the "expando":
http://www.krickelkrackel.de/testing/expando.xpi

Changing from trunk to branch, because of regression window in 2004.
(only tested with Fx)

Same problem with Media Player Plugin.
Version: Trunk → 1.5 Branch
*** Bug 309448 has been marked as a duplicate of this bug. ***
I believe my problem is dependable on this bug, so I post it here. (thnx grauw)

If I open a link to an embedded WMV, and close the new window/tab, I get the following error:
+--------------------------------------------------------+
| Illegal operation in plugin                         [x]|
+--------------------------------------------------------+
| Windows Media Player Plug-in Dynamic Link Library      |
|                                                        |
| The plugin has performed an illegal operation. You are |
| strongly recommended to restart Firefox.               |
|                                                        |
| [ ] Don’t show this message again during this session  |
|                                                        |
|                       [  OK  ]                         |
+--------------------------------------------------------+

After closing down FF, it keeps being mentioned in the Windows Taskmanager.
Not even consuming a lot of memory (as mentioned in an other forum).
I can only restart FF after closing this process.
It happened a few times before, with previous FF versions, but never was really irritating as it is now cause it's happening everytime, now.


Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8) Gecko/20051111 Firefox/1.5

That’s exactly the same symptoms that I had. I was using Optimoz Mouse Gestures, but Bert is not.

Bert, could you tell us what extensions do you have installed? Do you still see the problem if you disable them all? If so, could you determine which extension is the cause of this by enabling them again one by one?


~Grauw
(In reply to comment #7)
> That’s exactly the same symptoms that I had. I was using Optimoz Mouse
> Gestures, but Bert is not.
> 
> Bert, could you tell us what extensions do you have installed? Do you still see
> the problem if you disable them all? If so, could you determine which extension
> is the cause of this by enabling them again one by one?
> 
> 
> ~Grauw
> 

I've been testing all the extensions I have installed right now, and I came to the conclusion that I can't reproduse the bug. :S
Then I remembered I de-installed 2 extensions yesterday:
Browse-images and Disable Targets For Downloads.

Thus I believe the problem is dependable on one of these extensions. Or my extensions/FF are/is updated without me knowing. :S

Blocks: 344865
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.