A DESCRIPTION OF THE REQUEST :
The applet sandbox should reduce the usage of popup dialogs to a minimum.
This proposal solves multiple main annoyances of security popups (or notifications in general) at once without a weaker security policies.
Applets are content of webpages therefore every notification like a security or error dialog should also be rendered inside the browser and scroll with page.
It is currently difficult for users to associate a popup message with an applet esp. when there are multiple of them on that page. Dialogs are usually also often associated with system messages rather than webpages.
If the notification fits in the bounds of the applet it should be rendered in or instead of the applet. If not render a button which opens the usual notification dialog or fallback to current behaviour.
The same rendering mechanism should also deal in future with situations when the user pressed cancel on one of the notification or the applet failed to load by providing a relaunch button.
for inspirations how those notification could be designed to fit in small bounds: