DescriptionCall InitOriginPermissions when extension is added to the renderer process.
This is to fix permission breakage on extension background pages after
blink patch r173044. Before this patch, permission settings were loaded
on V8 context initialize. However, the blink patch deferred the V8
context initialize until its first use.
This patch adds a call to |Dispatcher::InitOriginPermissions| on
|Dispatcher::OnActivateExtension| which is called when render process
for the extension is created.
TEST=Manually confirmed that Files.app image viewer can load images
on its first load.
BUG=380346, 380502
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276585
Patch Set 1 #
Total comments: 1
Patch Set 2 : remove context_type from param #Patch Set 3 : avoid duplicated init #
Total comments: 4
Patch Set 4 : address comments #Messages
Total messages: 12 (0 generated)
|