DescriptionAccept 'null' as document.contentScript.
When running as a content script in a Chrome extension `document.contentScript` is set to `null`. We should take that value instead of trying to compute another one based on script tags (the work-around we have for IE). Since content-scripts are not part of the page, it might be that there aren't even any other scripts and the work-around mechanism simply fails (thus not starting the main function).
R=karlklose@google.com
Committed: https://github.com/dart-lang/sdk/commit/5cf1f598430b8df180caab747c20ddb8f4b8d559
Patch Set 1 #
Messages
Total messages: 4 (1 generated)
|