3 ms·
Tried in Firefox 6... spoof works. Tried in Firefox 3.6... could see full source, script and all.
by 51Cards 15y ago
Tried in Firefox 6... spoof works. Tried in Firefox 3.6... could see full source, script and all.
- dspillett 15y agoIIRC earlier versions of FF re-request the page when you do a view source, rather than displaying a rendering of the current (potentially changed) document state. You could still spoof the source view in this case by somehow recognising the second request (though how you'd distinguish "view source" from "f5" I don't know) and sending different content back.