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

Issue 1809813002: [Extensions] Show a "refresh" bubble when needed with click-to-script (Closed)

Created:
4 years, 9 months ago by Devlin
Modified:
4 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Show a "refresh" bubble when needed with click-to-script When an extension wants to inject scripts at document start or use webRequest, it needs to act on the page before the page completes loading. This is a problem with click-to-script, which makes extensions wait for user action. For now, add a bubble that prompts the user to refresh the page in order to allow the extension to run on the page if the user triggers it and it had blocked actions that need to run at document_start. BUG=460306 Committed: https://crrev.com/4a78c48bcf51dda7cb915ba1866fdefcffa9bc0c Cr-Commit-Position: refs/heads/master@{#382981}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Comments, test fixes #

Total comments: 2

Patch Set 3 : Update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+470 lines, -25 lines) Patch
M chrome/app/generated_resources.grd View 1 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_apitest.cc View 1 2 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_action_runner.h View 1 4 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_action_runner.cc View 1 9 chunks +74 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_action_runner_browsertest.cc View 1 4 chunks +106 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_action_runner_unittest.cc View 1 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm View 1 2 6 chunks +42 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_message_bubble_bridge.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_message_bubble_bridge.mm View 1 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/ui/extensions/blocked_action_bubble_delegate.h View 1 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/ui/extensions/blocked_action_bubble_delegate.cc View 1 1 chunk +53 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/extension_action_view_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/extensions/extension_toolbar_icon_surfacing_bubble_delegate.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/extensions/extension_toolbar_icon_surfacing_bubble_delegate.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/test_toolbar_actions_bar_bubble_delegate.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_bar.h View 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_bar.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_bar_delegate.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/blocked_actions/content_scripts/manifest.json View 1 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/blocked_actions/content_scripts/script.js View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (20 generated)
Devlin
Antony, mind taking a look?
4 years, 9 months ago (2016-03-18 23:22:26 UTC) #9
asargent_no_longer_on_chrome
lgtm CL description nits: -In title, does "document_start/wr" contain a typo at the end there, ...
4 years, 9 months ago (2016-03-21 23:31:15 UTC) #10
Devlin
+finnur for extensions ui
4 years, 9 months ago (2016-03-22 00:12:57 UTC) #12
Finnur
Unfortunately, I'm unable to comment on this review, due to: http://crbug.com/596426 :( On Tue, Mar ...
4 years, 9 months ago (2016-03-22 10:11:03 UTC) #13
Finnur
Well, I can comment through email, but boy is that painful... Fortunately, I don't have ...
4 years, 9 months ago (2016-03-22 10:24:20 UTC) #14
Finnur
LGTM On Tue, Mar 22, 2016 at 10:24 AM, Finnur Thorarinsson <finnur@chromium.org> wrote: > Well, ...
4 years, 9 months ago (2016-03-22 10:25:01 UTC) #15
Finnur
LGTM -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" ...
4 years, 9 months ago (2016-03-22 10:25:15 UTC) #16
Finnur
Hopefully this works. LGTM.
4 years, 9 months ago (2016-03-22 10:38:20 UTC) #17
Devlin
On 2016/03/22 10:24:20, Finnur wrote: > Well, I can comment through email, but boy is ...
4 years, 9 months ago (2016-03-23 21:48:46 UTC) #23
Devlin
+Avi for the cocoa
4 years, 9 months ago (2016-03-23 21:49:09 UTC) #25
Avi (use Gerrit)
The code is fine but the comment makes no sense. https://codereview.chromium.org/1809813002/diff/200001/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm File chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm (right): https://codereview.chromium.org/1809813002/diff/200001/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm#newcode171 ...
4 years, 9 months ago (2016-03-23 22:05:24 UTC) #26
Devlin
https://codereview.chromium.org/1809813002/diff/200001/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm File chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm (right): https://codereview.chromium.org/1809813002/diff/200001/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm#newcode171 chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm:171: // menu if no |anchorAction| is null. On 2016/03/23 ...
4 years, 9 months ago (2016-03-23 22:23:09 UTC) #28
Avi (use Gerrit)
LGTM
4 years, 9 months ago (2016-03-23 22:34:15 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809813002/230001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809813002/230001
4 years, 9 months ago (2016-03-23 22:44:09 UTC) #32
commit-bot: I haz the power
Committed patchset #3 (id:230001)
4 years, 9 months ago (2016-03-24 00:02:44 UTC) #34
commit-bot: I haz the power
4 years, 9 months ago (2016-03-24 00:04:01 UTC) #36
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4a78c48bcf51dda7cb915ba1866fdefcffa9bc0c
Cr-Commit-Position: refs/heads/master@{#382981}

Powered by Google App Engine
This is Rietveld 408576698