Chromium Code Reviews
DescriptionFix content script injection not working with PlzNavigate because of different navigation timings.
Without PlzNavigat, when a frame is created it will have a provisional load URL at the start. With PlzNavigate, this will only be set once the load is completed. ProgrammaticScriptInjector was caching the frame's URL too early and was getting an empty URL as a result. Fix this by calculating it later when it's needed, since at that point it's guaranteed that the frame would have loaded.
This fixes
ExtensionApiTest.Incognito
ExtensionApiTest.JavaScriptURLPermissions
ExtensionApiTest.JavasScriptEncodedURL
with PlzNavigate.
BUG=504347
Committed: https://crrev.com/69e711577ac88bc21ee1823c3dffaa9ee9b2593e
Cr-Commit-Position: refs/heads/master@{#429174}
Patch Set 1 #
Total comments: 4
Patch Set 2 : review comments #
Total comments: 2
Patch Set 3 : review comments #
Messages
Total messages: 28 (19 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||