Backport "Recycle old V8 wrapper objects on navigations"

Bug: 14582835

Original CL description:

    [Android Java Bridge] Recycle old V8 wrapper objects on navigations

    When browser navigates to another page, make sure we de-associate
    NPObjects of injected Java objects from their old V8 wrappers.

    Not doing this leads to potential leaks of JS objects from one
    context to another.

    BUG=372914
    R=jochen@chromium.org

    Review URL: https://codereview.chromium.org/286823002

    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271002 0039d316-1c4b-4281-b951-d872f2087c98

Change-Id: I05aea77700238c54db47160e2e93faf331d040f6
1 file changed