Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
m (moved Plugins:CancelSourceStream to NPAPI:CancelSourceStream) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 12: | Line 12: | ||
* Last modified: January 16, 2009 | * Last modified: January 16, 2009 | ||
* Author: Anders Carlsson | * Author: Anders Carlsson (Apple) | ||
* Contributors: | * Contributors: Eric Carlson (Apple), Kevin Decker (Apple) | ||
Before the browser tries to load the stream for the "src" attribute, it will call NPP_GetValue for "NPPVpluginCancelSrcStream", passing a pointer to an NPBool as the value. | Before the browser tries to load the stream for the "src" attribute, it will call NPP_GetValue for "NPPVpluginCancelSrcStream" (assigned enum value 20), passing a pointer to an NPBool as the value. | ||
If the plug-in returns an error or sets the pointed to value to false, the stream will be loaded. If the plug-in sets the pointed to vale to true, the stream will not be loaded. | If the plug-in returns an error or sets the pointed to value to false, the stream will be loaded. If the plug-in sets the pointed to vale to true, the stream will not be loaded. | ||
For full-frame plug-ins, where a load has already started, the browser will cancel the load if the plug-in indicates that the src stream should be skipped. | For full-frame plug-ins, where a load has already started, the browser will cancel the load if the plug-in indicates that the src stream should be skipped. |