mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
12 lines
275 B
Python
12 lines
275 B
Python
class RefererTest(BaseTester):
|
|
def verify_request(self, req):
|
|
BaseTester.verify_request(self, req)
|
|
if req.fname == 'iframe':
|
|
if not req.headers.getheader('referer'):
|
|
self.res = 0
|
|
self.reason = "No referer header"
|
|
return 0
|
|
return 1
|
|
|
|
tester = RefererTest
|