gecko-dev/dom/base/test/file_blocking_image.html
Yoshi Huang 0bb598eed9 Bug 1267075 - Part 5: test for blocking image. r=bz
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.
2017-06-16 10:12:10 +08:00

11 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>