don't automatically start plugins in background tabs (especially in session restore)

NEW
Unassigned

Status

()

P5
enhancement
10 years ago
5 months ago

People

(Reporter: ted, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

It would be great if we would not automatically start plugins when opened in a background tab. The worst case of this is session restore, where you might have a few youtube videos open in tabs, and they all start playing in parallel when you restore your session. Instead, we should start them when you click on the tab to view it.
I talked to Boris about this, and he thought it wouldn't be too hard to do. I guess this bug is in the wrong component, since we'd probably want:
1) A way to load a document, not instantiating plugins when hit
2) A way to tell a document that's been loaded in that way to instantiate all of its plugins
3) Some hooks in Firefox to use the former for loading background tabs during session restore, and the latter when focusing a background tab
Yeah, this probably wouldn't need any plug-in code per se; just code in nsObjectLoadingContent and various places above that.
Component: Plug-ins → DOM
QA Contact: plugins → general

Updated

9 years ago
Duplicate of this bug: 540127

Comment 4

9 years ago
Could this also be useful for OOPP as I suggested in bug 540127 comment 1?

Comment 5

8 years ago
Isn't this bug will be partially resolved by introducing in Firefox 4 a new "Bar Tab" feature (Prevents restored open tabs from all loading at the same time). 

https://bugzilla.mozilla.org/show_bug.cgi?id=561149

When setting in about:config, variable: browser.sessionstore.max_concurrent_tabs , set to zero. It prevents from loading all content (plugins) in background until tabs are clicked ?

Comment 6

8 years ago
(In reply to comment #5)

Only when opened from session restore, not when one opens a link in a new background tab.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.