DescriptionMake WebUI webview content script work with incognito.
In WebUIUserScriptLoader, if it is incognito mode, we need to get the
OffTheRecordContext and pass it to URLfetchers to load user scripts.
Currently, UserScriptLoader can only refer to regular profiles.
To fix this, we pass in a flag to show whether it is incognito mode
when adding scripts. We are able to choose the correct profile pointer
by using this flag.
BUG=461052
Committed: https://crrev.com/6233f60f246f03cd193bd9ecebbeb314813406d8
Cr-Commit-Position: refs/heads/master@{#327096}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Using RenderProcessHost to get BrowserContext. #Patch Set 3 : Add a test. #
Total comments: 2
Patch Set 4 : Comments #
Messages
Total messages: 22 (7 generated)
|