Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Issue 2782753002: Ensure only one instance of AutomationInternalCustomBindings for background page extensions (Closed)

Created:
3 years, 8 months ago by David Tseng
Modified:
3 years, 8 months ago
Reviewers:
dmazzoni
CC:
chromium-reviews, extensions-reviews_chromium.org, alemate+watch_chromium.org, dtseng+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, dougt+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, je_julie, dmazzoni+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure only one instance of AutomationInternalCustomBindings for background page extensions Previously, if an extension requesting automation has more than one page it opens in its extension process (e.g. background.html and panel.html, in ChromeVox), we instantiated two AutomationInternalCustomBindings (one for each page). This fix makes it so we only ever make "active" the instance that is associated with the extension's background page. Note that as a result, any calls to chrome.automation from non-background page contexts will result in an no-op (e.g. getDesktop will not trigger the callback). In the case that the extension has no background page, we revert to the previous behavior of having one instance per page. TEST=open the ChromeVox Panel, and close it again. Press caps lock. Verify we only process one event and only output one alert. BUG=691165 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2782753002 Cr-Commit-Position: refs/heads/master@{#460520} Committed: https://chromium.googlesource.com/chromium/src/+/d64d9854a1d22208db2d97b7f441696ed0ca8fa0

Patch Set 1 #

Patch Set 2 : Fix tests. #

Patch Set 3 : Fix ChromeVox tests. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -12 lines) Patch
M chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js View 4 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/panel_test.extjs View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/testing/mock_feedback.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.cc View 1 2 3 3 chunks +19 lines, -4 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
David Tseng
3 years, 8 months ago (2017-03-28 23:40:12 UTC) #3
dmazzoni
lgtm lgtm, but could you also file a bug for the underlying issue that the ...
3 years, 8 months ago (2017-03-29 15:22:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2782753002/40001
3 years, 8 months ago (2017-03-29 17:51:19 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/179965)
3 years, 8 months ago (2017-03-29 17:54:47 UTC) #23
chromium-reviews
dmazzoni@chromium.org writes: > lgtm > > lgtm, but could you also file a bug for ...
3 years, 8 months ago (2017-03-29 18:00:04 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2782753002/40001
3 years, 8 months ago (2017-03-29 18:06:46 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/397758) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-03-29 18:11:01 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2782753002/60001
3 years, 8 months ago (2017-03-29 18:28:54 UTC) #31
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 20:28:18 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/d64d9854a1d22208db2d97b7f441...

Powered by Google App Engine
This is Rietveld 408576698