[Extensions Bindings] Protect against custom getters on chrome.runtime
Many chrome.extension methods are directly aliased to their chrome.runtime counterparts. If the chrome.runtime object has a custom getter that throws on access, trying to access the chrome.extension variant will trigger it. Protect against this by checking the result of the Get() in GetAliasedFeature(). Add regression tests in both a targeted unit test and an end-to-end browser test. Bug: 949170 Change-Id: I7405953a7ce735fe7d5fa055de8a5d97a1fbe1db Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553804 Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Reviewed-by:Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#648733}
Showing
Please register or sign in to comment