为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How backup/restore new RDM's device list?

  • 12 个回答
  • 3 人有此问题
  • 9 次查看
  • 最后回复者为 cor-el

more options

Hi,

In new RDM (Responsive Design Mode), how can I create backup of device list, or restore saved one? I need to create backup of my added devices.

Thanks.

Hi, In new RDM (Responsive Design Mode), how can I create backup of device list, or restore saved one? I need to create backup of my added devices. Thanks.

由Mehdi于修改

所有回复 (12)

more options

I think that this data is stored in the IndexedDB database as permanent data. I'm not sure that you backup this data reliably, but you should find it in the storage folder in the profile folder.

  • storage\permanent\indexeddb+++fx-devtools
more options

cor-el said

I think that this data is stored in the IndexedDB database as permanent data. I'm not sure that you backup this data reliably, but you should find it in the storage folder in the profile folder.
  • storage\permanent\indexeddb+++fx-devtools

Thanks for the answer, but there was not any related data on "storage\permanent\indexeddb+++fx-devtools"

more options

This data is stored as BLOB data in the SQLite data database that you find in the idb folder I have this file:

  • indexeddb+++fx-devtools/idb/478967115deegvatroootlss--cans.sqlite
more options

cor-el said

This data is stored as BLOB data in the SQLite data database that you find in the idb folder I have this file:
  • indexeddb+++fx-devtools/idb/478967115deegvatroootlss--cans.sqlite

Thanks for the answer, I check all 7 tables data, but there was nothing useful and no different with "storage\permanent\indexeddb+++fx-devtools", can you please provide more details?

more options

I'm not sure about a "new" responsive design mode. Previously certain data was stored in preferences (prefs.js). Could you look at about:config and see whether it has your customized data, or only default/obsolete data?

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste responsiveUI and pause while the list is filtered

  • devtools.responsiveUI.presets => does this list include items you've added?
  • devtools.responsiveUI.customHeight, devtools.responsiveUI.customWidth => may be unsaved settings
more options

After looking at MDN, it seems I don't have the new RDM because I have legacy extensions blocking multiprocess. Whoops.

more options

As I wrote above: This data is stored as BLOB data in object_data and SQLite Manager shows it as BLOB (size). You would have to save this data to a file to inspect it (it is 16 bit binary data).

more options

cor-el said

As I wrote above: This data is stored as BLOB data in object_data and SQLite Manager shows it as BLOB (size). You would have to save this data to a file to inspect it (it is 16 bit binary data).

That data is not exist for me!

more options

jscher2000 said

I'm not sure about a "new" responsive design mode. Previously certain data was stored in preferences (prefs.js). Could you look at about:config and see whether it has your customized data, or only default/obsolete data? (1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful. (2) In the search box above the list, type or paste responsiveUI and pause while the list is filtered
  • devtools.responsiveUI.presets => does this list include items you've added?
  • devtools.responsiveUI.customHeight, devtools.responsiveUI.customWidth => may be unsaved settings

Yes, in prev. RDM we could have own JSON as presets, I actually have a github repo for that. but in new one I could not find any related data about backup/restore presets.

由Mehdi于修改

more options

This data is stored as a [key,data] value pairs in the object_data table. You can see the key value as plain text in the screenshot and the data value as BLOB in the data column. Someone would have to create a WebExtension to access this data and convert it to readable format.

An example with BLOB shown as HEX data (export as SQL): ("1","X'306566777570706D742F6566776A6466742F6D7064626D'",null,null,"X'B0010000050178F1FF9E0000800400FFFF7B22637573746F6D223A5B7B226E616D65223A224305127820446576696365222C227769647468223A3830302C22686569676874223A36010DF03E706978656C526174696F223A312C22757365724167656E74223A224D6F7A696C6C612F352E3020284D6F62696C653B2072763A33302E3029204765636B6F2F010C202046697265666F782F010D48222C22746F756368223A747275657D5D7D0000'");

more options

cor-el said

This data is stored as a [key,data] value pairs in the object_data table. You can see the key value as plain text in the screenshot and the data value as BLOB in the data column. Someone would have to create a WebExtension to access this data and convert it to readable format. An example with BLOB shown as HEX data (export as SQL): ("1","X'306566777570706D742F6566776A6466742F6D7064626D'",null,null,"X'B0010000050178F1FF9E0000800400FFFF7B22637573746F6D223A5B7B226E616D65223A224305127820446576696365222C227769647468223A3830302C22686569676874223A36010DF03E706978656C526174696F223A312C22757365724167656E74223A224D6F7A696C6C612F352E3020284D6F62696C653B2072763A33302E3029204765636B6F2F010C202046697265666F782F010D48222C22746F756368223A747275657D5D7D0000'");

In my case the value column is empty, btw how you found out RDM store the data here? is there any document about that?

more options

I usually check the Bugzilla website and read comments in the source code at the DXR website if I'm curious how it works. In this case it is a bit cryptic how this works since key names and data values aren't readable (i.e. it is not all plain text, but also complex binary data).

  • 306566777570706D742F6566776A6466742F6D7064626D ->
    0efwuppmt/efwjdft/mpdbm
  • 7B22637573746F6D223A5B7B226E616D65223A224305127820446576696365222C227769647468223A3830302C22686569676874223A36010DF03E706978656C526174696F223A312C22757365724167656E74223A224D6F7A696C6C612F352E3020284D6F62696C653B2072763A33302E3029204765636B6F2F010C202046697265666F782F010D48222C22746F756368223A747275657D5D7D ->
    {"custom":[{"name":"C??x Device","width":800,"height":6?

ð>pixelRatio":1,"userAgent":"Mozilla/5.0 (Mobile; rv:30.0) Gecko/?? Firefox/? H","touch":true}]}


We could use an edit/backup/restore feature for the device settings. You currently can't make changes and as soon as you would resize the window then all other settings are reset.