Bug 1035170 - Rewrite SWF parsing to a scan-first, parse tags on demand approach

No, we polyfilled that. I tried window but that didn't work. I'll make this more robust by checking for `window` first, though.