Don't invalidate a GinPort's events if the context is already invalidated
A GinPort's onDisconnect may invalidate the context (e.g. MessagingApiTest.MessagingBackgroundOnly). Attempting to invalidate the events throws an exception which interferes with the extensions JS testing framework. Now the framework can call more of the safe builtins without triggering the exception, so we do so here. Bug: 803668 Change-Id: I07aa962ba689174a4f35885c72a9c3318256ff50 Reviewed-on: https://chromium-review.googlesource.com/c/1342068Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Commit-Queue: Kevin McNee <mcnee@chromium.org> Cr-Commit-Position: refs/heads/master@{#609821}
Showing
Please register or sign in to comment