forked from mirrors/gecko-dev
A mochitest browser test for image blocking. We query the blocking status by reading imageBlockingStatus. See nsImageLoadingContent.cpp for the logic of blocking image. In this test we verified the following behavior: 1. image is loaded. 2. image is blocked. 3. mCurrentRequest doesn't have size yet, so it should be replaced. 4. mCurrentRequest already got size, the following request should be a pendingRequest.
10 lines
271 B
HTML
10 lines
271 B
HTML
<!DOCTYPE HTML>
|
|
<html xml:lang="en-US" lang="en-US">
|
|
<head>
|
|
<meta charset="utf8" http-equiv="Content-Security-Policy" content="default-src 'self'; img-src https://*; child-src 'none';">
|
|
<title>Image Blocking test </title>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|
|
|