Firefox OS Simülasyonu

Bu çeviri eksik. Bu makaleyi İngilizceden tercüme etmemize yardım edin

Firefox işletim sistemi için eklenti yazımı iki ana bölümden oluşmaktadır:

  • Simülatör : Firefox OS masaüstü istemcisi içerir, which is a version of the higher layers of Firefox OS that runs on your desktop.  Simülatör ayrıca Firefox OS'da standart olmayan ek özellikler de içerir.
  • Yönetim Paneli : a tool hosted by the Firefox browser that enables you to start and stop the Simulator and to install, uninstall, and debug apps running in it. The Dashboard also helps you push apps to a real device, and checks app manifests for common problems.

Now these two pieces have been split: the functions of the Dashboard are implemented by the Firefox OS App Manager, which is built into Firefox. The Simulator add-on now only includes the Simulator part.

The Firefox OS Simulator add-on is a tool that enables you to test and debug your Firefox OS app on the desktop. The code-test-debug cycle is much faster with the simulator than with a real device, and of course, you don't need a real device in order to use it. The Simulator add-on is a build of the Firefox OS desktop client, which is a version of the higher layers of Firefox OS that runs on your desktop.

You start and stop the Simulator, and attach the developer tools to it, using the App Manager, which is built into Firefox.


Simülatörü yüklemek için WebIDE's Manage Simulators panel (Firefox 33 ve üstü versiyonlarda kullanılabilir) kullanmalısınız. Çoklu versiyonu kullanılabilir ve maksimum esneklik için tümünü kurmanızı tavsiye ediyoruz.

To start the Simulator, you choose it from WebIDE's runtime list. For more details, see the instructions in the WebIDE documentation. Once the Simulator's running, you can push apps to it and debug them using the WebIDE, just as you can with a real device.

If you are using the App Manager (an older tool available prior to the WebIDE), you can install a simulator via the following button:

Simülatörü Yükle

The Simulator UI

The Simulator appears as a separate window, sized so the simulated screen area is 320x480 pixels. To simulate touch events you can click the mouse button and drag while holding the button down. So by clicking and dragging right-to-left from the Home Screen, you'll see the built-in apps, as well as any apps you have added:

The Simulator has two buttons in a toolbar at the bottom:

  • the button on the left takes you to the Home screen, or switches the Simulator off if you hold it down
  • the button on the right switches the Simulator between portrait and landscape orientation. This will generate the orientationchange event.

SD card emulation

In the Simulator the device SD card is mapped to the "fake-sdcard" directory in the Simulator's profile, which is itself located inside the "extensions" directory under the Firefox profile in which the Simulator is installed. For example:


Files read or written using the getDeviceStorage API will appear here.

Before version 2.2 of the Simulator, you had to create the "fake-sdcard" directory manually for this to work. From 2.2 onwards, the "fake-sdcard" directory is created for you automatically.

Also from version 2.2 onwards, if you're running the Simulator from the command line you can define a different directory by passing the --storage-path option.

Limitations of the Simulator

Note that the Firefox OS Simulator isn't a perfect simulation.

Hardware limitations

Apart from screen size, the Simulator does not simulate the hardware limitations of a Firefox OS device such as available memory or CPU speed.

Audio/video codecs

The following codecs depend on hardware-accelerated decoding and are therefore not yet supported:

  • MP3
  • AAC
  • H.264 (MP4)
  • WebM

This means it isn't possible to use the Simulator to test video playback in apps and on websites like Youtube that rely on these codecs.

Desteklenmeyen APİ'ler

Certain APIs that work on the device won't work on the Simulator, generally because the supporting hardware is not available on the desktop. We've implemented simulations for some APIs such as geolocation, and expect to add more in future releases. However, at the moment the following APIs are not supported. Using them might throw errors or just return incorrect results:

Getting help

The Firefox OS Simulator is still at an early stage of development, and isn't yet as reliable and complete as we'd like it to be.

If you find any bugs, please file them on GitHub. If you have a question, try asking us on the dev-developer-tools mailing list or on #devtools on

How to enable verbose logging

Use about:config to create the preference, set it to the integer value 0, and disable/reenable the addon. Additional messages about the Simulator's operation will appear in the Error Console (or Browser Console in newer versions of Firefox).