Open Bug 111743 Opened 23 years ago Updated 2 years ago

getting notified when a new docshell is created

Categories

(Core :: DOM: Navigation, defect)

x86
Linux
defect

Tracking

()

Future

People

(Reporter: jorn, Unassigned)

References

()

Details

it would be cool if it'd be possible to get notified when a new docshell is
created, so for example plugins can be turned off by default. I'm sorry if
there's already a way to do this, but i couldnt find any.
This is a feature request to make plugin blocking work in galeon.
embedding
Assignee: joki → adamlock
Status: UNCONFIRMED → NEW
Component: Event Handling → Embedding: Docshell
Ever confirmed: true
QA Contact: madhur → adamlock
Sorry, I don't understand the context you need this. Can you elaborate?
Oki doki:
In galeon, we'd like to have a pref which, if on, blocks all plugins.
Afaics, the way to do this with mozilla is calling dochsell->SetAllowPlugins.
You need to set this before the page is loaded, and for all frames, or it won't
work. I think the least hacky way to achieve this is calling SetAllowPlugins
directly on the new docshell when a new docshell is created.
Target Milestone: --- → Future
Assignee: adamlock → nobody
QA Contact: adamlock → docshell
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.