diff --git a/dom/bindings/test/TestCodeGen.webidl b/dom/bindings/test/TestCodeGen.webidl index 4c353b72c49a..f338b07d432e 100644 --- a/dom/bindings/test/TestCodeGen.webidl +++ b/dom/bindings/test/TestCodeGen.webidl @@ -12,7 +12,7 @@ typedef CustomEventInit TestDictionaryTypedef; interface TestExternalInterface; // We need a pref name that's in StaticPrefList.h here. -[Pref="abc.def"] +[Pref="dom.webidl.test1"] interface TestRenamedInterface { }; @@ -899,63 +899,63 @@ interface TestInterface { void passVariadicThirdArg(DOMString arg1, long arg2, TestInterface... arg3); // Conditionally exposed methods/attributes - [Pref="abc.def"] + [Pref="dom.webidl.test1"] readonly attribute boolean prefable1; - [Pref="abc.def"] + [Pref="dom.webidl.test1"] readonly attribute boolean prefable2; - [Pref="ghi.jkl"] + [Pref="dom.webidl.test2"] readonly attribute boolean prefable3; - [Pref="ghi.jkl"] + [Pref="dom.webidl.test2"] readonly attribute boolean prefable4; - [Pref="abc.def"] + [Pref="dom.webidl.test1"] readonly attribute boolean prefable5; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable6; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable7; - [Pref="ghi.jkl", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test2", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable8; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable9; - [Pref="abc.def"] + [Pref="dom.webidl.test1"] void prefable10(); - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] void prefable11(); - [Pref="abc.def", Func="TestFuncControlledMember"] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember"] readonly attribute boolean prefable12; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] void prefable13(); - [Pref="abc.def", Func="TestFuncControlledMember"] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember"] readonly attribute boolean prefable14; [Func="TestFuncControlledMember"] readonly attribute boolean prefable15; [Func="TestFuncControlledMember"] readonly attribute boolean prefable16; - [Pref="abc.def", Func="TestFuncControlledMember"] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember"] void prefable17(); [Func="TestFuncControlledMember"] void prefable18(); [Func="TestFuncControlledMember"] void prefable19(); - [Pref="abc.def", Func="TestFuncControlledMember", ChromeOnly] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember", ChromeOnly] void prefable20(); // Conditionally exposed methods/attributes involving [SecureContext] [SecureContext] readonly attribute boolean conditionalOnSecureContext1; - [SecureContext, Pref="abc.def"] + [SecureContext, Pref="dom.webidl.test1"] readonly attribute boolean conditionalOnSecureContext2; - [SecureContext, Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [SecureContext, Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean conditionalOnSecureContext3; - [SecureContext, Pref="abc.def", Func="TestFuncControlledMember"] + [SecureContext, Pref="dom.webidl.test1", Func="TestFuncControlledMember"] readonly attribute boolean conditionalOnSecureContext4; [SecureContext] void conditionalOnSecureContext5(); - [SecureContext, Pref="abc.def"] + [SecureContext, Pref="dom.webidl.test1"] void conditionalOnSecureContext6(); - [SecureContext, Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [SecureContext, Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] void conditionalOnSecureContext7(); - [SecureContext, Pref="abc.def", Func="TestFuncControlledMember"] + [SecureContext, Pref="dom.webidl.test1", Func="TestFuncControlledMember"] void conditionalOnSecureContext8(); // Miscellania @@ -1221,9 +1221,9 @@ dictionary DictWithConditionalMembers { [ChromeOnly, Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] long chromeOnlyFuncControlledMember; // We need a pref name that's in StaticPrefList.h here. - [Pref="abc.def"] + [Pref="dom.webidl.test1"] long prefControlledMember; - [Pref="abc.def", ChromeOnly, Func="TestFuncControlledMember"] + [Pref="dom.webidl.test1", ChromeOnly, Func="TestFuncControlledMember"] long chromeOnlyFuncAndPrefControlledMember; }; diff --git a/dom/bindings/test/TestExampleGen.webidl b/dom/bindings/test/TestExampleGen.webidl index 35b9908acbc6..f3f4fff2ffb3 100644 --- a/dom/bindings/test/TestExampleGen.webidl +++ b/dom/bindings/test/TestExampleGen.webidl @@ -705,39 +705,39 @@ interface TestExampleInterface { void passVariadicThirdArg(DOMString arg1, long arg2, TestInterface... arg3); // Conditionally exposed methods/attributes - [Pref="abc.def"] + [Pref="dom.webidl.test1"] readonly attribute boolean prefable1; - [Pref="abc.def"] + [Pref="dom.webidl.test1"] readonly attribute boolean prefable2; - [Pref="ghi.jkl"] + [Pref="dom.webidl.test2"] readonly attribute boolean prefable3; - [Pref="ghi.jkl"] + [Pref="dom.webidl.test2"] readonly attribute boolean prefable4; - [Pref="abc.def"] + [Pref="dom.webidl.test1"] readonly attribute boolean prefable5; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable6; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable7; - [Pref="ghi.jkl", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test2", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable8; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable9; - [Pref="abc.def"] + [Pref="dom.webidl.test1"] void prefable10(); - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] void prefable11(); - [Pref="abc.def", Func="TestFuncControlledMember"] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember"] readonly attribute boolean prefable12; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] void prefable13(); - [Pref="abc.def", Func="TestFuncControlledMember"] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember"] readonly attribute boolean prefable14; [Func="TestFuncControlledMember"] readonly attribute boolean prefable15; [Func="TestFuncControlledMember"] readonly attribute boolean prefable16; - [Pref="abc.def", Func="TestFuncControlledMember"] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember"] void prefable17(); [Func="TestFuncControlledMember"] void prefable18(); @@ -747,19 +747,19 @@ interface TestExampleInterface { // Conditionally exposed methods/attributes involving [SecureContext] [SecureContext] readonly attribute boolean conditionalOnSecureContext1; - [SecureContext, Pref="abc.def"] + [SecureContext, Pref="dom.webidl.test1"] readonly attribute boolean conditionalOnSecureContext2; - [SecureContext, Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [SecureContext, Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean conditionalOnSecureContext3; - [SecureContext, Pref="abc.def", Func="TestFuncControlledMember"] + [SecureContext, Pref="dom.webidl.test1", Func="TestFuncControlledMember"] readonly attribute boolean conditionalOnSecureContext4; [SecureContext] void conditionalOnSecureContext5(); - [SecureContext, Pref="abc.def"] + [SecureContext, Pref="dom.webidl.test1"] void conditionalOnSecureContext6(); - [SecureContext, Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [SecureContext, Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] void conditionalOnSecureContext7(); - [SecureContext, Pref="abc.def", Func="TestFuncControlledMember"] + [SecureContext, Pref="dom.webidl.test1", Func="TestFuncControlledMember"] void conditionalOnSecureContext8(); // Miscellania diff --git a/dom/bindings/test/TestJSImplGen.webidl b/dom/bindings/test/TestJSImplGen.webidl index fbd9a3c1c4f1..5b5ddd5f544a 100644 --- a/dom/bindings/test/TestJSImplGen.webidl +++ b/dom/bindings/test/TestJSImplGen.webidl @@ -723,63 +723,63 @@ interface TestJSImplInterface { void passVariadicThirdArg(DOMString arg1, long arg2, TestJSImplInterface... arg3); // Conditionally exposed methods/attributes - [Pref="abc.def"] + [Pref="dom.webidl.test1"] readonly attribute boolean prefable1; - [Pref="abc.def"] + [Pref="dom.webidl.test1"] readonly attribute boolean prefable2; - [Pref="ghi.jkl"] + [Pref="dom.webidl.test2"] readonly attribute boolean prefable3; - [Pref="ghi.jkl"] + [Pref="dom.webidl.test2"] readonly attribute boolean prefable4; - [Pref="abc.def"] + [Pref="dom.webidl.test1"] readonly attribute boolean prefable5; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable6; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable7; - [Pref="ghi.jkl", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test2", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable8; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean prefable9; - [Pref="abc.def"] + [Pref="dom.webidl.test1"] void prefable10(); - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] void prefable11(); - [Pref="abc.def", Func="TestFuncControlledMember"] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember"] readonly attribute boolean prefable12; - [Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] void prefable13(); - [Pref="abc.def", Func="TestFuncControlledMember"] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember"] readonly attribute boolean prefable14; [Func="TestFuncControlledMember"] readonly attribute boolean prefable15; [Func="TestFuncControlledMember"] readonly attribute boolean prefable16; - [Pref="abc.def", Func="TestFuncControlledMember"] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember"] void prefable17(); [Func="TestFuncControlledMember"] void prefable18(); [Func="TestFuncControlledMember"] void prefable19(); - [Pref="abc.def", Func="TestFuncControlledMember", ChromeOnly] + [Pref="dom.webidl.test1", Func="TestFuncControlledMember", ChromeOnly] void prefable20(); // Conditionally exposed methods/attributes involving [SecureContext] [SecureContext] readonly attribute boolean conditionalOnSecureContext1; - [SecureContext, Pref="abc.def"] + [SecureContext, Pref="dom.webidl.test1"] readonly attribute boolean conditionalOnSecureContext2; - [SecureContext, Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [SecureContext, Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] readonly attribute boolean conditionalOnSecureContext3; - [SecureContext, Pref="abc.def", Func="TestFuncControlledMember"] + [SecureContext, Pref="dom.webidl.test1", Func="TestFuncControlledMember"] readonly attribute boolean conditionalOnSecureContext4; [SecureContext] void conditionalOnSecureContext5(); - [SecureContext, Pref="abc.def"] + [SecureContext, Pref="dom.webidl.test1"] void conditionalOnSecureContext6(); - [SecureContext, Pref="abc.def", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] + [SecureContext, Pref="dom.webidl.test1", Func="nsGenericHTMLElement::LegacyTouchAPIEnabled"] void conditionalOnSecureContext7(); - [SecureContext, Pref="abc.def", Func="TestFuncControlledMember"] + [SecureContext, Pref="dom.webidl.test1", Func="TestFuncControlledMember"] void conditionalOnSecureContext8(); // Miscellania diff --git a/modules/libpref/init/StaticPrefList.h b/modules/libpref/init/StaticPrefList.h index cc7e94267b5e..6a1b859ff908 100644 --- a/modules/libpref/init/StaticPrefList.h +++ b/modules/libpref/init/StaticPrefList.h @@ -2783,14 +2783,14 @@ VARCACHE_PREF( VARCACHE_PREF( Live, - "abc.def", - abc_def, + "dom.webidl.test1", + dom_webidl_test1, bool, true ) VARCACHE_PREF( Live, - "ghi.jkl", - ghi_jkl, + "dom.webidl.test2", + dom_webidl_test2, bool, true )