gecko-dev/dom/xml
Hiroyuki Ikezoe 2feab69a17 Bug 1498729 - Store each viewport meta data by the viewport meta tag and use the last one. r=smaug,botond
This is what Chrome and Safari do.
See https://webcompat.com/issues/20701#issuecomment-436054739


So for exmaple, if there are two viewport meta tags like this;

 <meta name="viewport" content="width=980">
 <meta name="viewport" content="initial-scale=1,maximum-scale=1">

We will use "initial-scale=1,maximum-scale=1".  Before this change we used to
use merged "width=980,initial-scale=1,maximum-scale=1".

Another example is to replace the content of a single viewport meta tag like this;

 <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1">

what will happen when this tag is replaced by below;

 <meta id="viewport" name="viewport" content="width=1080">

We will use the replacing one (i.e. "width=1080"), before this change, we used
to use merged "width=1080,initial-scale=1".

As of this commit, we don't properly remove corresponding viewport meta data
when a) viewport meta tag is detached from document and b) `name` attribute is
changed from 'viewport'.  These cases will be handled in subsequent commits.

Note that we no longer store invididual viewport meta data in Document::mHeaderData
so that nsIDOMWindowUtils.getDocumentMetadata doesn't work any more for the
invididual viewport meta data, but there is no use cases for them other than
two test cases which are removed in this commit.

Differential Revision: https://phabricator.services.mozilla.com/D38922

--HG--
extra : moz-landing-system : lando
2019-07-25 20:51:23 +00:00
..
crashtests Bug 1557371 - Part 2 - Load all XUL crashtests with chrome privilege. r=dbaron 2019-07-09 19:40:42 +00:00
resources Bug 205202 part 1 - [css-lists][css-pseudo] Add support for the ::marker pseudo element on list items. Alias :-moz-list-bullet/number to that in the parser. r=emilio 2019-03-24 23:13:53 +01:00
test Bug 1498729 - Store each viewport meta data by the viewport meta tag and use the last one. r=smaug,botond 2019-07-25 20:51:23 +00:00
CDATASection.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
CDATASection.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ProcessingInstruction.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ProcessingInstruction.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
XMLDocument.cpp Bug 836176 - Part 2: Remove nsIHTMLDocument::SetIsXHTML(); r=farre 2019-06-04 17:27:41 +00:00
XMLDocument.h Bug 1536411 - StoragePrincipal - part 1 - Implementation, r=Ehsan 2019-04-12 05:31:32 +00:00
XMLStylesheetProcessingInstruction.cpp Bug 1546334 - Use referrerInfo in style system. r=heycam 2019-07-16 11:43:56 +00:00
XMLStylesheetProcessingInstruction.h Bug 1555216 - Change the signature of BindToTree to be (BindContext&, nsINode& aParentNode). r=bzbarsky 2019-05-31 23:31:52 +02:00
htmlmathml-f.ent Bug 1479815. Align our XHTML entity definitions with the HTML ones. r=hsivonen 2018-08-08 08:27:17 +00:00
moz.build
nsIXMLContentSink.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
nsXMLContentSink.cpp Bug 836176 - Part 3: Remove nsIHTMLDocument; r=farre 2019-06-04 17:27:43 +00:00
nsXMLContentSink.h Bug 1518252 - Block layout on Fluent. r=smaug 2019-01-25 23:14:03 +00:00
nsXMLElement.cpp Bug 1555143 - Remove unused aDeep argument from UnbindFromTree. r=bzbarsky 2019-05-28 22:47:08 +00:00
nsXMLElement.h Bug 1555143 - Remove unused aDeep argument from UnbindFromTree. r=bzbarsky 2019-05-28 22:47:08 +00:00
nsXMLFragmentContentSink.cpp Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
nsXMLPrettyPrinter.cpp Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan 2019-03-08 09:04:11 +00:00
nsXMLPrettyPrinter.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00