Closed Bug 283275 Opened 20 years ago Closed 20 years ago

Plugin finder service showing wrong plugins needed for a page after a tab closed that plugin service was ran

Categories

(Toolkit Graveyard :: Plugin Finder Service, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8final

People

(Reporter: u88484, Assigned: doronr)

Details

Attachments

(2 files, 1 obsolete file)

Steps to reproduce:
1) Open a page with that requires flash (without having the flash player plugin
installed) http://www.homestarrunner.com/main2.html
2) Start the process to install the plugin. Notice that only flash is required
for that page. Do not close tab
3) Next open in a new tab http://www.macromedia.com/shockwave/welcome/
4) Start the process to install the plugins. Notice that both flash and
shockwave are required for that page.
5) Close the tab for http://www.macromedia.com/shockwave/welcome/
6) Now go back to the tab with http://www.homestarrunner.com/main2.html and
start to install the plugin and for some reason both shockwave and flash show
that they are required for that page when only flash is required.

Expected results: 
Only flash should be shown to be needed since the other tab was closed. So some
kind of cache is not being cleared when the tab from macromedia is closed.

Please change the summay if need be becuase I really couldn't thing of a great
summary for this bug
Please start the process to install the plugin via the Information bar
What version of Firefox are you using?  I can't reproduce it on the latest trunk
CVS on Windows XP.
Attached patch le patch (obsolete) — Splinter Review
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050222
Firefox/1.0+
Comment on attachment 175316 [details] [diff] [review]
le patch

pathc for different bug, sorry.
Attachment #175316 - Attachment is obsolete: true
Can't reproduce on CVS pull from 30 mins ago on WinXP.  We have a cache per tab,
so this should never happen.
weird, even happens with the latest beast-trunk build with fresh clean profile
(20050223 21:48 build)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223
Firefox/1.0.1

Well I wnt to a site with todays build and I had it installed previously, but
then it asked for it to be installed on this build. It works fine for me.
(In reply to comment #7)
> weird, even happens with the latest beast-trunk build with fresh clean profile
> (20050223 21:48 build)

Maybe you have an extension installed for tabbrowsing?
Attached image wrong plugin detected
This is with clean profile and fresh install(zip) no extensions. Only thing not
default is way I way the toolbar setup and removed the lines between the
toolbars...but even with that default, same thing.

I'll try explaining the steps again in a few minutes
Re-explaining in more detail:
1) Go to http://www.homestarrunner.com/main2.html
2) Click on the 'Install Missing plugins' button on the information bar
3) Notice flash is required for that page and click the 'Cancel' button
4) Leave tab open and do not refresh it
5) hit ctrl+t to open a new tab, paste in
http://www.apple.com/trailers/fox/becauseofwinndixie/large.htm and hit enter to
load the page
6) Click on the 'Install Missing plugins' button on the information bar
7) Notice that quicktime is needed for that page and hit 'Cancel' button and
close tab
8) Click on the tab to go back to the first link, do not refresh the page or you
won't be able to reproduce
9) Click on the 'Install Missing plugins' button on the information bar
10) Quicktime is still showing as needed on that page
still can't reproduce.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050224
Firefox/1.0+
WinXP, fresh profile, nightly zip build

Can confirm this with the links in comment #1 and steps in comment #11.
Resulting in asking to install both shockwave and flash where only flash is
required. 
(Apparently the zip build finds the quicktime plugin installed on my computer,
so I can't test with the quicktime link in comment #11)
In the Firefox 1.0.1 test build, and Firefox 1.0 the plugin notification bar
just disappears if you click cancel in step 3 in comment #11. So you'll have to
refresh the tab to bring the notification bar up again: no chance to reproduce
on the branch.
Interesting - my cvs builds (debug) don't show this behavior, but the nightly
shows it.  Funky indeed.
targetting 1.1
Status: NEW → ASSIGNED
Target Milestone: --- → Firefox1.1
The problem here was that for object hashes, the DOMNode (the tab) gets
serialized to string, so each tab gets the same key.  Solution: store the
missing plugins in an array directly on the tab.
Attachment #175586 - Flags: review?(mconnor)
Comment on attachment 175586 [details] [diff] [review]
store missing plugins on the tab itself and not in an hash

sorry about the latency here!
Attachment #175586 - Flags: review?(mconnor) → review+
Comment on attachment 175586 [details] [diff] [review]
store missing plugins on the tab itself and not in an hash

a=mkaply
Attachment #175586 - Flags: approval-aviary1.1a+
checked in, thanks for review.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Firefox → Toolkit
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: