Find
C
ase-sensitive
R
egexp search
Path
mozilla-central
/
devtools
/
server
/
actors
/
emulation
Navigation
Enable keyboard shortcuts
Name
Description
Size
moz.build
355
responsive.js
This actor overrides various browser features to simulate different environments to test how pages perform under various conditions. The design below, which saves the previous value of each property before setting, is needed because it's possible to have multiple copies of this actor for a single page. When some instance of this actor changes a property, we want it to be able to restore that property to the way it was found before the change. A subtle aspect of the code below is that all get* methods must return non-undefined values, so that the absence of a previous value can be distinguished from the value for "no override" for each of the properties.
3226
touch-simulator.js
Simulate touch events for platforms where they aren't generally available.
8204