Changeset 55392 in webkit


Ignore:
Timestamp:
Mar 1, 2010 5:35:58 PM (14 years ago)
Author:
kov@webkit.org
Message:

WebKitTools

2010-03-01 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>

Reviewed by Eric Seidel.

[GTK] plugins/setProperty.html fails on 64bit Release
https://bugs.webkit.org/show_bug.cgi?id=35425

Check invoke's return code before releasing the variant, since
there's a chance it won't be properly initialized, leading to
memory corruption, in some cases.

  • DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp: (testCallback): (testEnumerate): (testDocumentOpen): (testWindowOpen): (handleCallback):

LayoutTests

2010-03-01 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>

Reviewed by Eric Seidel.

[GTK] plugins/setProperty.html fails on 64bit Release
https://bugs.webkit.org/show_bug.cgi?id=35425

Unskip the tests that failed as a consequence of the memory
corruption.

  • platform/gtk/Skipped:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r55390 r55392  
     12010-03-01  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [GTK] plugins/setProperty.html fails on 64bit Release
     6        https://bugs.webkit.org/show_bug.cgi?id=35425
     7
     8        Unskip the tests that failed as a consequence of the memory
     9        corruption.
     10
     11        * platform/gtk/Skipped:
     12
    1132010-03-01  Chris Fleizach  <cfleizach@apple.com>
    214
  • trunk/LayoutTests/platform/gtk/Skipped

    r55389 r55392  
    35893589plugins/private-browsing-mode.html
    35903590
    3591 # https://bugs.webkit.org/show_bug.cgi?id=35425
    3592 plugins/setProperty.html
    3593 plugins/return-error-from-new-stream-doesnt-invoke-destroy-stream.html
    3594 
    35953591# https://bugs.webkit.org/show_bug.cgi?id=30561
    35963592plugins/private-browsing-mode.html
  • trunk/WebKitTools/ChangeLog

    r55391 r55392  
     12010-03-01  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [GTK] plugins/setProperty.html fails on 64bit Release
     6        https://bugs.webkit.org/show_bug.cgi?id=35425
     7
     8        Check invoke's return code before releasing the variant, since
     9        there's a chance it won't be properly initialized, leading to
     10        memory corruption, in some cases.
     11
     12        * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
     13        (testCallback):
     14        (testEnumerate):
     15        (testDocumentOpen):
     16        (testWindowOpen):
     17        (handleCallback):
     18
    1192010-03-01  Dirk Pranke  <dpranke@chromium.org>
    220
  • trunk/WebKitTools/DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp

    r54996 r55392  
    22 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
    33 * Copyright (C) 2009 Holger Hans Peter Freyther
     4 * Copyright (C) 2010 Collabora Ltd.
    45 *
    56 * Redistribution and use in source and binary forms, with or without
     
    406407
    407408    NPVariant browserResult;
    408     browser->invoke(obj->npp, windowScriptObject, callbackIdentifier, 0, 0, &browserResult);
    409     browser->releasevariantvalue(&browserResult);
     409    if (browser->invoke(obj->npp, windowScriptObject, callbackIdentifier, 0, 0, &browserResult))
     410        browser->releasevariantvalue(&browserResult);
    410411
    411412    browser->releaseobject(windowScriptObject);
     
    520521            STRINGZ_TO_NPVARIANT(string, args[0]);
    521522            NPVariant browserResult;
    522             browser->invoke(obj->npp, outArray, pushIdentifier, args, 1, &browserResult);
    523             browser->releasevariantvalue(&browserResult);
     523            if (browser->invoke(obj->npp, outArray, pushIdentifier, args, 1, &browserResult))
     524                browser->releasevariantvalue(&browserResult);
    524525            browser->memfree(string);
    525526        }
     
    721722
    722723    NPVariant result;
    723     browser->invoke(npp, documentObject, openId, openArgs, 2, &result);
    724     browser->releaseobject(documentObject);
     724    if (browser->invoke(npp, documentObject, openId, openArgs, 2, &result))
     725        browser->releaseobject(documentObject);
    725726
    726727    if (result.type == NPVariantType_Object) {
     
    748749
    749750    NPVariant result;
    750     browser->invoke(npp, windowObject, openId, openArgs, 2, &result);
    751     if (result.type == NPVariantType_Object) {
     751    bool didSucceed = browser->invoke(npp, windowObject, openId, openArgs, 2, &result);
     752    if (didSucceed && (result.type == NPVariantType_Object)) {
    752753        pluginLogWithWindowObjectVariableArgs(windowObject, npp, "WINDOW OPEN SUCCESS");
    753754        notifyTestCompletion(npp, result.value.objectValue);
     
    948949
    949950    NPVariant browserResult;
    950     browser->invoke(object->npp, windowScriptObject, callbackIdentifier, args, 2, &browserResult);
    951     browser->releasevariantvalue(&browserResult);
     951    if (browser->invoke(object->npp, windowScriptObject, callbackIdentifier, args, 2, &browserResult))
     952        browser->releasevariantvalue(&browserResult);
    952953
    953954    free(strHdr);
Note: See TracChangeset for help on using the changeset viewer.