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

Issue 1056133005: Make WebUI webview content script work with incognito. (Closed)

Created:
5 years, 8 months ago by xiyuan
Modified:
5 years, 8 months ago
Reviewers:
Xi Han
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@webview-content-script-api-from-xi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make WebUI webview content script work with incognito. **** FYI only, not intended for checkin **** - Add GetDeclarativeUserScriptMasterByID that takes a BrowserContext to built DeclarativeUserScriptMaster; This is needed because DeclarativeUserScriptManager is part of ExtensionSystem::Shared and only references the regular profile; - Allow content script to run in incognito if the addContentScript is called within an incognito profile; BUG=461052

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -8 lines) Patch
M extensions/browser/api/guest_view/web_view/web_view_internal_api.cc View 4 chunks +9 lines, -3 lines 0 comments Download
M extensions/browser/declarative_user_script_manager.h View 2 chunks +4 lines, -1 line 0 comments Download
M extensions/browser/declarative_user_script_manager.cc View 1 chunk +9 lines, -3 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_content_script_manager.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (1 generated)
xiyuan
This is on top of your https://codereview.chromium.org/1056533002/ to make the api work when called from ...
5 years, 8 months ago (2015-04-03 21:40:00 UTC) #2
Xi Han
Thank you for creating this patch to fix the incognito issue. I think we may ...
5 years, 8 months ago (2015-04-03 23:06:05 UTC) #3
xiyuan
On 2015/04/03 23:06:05, Xi Han wrote: > Thank you for creating this patch to fix ...
5 years, 8 months ago (2015-04-03 23:13:03 UTC) #4
Xi Han
On 2015/04/03 23:13:03, xiyuan wrote: > On 2015/04/03 23:06:05, Xi Han wrote: > > Thank ...
5 years, 8 months ago (2015-04-06 03:08:31 UTC) #5
xiyuan
On 2015/04/06 03:08:31, Xi Han wrote: > 1) It is a good idea just move ...
5 years, 8 months ago (2015-04-06 18:05:44 UTC) #6
chromium-reviews
I will add these code in my review tomorrow and let a extension's owner to ...
5 years, 8 months ago (2015-04-06 18:20:19 UTC) #7
Xi Han
5 years, 8 months ago (2015-04-07 18:19:05 UTC) #8
I split the fix of the 2 problems that you found in two patches:
1) DeclarativeUserScriptManager in https://codereview.chromium.org/1066993002/.

2) The issue of avoiding injecting extensions' scripts to webview in my previous
patch https://codereview.chromium.org/959413003.

The new created issue 1066993002 is an independent patch. I will rebase issue
959413003 to make you can apply them together.

Powered by Google App Engine
This is Rietveld 408576698