Aug 18 2011
You can access cross-origin text by hooking into __defineGetter__
and using SourceLocation
object.
<html>
<head>
<script type="text/javascript">
Object.prototype.
`__defineGetter__` ("line", function() {
alert(this.script.sourceSlice().sourceText());
});
</script>
<script src="http://google.com"></script>
</head>
<body></body>
</html>
Chrome Version: [15.0.854.0] + [dev] Operating System: [Win, 7, Service pack 1]
Link: https://bugs.chromium.org/p/chromium/issues/detail?id=93416