mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
0bb598eed9
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.
11 lines
271 B
HTML
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>
|
|
|