зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1363612 - Part 3: fix for moz-binding: url. r=smaug
Also seperate this to make sure I modified the test correctly.
This commit is contained in:
Родитель
ebfed92e7e
Коммит
87ffcf52fe
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0"?>
|
||||
<bindings xmlns="http://www.mozilla.org/xbl"><binding id="test"><content>ghi<children/>jkl</content></binding></bindings>
|
|
@ -69,6 +69,7 @@ support-files =
|
|||
file_bug326337.xml
|
||||
file_bug326337_inner.html
|
||||
file_bug326337_outer.html
|
||||
file_bug372086.xml
|
||||
file_bug416317.xhtml
|
||||
file_bug426646-1.html
|
||||
file_bug426646-2.html
|
||||
|
|
|
@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=372086
|
|||
</binding>
|
||||
</bindings>
|
||||
-->
|
||||
<div id="d" style="-moz-binding: url(data:application/xml,%3Cbindings%20xmlns%3D%22http%3A%2F%2Fwww.mozilla.org%2Fxbl%22%3E%3Cbinding%20id%3D%22test%22%3E%3Ccontent%3Eghi%3Cchildren%2F%3Ejkl%3C%2Fcontent%3E%3C%2Fbinding%3E%3C%2Fbindings%3E)">abc</div>def
|
||||
<div id="d" style="-moz-binding: url(file_bug372086.xml)">abc</div>def
|
||||
</p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<bindings id="xbltestBindings" xmlns="http://www.mozilla.org/xbl">
|
||||
<binding id="xbltest">
|
||||
<content>PASS</content>
|
||||
<implementation>
|
||||
<constructor>
|
||||
var win = XPCNativeWrapper.unwrap(window);
|
||||
win.document.bindingConstructorRan = true;
|
||||
win.ok(true, "binding URI with no fragment applied");
|
||||
win.SimpleTest.finish();
|
||||
</constructor>
|
||||
</implementation>
|
||||
</binding>
|
||||
</bindings>
|
|
@ -2,6 +2,7 @@
|
|||
support-files =
|
||||
bug310107-resource.xhtml
|
||||
file_bug310107.html
|
||||
file_bug366770.xml
|
||||
file_bug372769.xhtml
|
||||
file_bug379959_cross.html
|
||||
file_bug379959_data.html
|
||||
|
|
|
@ -12,24 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=366770
|
|||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=366770">Mozilla Bug 366770</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none"></div>
|
||||
|
||||
<!-- data: URI below corresponds to:
|
||||
<?xml version="1.0"?>
|
||||
<bindings id="xbltestBindings" xmlns="http://www.mozilla.org/xbl">
|
||||
<binding id="xbltest">
|
||||
<content>PASS</content>
|
||||
<implementation>
|
||||
<constructor>
|
||||
var win = XPCNativeWrapper.unwrap(window);
|
||||
win.document.bindingConstructorRan = true;
|
||||
win.ok(true, "binding URI with no fragment applied");
|
||||
win.SimpleTest.finish();
|
||||
</constructor>
|
||||
</implementation>
|
||||
</binding>
|
||||
</bindings>
|
||||
-->
|
||||
<span id="span" style="-moz-binding: url(data:text/xml;base64,ICA8YmluZGluZ3MgaWQ9InhibHRlc3RCaW5kaW5ncyIgeG1sbnM9Imh0dHA6Ly93d3cubW96aWxsYS5vcmcveGJsIj4KICAgIDxiaW5kaW5nIGlkPSJ4Ymx0ZXN0Ij4KICAgICAgPGNvbnRlbnQ+UEFTUzwvY29udGVudD4KICAgICAgPGltcGxlbWVudGF0aW9uPgogICAgICAgIDxjb25zdHJ1Y3Rvcj4KICAgICAgICAgIHZhciB3aW4gPSBYUENOYXRpdmVXcmFwcGVyLnVud3JhcCh3aW5kb3cpOwogICAgICAgICAgd2luLmRvY3VtZW50LmJpbmRpbmdDb25zdHJ1Y3RvclJhbiA9IHRydWU7CiAgICAgICAgICB3aW4ub2sodHJ1ZSwgImJpbmRpbmcgVVJJIHdpdGggbm8gZnJhZ21lbnQgYXBwbGllZCIpOwogICAgICAgICAgd2luLlNpbXBsZVRlc3QuZmluaXNoKCk7CiAgICAgICAgPC9jb25zdHJ1Y3Rvcj4KICAgICAgPC9pbXBsZW1lbnRhdGlvbj4KICAgIDwvYmluZGluZz4KICA8L2JpbmRpbmdzPg==);"></span>
|
||||
<span id="span" style="-moz-binding: url(file_bug366770.xml);"></span>
|
||||
|
||||
<pre id="test">
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
|
Загрузка…
Ссылка в новой задаче