Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Can manifest.json be checked/debugged in dev tools?

  • 6 trả lời
  • 1 gặp vấn đề này
  • 3 lượt xem
  • Trả lời mới nhất được viết bởi hellosct1

more options

Chrome dev tools have a tab labeled "Application" here you can view the manifest.json of a PWA and determine if it is installable or if there is a problem with it.

Can this feature be added to the dev tools in Firefox? Especially with so much of the web already being developed for PWA's rather than native apps, it would be a big help in debugging this file without using Chrome.

Chrome dev tools have a tab labeled "Application" here you can view the manifest.json of a PWA and determine if it is installable or if there is a problem with it. Can this feature be added to the dev tools in Firefox? Especially with so much of the web already being developed for PWA's rather than native apps, it would be a big help in debugging this file without using Chrome.

Tất cả các câu trả lời (6)

more options
more options

about:debugging has the ability to debug Add-ons, Tabs and Workers (service workers) and in Firefox Dev we can do temporary extensions, extensions, service workers, shared workers and other workers... Nowhere could I find anything related to manifest.json in these browsers.

more options

I don't think Firefox supports PWA's yet on desktop OSes. Or was that added recently?

The Dev Tools team has its own forum over here if you have questions or want to suggest new features specifically for dev tools:

https://discourse.mozilla.org/c/devtools

more options
more options

jscher2000,

It isn't about desktop PWA's. Simply about being able to inspect the manifest.json within the developer tools while developing a PWA. Results simply parse the file and display icons, etc. and informs if it meets standards to be installed on a mobile device as a PWA. Just a handy convenience....

I knew we could inspect extension manifest files using about:debugging.

Example of the benefit was the manifest was considered invalid in both Chrome and Safari because of comments in a json file, while Android would accept it and install just fine...

Thanks for your answer and I will add it to the dev tools as a feature request...

more options

Hi,

the equivalent of "Application" for Chrome in the manifest.json file

is for Firefox

browser_specific_settings

for Firefox

I'm thinking of an idea that is to create your own devtools panel in the form of a web extension

I share with you an example I created

example Devtools panels

and the documentation MDN WebExtensions

best regard

Được chỉnh sửa bởi hellosct1 vào