diff --git a/layout/reftests/xul-document-load/reference-green-window.xul b/layout/reftests/xul-document-load/reference-green-window.xul
index f1afac6af5c..4c6ca1987d9 100644
--- a/layout/reftests/xul-document-load/reference-green-window.xul
+++ b/layout/reftests/xul-document-load/reference-green-window.xul
@@ -1,3 +1,7 @@
+
\ No newline at end of file
+ style="background-color: green"/>
diff --git a/layout/reftests/xul-document-load/subdir/test011-overlay.xul b/layout/reftests/xul-document-load/subdir/test011-overlay.xul
index d1755e3f859..561ec86a94d 100644
--- a/layout/reftests/xul-document-load/subdir/test011-overlay.xul
+++ b/layout/reftests/xul-document-load/subdir/test011-overlay.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/subdir/test011.css b/layout/reftests/xul-document-load/subdir/test011.css
index 3c0f69929f1..9cf783629d6 100644
--- a/layout/reftests/xul-document-load/subdir/test011.css
+++ b/layout/reftests/xul-document-load/subdir/test011.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: green !important;
}
diff --git a/layout/reftests/xul-document-load/subdir/test014-overlay-2.xul b/layout/reftests/xul-document-load/subdir/test014-overlay-2.xul
index 63a744ea1c2..249e7378667 100644
--- a/layout/reftests/xul-document-load/subdir/test014-overlay-2.xul
+++ b/layout/reftests/xul-document-load/subdir/test014-overlay-2.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/subdir/test014-overlay.xul b/layout/reftests/xul-document-load/subdir/test014-overlay.xul
index 058222b4b50..e25aebcd8b0 100644
--- a/layout/reftests/xul-document-load/subdir/test014-overlay.xul
+++ b/layout/reftests/xul-document-load/subdir/test014-overlay.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/subdir/test015-overlay.xul b/layout/reftests/xul-document-load/subdir/test015-overlay.xul
index b1229d72a71..82bf439636e 100644
--- a/layout/reftests/xul-document-load/subdir/test015-overlay.xul
+++ b/layout/reftests/xul-document-load/subdir/test015-overlay.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/subdir/test015.js b/layout/reftests/xul-document-load/subdir/test015.js
index 6a5975288bb..7184beaa526 100644
--- a/layout/reftests/xul-document-load/subdir/test015.js
+++ b/layout/reftests/xul-document-load/subdir/test015.js
@@ -1,5 +1,8 @@
-function onLoad() {
- document.documentElement.style.backgroundColor = "green";
-}
-
-addEventListener("load", onLoad, false);
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
+function onLoad() {
+ document.documentElement.style.backgroundColor = "green";
+}
+
+addEventListener("load", onLoad, false);
diff --git a/layout/reftests/xul-document-load/test001-overlay.xul b/layout/reftests/xul-document-load/test001-overlay.xul
index 14417da8fd7..d2dfa0eb5ba 100644
--- a/layout/reftests/xul-document-load/test001-overlay.xul
+++ b/layout/reftests/xul-document-load/test001-overlay.xul
@@ -1,4 +1,7 @@
+
-
diff --git a/layout/reftests/xul-document-load/test001.css b/layout/reftests/xul-document-load/test001.css
index 3c0f69929f1..9cf783629d6 100644
--- a/layout/reftests/xul-document-load/test001.css
+++ b/layout/reftests/xul-document-load/test001.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: green !important;
}
diff --git a/layout/reftests/xul-document-load/test001.xul b/layout/reftests/xul-document-load/test001.xul
index 6d960d68228..3f7b1f2b579 100644
--- a/layout/reftests/xul-document-load/test001.xul
+++ b/layout/reftests/xul-document-load/test001.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/test002-overlay-1.xul b/layout/reftests/xul-document-load/test002-overlay-1.xul
index 21fc0735cb8..95bef532df2 100644
--- a/layout/reftests/xul-document-load/test002-overlay-1.xul
+++ b/layout/reftests/xul-document-load/test002-overlay-1.xul
@@ -1,4 +1,7 @@
+
-
diff --git a/layout/reftests/xul-document-load/test002-overlay-2.xul b/layout/reftests/xul-document-load/test002-overlay-2.xul
index 7ac3e5238c5..831fc26e655 100644
--- a/layout/reftests/xul-document-load/test002-overlay-2.xul
+++ b/layout/reftests/xul-document-load/test002-overlay-2.xul
@@ -1,4 +1,7 @@
+
-
diff --git a/layout/reftests/xul-document-load/test002.css b/layout/reftests/xul-document-load/test002.css
index 3c0f69929f1..9cf783629d6 100644
--- a/layout/reftests/xul-document-load/test002.css
+++ b/layout/reftests/xul-document-load/test002.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: green !important;
}
diff --git a/layout/reftests/xul-document-load/test002.xul b/layout/reftests/xul-document-load/test002.xul
index aab3f6fbd01..3258e148826 100644
--- a/layout/reftests/xul-document-load/test002.xul
+++ b/layout/reftests/xul-document-load/test002.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/test003.css b/layout/reftests/xul-document-load/test003.css
index 87567fbb13d..3b18aff8b41 100644
--- a/layout/reftests/xul-document-load/test003.css
+++ b/layout/reftests/xul-document-load/test003.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: red !important;
}
diff --git a/layout/reftests/xul-document-load/test003.xul b/layout/reftests/xul-document-load/test003.xul
index e8a3e4703ac..fea3a05654f 100644
--- a/layout/reftests/xul-document-load/test003.xul
+++ b/layout/reftests/xul-document-load/test003.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/test004.css b/layout/reftests/xul-document-load/test004.css
index 87567fbb13d..3b18aff8b41 100644
--- a/layout/reftests/xul-document-load/test004.css
+++ b/layout/reftests/xul-document-load/test004.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: red !important;
}
diff --git a/layout/reftests/xul-document-load/test004.xul b/layout/reftests/xul-document-load/test004.xul
index 4bbd5906f2f..ccb030ba1f9 100644
--- a/layout/reftests/xul-document-load/test004.xul
+++ b/layout/reftests/xul-document-load/test004.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/test005.css b/layout/reftests/xul-document-load/test005.css
index 87567fbb13d..3b18aff8b41 100644
--- a/layout/reftests/xul-document-load/test005.css
+++ b/layout/reftests/xul-document-load/test005.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: red !important;
}
diff --git a/layout/reftests/xul-document-load/test005.js b/layout/reftests/xul-document-load/test005.js
index 7ca0cb806f2..21ae23e64bd 100644
--- a/layout/reftests/xul-document-load/test005.js
+++ b/layout/reftests/xul-document-load/test005.js
@@ -1 +1,4 @@
-document.removeChild(document.firstChild);
\ No newline at end of file
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
+document.removeChild(document.firstChild);
diff --git a/layout/reftests/xul-document-load/test005.xul b/layout/reftests/xul-document-load/test005.xul
index 777d7644318..76adc60867e 100644
--- a/layout/reftests/xul-document-load/test005.xul
+++ b/layout/reftests/xul-document-load/test005.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/test006-007.js b/layout/reftests/xul-document-load/test006-007.js
index 73d2fde9f0b..96fd74fe4c7 100644
--- a/layout/reftests/xul-document-load/test006-007.js
+++ b/layout/reftests/xul-document-load/test006-007.js
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
function checkDOM(target, data) {
// assuming whitespace and the XML declaration are not in the DOM.
var piNode = document.firstChild;
diff --git a/layout/reftests/xul-document-load/test006.css b/layout/reftests/xul-document-load/test006.css
index 3c0f69929f1..9cf783629d6 100644
--- a/layout/reftests/xul-document-load/test006.css
+++ b/layout/reftests/xul-document-load/test006.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: green !important;
}
diff --git a/layout/reftests/xul-document-load/test006.xul b/layout/reftests/xul-document-load/test006.xul
index c205089cc28..82137d20d3c 100644
--- a/layout/reftests/xul-document-load/test006.xul
+++ b/layout/reftests/xul-document-load/test006.xul
@@ -1,4 +1,8 @@
+
+
diff --git a/layout/reftests/xul-document-load/test007.xul b/layout/reftests/xul-document-load/test007.xul
index 605b9b1ba4b..8c64bc400c6 100644
--- a/layout/reftests/xul-document-load/test007.xul
+++ b/layout/reftests/xul-document-load/test007.xul
@@ -1,4 +1,8 @@
+
+
-
\ No newline at end of file
+
diff --git a/layout/reftests/xul-document-load/test009.xul b/layout/reftests/xul-document-load/test009.xul
index 96e6d3fb6e3..1b8167d0e27 100644
--- a/layout/reftests/xul-document-load/test009.xul
+++ b/layout/reftests/xul-document-load/test009.xul
@@ -1,5 +1,9 @@
+
-
\ No newline at end of file
+
diff --git a/layout/reftests/xul-document-load/test010-overlay.xul b/layout/reftests/xul-document-load/test010-overlay.xul
index 90444e56a1e..8078f4e734d 100644
--- a/layout/reftests/xul-document-load/test010-overlay.xul
+++ b/layout/reftests/xul-document-load/test010-overlay.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/test010.css b/layout/reftests/xul-document-load/test010.css
index 87567fbb13d..3b18aff8b41 100644
--- a/layout/reftests/xul-document-load/test010.css
+++ b/layout/reftests/xul-document-load/test010.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: red !important;
}
diff --git a/layout/reftests/xul-document-load/test010.xul b/layout/reftests/xul-document-load/test010.xul
index a57c7ae56c8..a092475d5c7 100644
--- a/layout/reftests/xul-document-load/test010.xul
+++ b/layout/reftests/xul-document-load/test010.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/test011.xul b/layout/reftests/xul-document-load/test011.xul
index 5acd4311c24..b623fcc8513 100644
--- a/layout/reftests/xul-document-load/test011.xul
+++ b/layout/reftests/xul-document-load/test011.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/test012-1.css b/layout/reftests/xul-document-load/test012-1.css
index 6d6cd78e294..ed5e68c189b 100644
--- a/layout/reftests/xul-document-load/test012-1.css
+++ b/layout/reftests/xul-document-load/test012-1.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: red;
}
diff --git a/layout/reftests/xul-document-load/test012-2.css b/layout/reftests/xul-document-load/test012-2.css
index 0898b84be10..ff59288db0d 100644
--- a/layout/reftests/xul-document-load/test012-2.css
+++ b/layout/reftests/xul-document-load/test012-2.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: green;
}
diff --git a/layout/reftests/xul-document-load/test012.xul b/layout/reftests/xul-document-load/test012.xul
index b566dfe3d43..7f9c6479169 100644
--- a/layout/reftests/xul-document-load/test012.xul
+++ b/layout/reftests/xul-document-load/test012.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/test013-1-import.css b/layout/reftests/xul-document-load/test013-1-import.css
index 3742c4f21cc..b7eafb32da3 100644
--- a/layout/reftests/xul-document-load/test013-1-import.css
+++ b/layout/reftests/xul-document-load/test013-1-import.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: yellow;
}
diff --git a/layout/reftests/xul-document-load/test013-1.css b/layout/reftests/xul-document-load/test013-1.css
index 1be434e53eb..dae0aa589e8 100644
--- a/layout/reftests/xul-document-load/test013-1.css
+++ b/layout/reftests/xul-document-load/test013-1.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
@import url(test013-1-import.css);
window {
background-color: red;
diff --git a/layout/reftests/xul-document-load/test013-2.css b/layout/reftests/xul-document-load/test013-2.css
index 0898b84be10..ff59288db0d 100644
--- a/layout/reftests/xul-document-load/test013-2.css
+++ b/layout/reftests/xul-document-load/test013-2.css
@@ -1,3 +1,6 @@
+/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/ */
+
window {
background-color: green;
}
diff --git a/layout/reftests/xul-document-load/test013.xul b/layout/reftests/xul-document-load/test013.xul
index 61c021591be..d04a54fd32d 100644
--- a/layout/reftests/xul-document-load/test013.xul
+++ b/layout/reftests/xul-document-load/test013.xul
@@ -1,4 +1,8 @@
+
diff --git a/layout/reftests/xul-document-load/test014.xul b/layout/reftests/xul-document-load/test014.xul
index c09d4feb60c..f10fca0c83c 100644
--- a/layout/reftests/xul-document-load/test014.xul
+++ b/layout/reftests/xul-document-load/test014.xul
@@ -1,4 +1,8 @@
+
+
+