DescriptionMost URLs don't have a matching WebRTC filter, and that's the only reason we inject the API wrappers at all. We can remove the wrapper code from the default content script and inject it only if there's a filter match.
webNavigation.onCommitted is dispatched at about the same time the default content script is loaded. There may be a delay, but it's probably not enough for other scripts in the document to finished downloading and start running. In any case, it's trivial to circumvent the wrappers with just inline JavaScript in the HTML source.
This change should give us the same effect as including the wrapper code in the default content script.
Patch Set 1 #Patch Set 2 : Wrap tabs.executeScript #
MessagesTotal messages: 5
|