зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 49be7aaa199c (bug 1449736) for mochitest failure at layout/generic/test/test_plugin_focus.html on a CLOSED TREE
This commit is contained in:
Родитель
1a75356195
Коммит
10fe290de6
|
@ -268,14 +268,14 @@ int PluginInstanceChild::GetQuirks() {
|
|||
NPError PluginInstanceChild::InternalGetNPObjectForValue(NPNVariable aValue,
|
||||
NPObject** aObject) {
|
||||
PluginScriptableObjectChild* actor = nullptr;
|
||||
NPError result = NPERR_GENERIC_ERROR;
|
||||
NPError result = NPERR_NO_ERROR;
|
||||
|
||||
switch (aValue) {
|
||||
case NPNVWindowNPObject:
|
||||
if (!(actor = mCachedWindowActor)) {
|
||||
PPluginScriptableObjectChild* actorProtocol;
|
||||
if (CallNPN_GetValue_NPNVWindowNPObject(&actorProtocol, &result) &&
|
||||
(result == NPERR_NO_ERROR)) {
|
||||
CallNPN_GetValue_NPNVWindowNPObject(&actorProtocol, &result);
|
||||
if (result == NPERR_NO_ERROR) {
|
||||
actor = mCachedWindowActor =
|
||||
static_cast<PluginScriptableObjectChild*>(actorProtocol);
|
||||
NS_ASSERTION(actor, "Null actor!");
|
||||
|
@ -288,8 +288,8 @@ NPError PluginInstanceChild::InternalGetNPObjectForValue(NPNVariable aValue,
|
|||
case NPNVPluginElementNPObject:
|
||||
if (!(actor = mCachedElementActor)) {
|
||||
PPluginScriptableObjectChild* actorProtocol;
|
||||
if (CallNPN_GetValue_NPNVPluginElementNPObject(&actorProtocol, &result) &&
|
||||
(result == NPERR_NO_ERROR)) {
|
||||
CallNPN_GetValue_NPNVPluginElementNPObject(&actorProtocol, &result);
|
||||
if (result == NPERR_NO_ERROR) {
|
||||
actor = mCachedElementActor =
|
||||
static_cast<PluginScriptableObjectChild*>(actorProtocol);
|
||||
NS_ASSERTION(actor, "Null actor!");
|
||||
|
|
Загрузка…
Ссылка в новой задаче