Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDon't prefetch images when they exist within <noscript> tags #84
Comments
|
Specifically, we need to watch out for cases like https://bugzilla.mozilla.org/show_bug.cgi?id=642908 |
|
This should be pretty easy to accomplish using the |
|
At the point when the prefetch runs you don't have a Node, right? You just have the parser's tokenization state. |
|
No, right now prefetching is controlled by HTMLImageElement::AfterSetAttr. |
|
That's not prefetching, then. That's just loading the image.... |
|
I wanted to give a try to this one, but it seems that it is already not an issue anymore. The pull request is here #3934 I have added a test cases to (note: I've also manually tested that no |
Fix alpha blending for `opacity`.
The hubbub-based parser will eagerly tell the ImageCacheTask to prefetch images for any tags of the form <img src="...">. That shouldn't happen if the element is a descendant of a <noscript> tag, since Servo does not have a noscript option.