hsts: reload only the main frame
authorSébastien Marie <semarie@users.noreply.github.com>
Fri, 13 Feb 2015 13:02:27 +0000 (14:02 +0100)
committerSébastien Marie <semarie@users.noreply.github.com>
Fri, 13 Feb 2015 13:06:50 +0000 (14:06 +0100)
commit131192c35cf92818d6fa1c0170577d94ef1e6de1
treec6bb69a9b94a9749dbd33ce57b17ae51be633d63
parentded8277fa1698567c368d7683b93bb2aa31f6b87
hsts: reload only the main frame

HSTS in done using requeueing. But due to a bug in webkit, a reload of
the frame could be required in order to display the redirected URI (and
not the original one).

The patch force this reload only for the mainframe (where the correct
URI is need), and not for the subframe (where the HSTS stuff is done by
requeueing).

Original idea from @fanglingsu
src/main.c