
When contexts are invalidated, we consider the events in that context unregistered and notify the browser accordingly. Hook up an InvalidateContext() method on APIEventHandler and call it through blink's WillReleaseScriptContext(). Add associated tests. BUG=653596 Review-Url: https://codereview.chromium.org/2722463006 Cr-Commit-Position: refs/heads/master@{#454911}
This will become a reusable extensions module. It implements the core parts of Chrome's extension system, and can be used with any host of the content module.
Some extensions code that is not Chrome-specific still lives in //chrome/browser/extensions and will be moved here.
See //extensions/docs for technical documentation.