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.


    Review URL:

    git-svn-id: svn:// 0039d316-1c4b-4281-b951-d872f2087c98

Change-Id: I05aea77700238c54db47160e2e93faf331d040f6
1 file changed