mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
2f22be013f
ImageLoadingContent will take care of updating element to correct state, we don't need to do this. Especially for HTMLImageElement, because it may not reload the image after BindToTree ( e.g. the selected source isn't changed), clearing broken state may put element into incorrect state. The original code seems from https://bugzilla.mozilla.org/show_bug.cgi?id=491063#c32 for a performance reason, however I test the http://mozilla.pettay.fi/moztests/1x1image.html again on recent codebase, I don't see difference with/without applying this patch. --HG-- extra : rebase_source : 2de29cced4ad0a18a5a6908641305203cc88a5f4
15 lines
253 B
HTML
15 lines
253 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head class="reftest-wait"></head>
|
|
<body>
|
|
<div><img src="" alt="ALT"></div>
|
|
<script>
|
|
var img = document.querySelector('img');
|
|
img.remove();
|
|
|
|
var div = document.querySelector('div');
|
|
div.appendChild(img);
|
|
</script>
|
|
</body>
|
|
</html>
|