mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
8db81fb95a
This feature is about the inspector's rule view & computed view. The context menu for an image URL (e.g. value of background-image property) will contain a new entry : "Copy Image Data-URL". Clicking on it will fill the clipboard with the image encoded as a data url. The mechanism to hide/show the entry is inspired from the "Copy Color" menu entry. When the context menu is displayed, check if the target is contained in a node of type "image", using the getNodeInfo method available on both views. If the image data cannot be retrieved for a given URL, the clipboard is filled with an error message. Modified rule-view getNodeInfo method in order to exclude from image nodes the 'source' links (such as 'style.css', displayed on the right of the rule-view). Added a new mochitest that tests the feature on an element using a base64 background image. |
||
---|---|---|
.. | ||
en-US | ||
generic/chrome/global | ||
all-locales | ||
compare-locales.pl | ||
jar.mn | ||
l10n.ini | ||
l10n.mk | ||
Makefile.in | ||
moz.build | ||
update.locale |