Bug 1668414 - Also handle <source srcset>. r=edgar
commit0d0fd8f5781375960f494c64df141c353f1e139e
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 5 Oct 2020 13:44:48 +0000 (5 13:44 +0000)
committerEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 5 Oct 2020 13:44:48 +0000 (5 13:44 +0000)
tree87c13b678249bd729678d87a522686ecad29adc6
parentfcb066e784331e065cf6ef8fa57f872eaa0ff91a
Bug 1668414 - Also handle <source srcset>. r=edgar

Thanks for asking me to add a test ;)

Using the image responsive selector works for scanning the srcset images, but
since we wouldn't rewrite the <source> uris the invalid urls would still have
preference.

Differential Revision: https://phabricator.services.mozilla.com/D92264
dom/base/ResponsiveImageSelector.cpp
dom/base/ResponsiveImageSelector.h
dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp
toolkit/components/windowcreator/test/browser.ini
toolkit/components/windowcreator/test/browser_persist.js
toolkit/components/windowcreator/test/file_persist_picture_source.html [new file with mode: 0644]