mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-17 12:47:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
20
dom/workers/test/serviceworkers/fetch/imagecache/index.html
Normal file
20
dom/workers/test/serviceworkers/fetch/imagecache/index.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<script>
|
||||
var width, url;
|
||||
function maybeReport() {
|
||||
if (width !== undefined && url !== undefined) {
|
||||
window.parent.postMessage({status: "result",
|
||||
width: width,
|
||||
url: url}, "*");
|
||||
}
|
||||
}
|
||||
onload = function() {
|
||||
width = document.querySelector("img").width;
|
||||
maybeReport();
|
||||
};
|
||||
navigator.serviceWorker.onmessage = function(event) {
|
||||
url = event.data;
|
||||
maybeReport();
|
||||
};
|
||||
</script>
|
||||
<img src="image-20px.png">
|
||||
Loading…
Add table
Add a link
Reference in a new issue