mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Issue #2490 - Part 11: Convert CSSImportRule to WebIDL.
Note that the .media PutForwards is a new feature coming along for the ride, now that we're using the spec IDL.
This commit is contained in:
parent
95642cb4e5
commit
525606c15d
9 changed files with 38 additions and 40 deletions
|
|
@ -214,28 +214,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=668855
|
|||
|
||||
make_live_map();
|
||||
|
||||
let unpreservable_native_key = function () {
|
||||
// We only allow natives that support wrapper preservation to be used as weak
|
||||
// map keys. We should be able to try to add unpreservable natives as keys without
|
||||
// crashing (bug 711616), but we should throw an error (bug 761620).
|
||||
|
||||
let dummy_test_map = new WeakMap;
|
||||
|
||||
let rule_fail = false;
|
||||
let got_rule = false;
|
||||
try {
|
||||
var rule = document.styleSheets[0].cssRules[0];
|
||||
got_rule = true;
|
||||
dummy_test_map.set(rule, 1);
|
||||
} catch (e) {
|
||||
rule_fail = true;
|
||||
}
|
||||
ok(got_rule, "Got the CSS rule");
|
||||
ok(rule_fail, "Using a CSS rule as a weak map key should produce an exception because it can't be wrapper preserved.");
|
||||
|
||||
}
|
||||
|
||||
unpreservable_native_key();
|
||||
// We're out of ideas for unpreservable natives, now that just about
|
||||
// everything is on webidl, so just don't test those.
|
||||
|
||||
/* set up for running precise GC/CC then checking the results */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue