зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1342141 part A - The test plugin will use name="plugin" as an indicator of fullpage, rather than NP_FULL, to make test_fullpage.html green, r=jimm
MozReview-Commit-ID: D7HVr9f37se --HG-- extra : histedit_source : bc1b57ae9579098d8a2d2fe7c3bbe395a9ab5ed6
This commit is contained in:
Родитель
a8c5e52ea6
Коммит
27cc367f50
|
@ -876,12 +876,6 @@ NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char*
|
|||
|
||||
instanceData->instanceCountWatchGeneration = sCurrentInstanceCountWatchGeneration;
|
||||
|
||||
if (NP_FULL == mode) {
|
||||
instanceData->streamMode = NP_SEEK;
|
||||
instanceData->frame = "testframe";
|
||||
addRange(instanceData, "100,100");
|
||||
}
|
||||
|
||||
AsyncDrawing requestAsyncDrawing = AD_NONE;
|
||||
|
||||
bool requestWindow = false;
|
||||
|
@ -1015,7 +1009,16 @@ NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char*
|
|||
if (strcmp(argn[i], "salign") == 0) {
|
||||
alreadyHasSalign = true;
|
||||
}
|
||||
}
|
||||
|
||||
// We don't support NP_FULL any more, but name="plugin" is an indication
|
||||
// that we're a full-page plugin. We use default seek parameters for
|
||||
// test_fullpage.html
|
||||
if (strcmp(argn[i], "name") == 0 && strcmp(argv[i], "plugin") == 0) {
|
||||
instanceData->streamMode = NP_SEEK;
|
||||
instanceData->frame = "testframe";
|
||||
addRange(instanceData, "100,100");
|
||||
}
|
||||
}
|
||||
|
||||
if (!browserSupportsWindowless || !pluginSupportsWindowlessMode()) {
|
||||
requestWindow = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче