Inspecting Firefox Components.interfaces.nsIDOMWindowUtils.screenPixelsPerCSSPixel value in Javascript Scratchpad
问题 I am using Firefox Scratchpad to understand the scaling behavior that results when the user types the CTRL-PLUS and CTRL-MINUS keys. In Javascript Scratchpad, I'm evaluating a snippet of Javascript code that accesses the Components.interfaces.nsIDOMWindowUtils.screenPixelsPerCSSPixel property like this: var util = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIDOMWindowUtils); util.screenPixelsPerCSSPixel In Scratchpad typing CTRL-L