為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

ManagedBookmarks [JSON]

more options

Hello,

Firefox 102.6.0esr (x64) Firefox 108.2.0 (x64)

after implementing the bookmarks (JSON) setting by GPO policy, it turns out that an entry for Bookmarks is created in the registry and not ManagedBookmarks, which causes bookmarks not to appear in the bookmarks bar. When I manually rename a registry entry from Bookmarks to ManagedBookmarks, the bookmarks appear properly. Please let me know if I'm doing something wrong or if there really is a problem reported by me.

Yours sincerely Bart

Hello, Firefox 102.6.0esr (x64) Firefox 108.2.0 (x64) after implementing the bookmarks (JSON) setting by GPO policy, it turns out that an entry for Bookmarks is created in the registry and not ManagedBookmarks, which causes bookmarks not to appear in the bookmarks bar. When I manually rename a registry entry from Bookmarks to ManagedBookmarks, the bookmarks appear properly. Please let me know if I'm doing something wrong or if there really is a problem reported by me. Yours sincerely Bart
附加的畫面擷圖

被選擇的解決方法

Sorry, I'm remembering what was done here.

We added the ability to set Bookmarks via JSON specifically so you could delete bookmarks:

https://github.com/mozilla/policy-templates/issues/817

The format for Bookmarks (JSON) is not the same as Managed Bookmarks.

So whether you use Bookmarks or ManagedBookmarks, depends on what you want.

ManagedBookmarks gives you one named item on the toolbar with all of your items underneath it.

The Bookmarks policy (which can be done either via JSON or via the Bookmarks items in policy) adds bookmarks items directly on the toolbar or menu.

從原來的回覆中察看解決方案 👍 1

所有回覆 (5)

more options

I'm really confused by that.

The ADMX template definitely sets the value ManagedBookmarks:

https://github.com/mozilla/policy-templates/blob/master/windows/firefox.admx#L3839

```

   <policy name="ManagedBookmarks" class="Both" displayName="$(string.ManagedBookmarks)" key="Software\Policies\Mozilla\Firefox" explainText="$(string.ManagedBookmarks_Explain)" presentation="$(presentation.JSON)">
     <parentCategory ref="firefox"/>
     <supportedOn ref="SUPPORTED_FF83"/>
     <elements>
       <multiText id="JSON" valueName="ManagedBookmarks"  maxLength="16384"/>
     </elements>
   </policy>

``` What version are you using?

more options

Hello,

Sorry for the late reply. So in the definition file, in its header I have version 4.4

<policyDefinitions revision="4.4" schemaVersion="1.0">

 <policyNamespaces>
   <target prefix="firefox" namespace="Mozilla.Policies.Firefox"/>
   <using prefix="Mozilla" namespace="Mozilla.Policies"/>
 </policyNamespaces>
 <resources minRequiredRevision="4.4"/>
 <supportedOn>
   <definitions>

So far we have been using single bookmarks entries but I changed the value in them from enabled to not configured. Then I enabled the entry for Bookmarks (JSON) and after refreshing Group Policy it creates an entry for Bookmarks in the registry hive. It's really weird.

I checked it on another computer and as expected, exactly the same thing happens.

Attachments: 1. The result of the policy as an entry in the register is attached (another computer) 2. And the beginning of the policy definition admx file used in our environment

Yours sincerely Bart

more options

After analyzing the definition file, it turns out that there are two sections relating to bookmarks in JSON format, and it turns out that we overlap the first one, i.e. the one referring to the entry in the registry called Bookmarks. So the question is whether the second entry (ManagedBookmarks) works only on a specific version of Firefox? On which? Are the versions I specify at the beggining supported?

Second one: <policy name="ManagedBookmarks" class="Both" displayName="$(string.ManagedBookmarks)" key="Software\Policies\Mozilla\Firefox" explainText="$(string.ManagedBookmarks_Explain)" presentation="$(presentation.JSON)">

     <parentCategory ref="firefox"/>
     <supportedOn ref="SUPPORTED_FF83"/>
     <elements>
       <multiText id="JSON" valueName="ManagedBookmarks"  maxLength="16384"/>
     </elements>

</policy>

First one: <policy name="A_Bookmarks" class="Both" displayName="$(string.Bookmarks)" key="Software\Policies\Mozilla\Firefox" explainText="$(string.Bookmarks_Explain)" presentation="$(presentation.JSON)">

     <parentCategory ref="Bookmarks"/>
     <supportedOn ref="SUPPORTED_FF95"/>
     <elements>
       <multiText id="JSON" valueName="Bookmarks"  maxLength="16384"/>
     </elements>
   </policy>

由 bartekbrzozka 於 修改

more options

選擇的解決方法

Sorry, I'm remembering what was done here.

We added the ability to set Bookmarks via JSON specifically so you could delete bookmarks:

https://github.com/mozilla/policy-templates/issues/817

The format for Bookmarks (JSON) is not the same as Managed Bookmarks.

So whether you use Bookmarks or ManagedBookmarks, depends on what you want.

ManagedBookmarks gives you one named item on the toolbar with all of your items underneath it.

The Bookmarks policy (which can be done either via JSON or via the Bookmarks items in policy) adds bookmarks items directly on the toolbar or menu.

more options

Thanks for the answer. Only now did I see my mistake. Everything works as it should.