<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>35583</bug_id>
          
          <creation_ts>2010-03-02 09:05:58 -0800</creation_ts>
          <short_desc>if font-family lists several generic families, the last one takes precedence</short_desc>
          <delta_ts>2022-07-23 12:47:10 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olivier Tilloy">olivier</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>mitz</cc>
    
    <cc>mrmazda</cc>
    
    <cc>olivier</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>195065</commentid>
    <comment_count>0</comment_count>
    <who name="Olivier Tilloy">olivier</who>
    <bug_when>2010-03-02 09:05:58 -0800</bug_when>
    <thetext>According to the CSS fonts specification (http://www.w3.org/TR/css3-fonts/#font-family-the-font-family-property), &quot;[the font-family property] specifies a prioritized list of font family names or generic family names&quot;, and &quot;authors are encouraged to append a generic font family as a last alternative for improved robustness&quot;.

It doesn&apos;t make much sense to list several generic families in a font-family property, since all generic font families are guaranteed to be always available by the user agent. However if one does, the current behaviour of webkit is to override the fallback family with the last generic family encountered in the list.
Consider the following example:

    font-family: ThisFontIsInvalid, monospace, sans-serif

If the first font family is not found on the system, the font selected should be the UA&apos;s default monospace font. Instead, it is the default sans-serif font.

A real life example is at http://svn.debian.org/wsvn/secure-testing/doc/narrative_introduction.
The text of the page is intended to be displayed with a fixed width, and the the style is defined like this:

    font-family:&apos;Consolas&apos;,monospace,sans-serif;

(in http://svn.debian.org/websvn/templates/calm/styles.css)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195068</commentid>
    <comment_count>1</comment_count>
      <attachid>49808</attachid>
    <who name="Olivier Tilloy">olivier</who>
    <bug_when>2010-03-02 09:22:50 -0800</bug_when>
    <thetext>Created attachment 49808
layout test case

This is a layout test case that highlights the issue.
I used the offsetWidth property of inline &lt;p&gt; elements to determine whether the font used for the two paragraphs is the same, if there is a more elegant solution it is welcome.
I guess this test could go in LayoutTests/fast/css.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195075</commentid>
    <comment_count>2</comment_count>
      <attachid>49810</attachid>
    <who name="Olivier Tilloy">olivier</who>
    <bug_when>2010-03-02 09:39:30 -0800</bug_when>
    <thetext>Created attachment 49810
[patch] set the generic family only once

This patch fixes the issue by setting the generic family only once.
If another generic family is encountered in the list, setGenericFamily() is not called again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195315</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-03-02 16:47:01 -0800</bug_when>
    <thetext>The test says &quot;PASS&quot; for me. I was testing in Safari on Mac OS X.

OIf the behavior is indeed correct in some ports, it&apos;s likely that a proper fix wouldn&apos;t need to touch cross-platform code.

Please see &lt;https://webkit.org/coding/contributing.html&gt; for detailed information about contributing code to WebKit - we do require creating a single patch with tests and ChangeLogs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195414</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Tilloy">olivier</who>
    <bug_when>2010-03-03 00:59:16 -0800</bug_when>
    <thetext>Thanks for your feedback Alexey.
It looks like the bug I&apos;m trying to fix is indeed platform-specific. Since I could reproduce it on the GTK and QT ports on linux, I assumed a bit too fast it was general.

Still, I believe the first part of my analysis and the patch are valid, as far as I can interpret the specification and understand the CSSStyleSelector code correctly. I can&apos;t think of an obvious layout test for it though.

If anyone who knows better this part of the code could take a look into it, it would be much appreciated! If my change makes sense I&apos;ll gladly generate a suitable patch with the Changelog.


As far as the layout test I attached is concerned, my guess is that ports that do the right thing (like the mac one) iterate over the list of families, discarding the first one as invalid and falling back on the second one (&quot;-webkit-monospace&quot;), whereas the GTK port seems to always generate a font from the first family, using the family name and falling back to the font description&apos;s generic family (which explains why this patch seems to fix it).
I will file a separate bug for the GTK port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195648</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-03-03 09:54:32 -0800</bug_when>
    <thetext>&gt; If anyone who knows better this part of the code could take a look into it, it
&gt; would be much appreciated!

A bug without any patches marked for review has pretty low visibility. Please consider either submitting a patch for review (as documented at https://webkit.org/coding/contributing.html), or e-mailing webkit-dev.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195653</commentid>
    <comment_count>6</comment_count>
      <attachid>49919</attachid>
    <who name="Olivier Tilloy">olivier</who>
    <bug_when>2010-03-03 10:14:05 -0800</bug_when>
    <thetext>Created attachment 49919
Updated patch with Changelog entry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195654</commentid>
    <comment_count>7</comment_count>
      <attachid>49919</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-03-03 10:18:51 -0800</bug_when>
    <thetext>Comment on attachment 49919
Updated patch with Changelog entry

Even if you can&apos;t test with DumpRenderTree cross-platform you can do the following:

    1) Add a DumpRenderTree test that requires per-platform results.

    2) Create a manual test with instructions for how to interpret the results and put it in WebCore/manual-tests.

    3) Add some new feature to DumpRenderTree to make it possible to test this across platforms.

As another possibility, is there perhaps some way to detect which family is used with computed style?

It&apos;s not OK to make the change without a test at all, so you need to do at least one of the things above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195658</commentid>
    <comment_count>8</comment_count>
    <who name="Olivier Tilloy">olivier</who>
    <bug_when>2010-03-03 10:29:05 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 49919 [details])
&gt; Even if you can&apos;t test with DumpRenderTree cross-platform you can do the
&gt; following:
&gt; 
&gt;     1) Add a DumpRenderTree test that requires per-platform results.
&gt; 
&gt;     2) Create a manual test with instructions for how to interpret the results
&gt; and put it in WebCore/manual-tests.
&gt; 
&gt;     3) Add some new feature to DumpRenderTree to make it possible to test this
&gt; across platforms.

#3 looks like the best option, but also the most complex to implement (given my
current knowledge of the code). Also, wouldn&apos;t changing the output of
DumpRenderTree break a lot of existing tests?

&gt; As another possibility, is there perhaps some way to detect which family is
&gt; used with computed style?

No, I already tried that, but the computed style only contains an ordered list
of font families as encountered by the CSS parser, no hint on which of them is
actually used.
The fact that webkit chooses to remember only one generic family instead of a
list of them is an implementation detail that&apos;s unknown to the CSS specification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195693</commentid>
    <comment_count>9</comment_count>
    <who name="">mitz</who>
    <bug_when>2010-03-03 11:40:14 -0800</bug_when>
    <thetext>So I noticed that

platform/graphics/chromium/FontCacheChromiumWin.cpp
platform/graphics/chromium/FontCacheLinux.cpp
platform/graphics/gtk/FontPlatformDataGtk.cpp
platform/graphics/gtk/FontPlatformDataPango.cpp
platform/graphics/wx/FontPlatformDataWx.cpp

are the only files in platform/graphics that refer to the generic family in the font description. The Mac, Windows and Qt implementations don’t do this. I think this is the problem. The mapping from generic family to concrete family happes through the -webkit-* family names (e.g. -webkit-serif) and the Settings object in CSSFontSelector. I don’t know why the aforementioned ports don’t take advantage of that and do platform-level mapping.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886202</commentid>
    <comment_count>10</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-23 05:46:16 -0700</bug_when>
    <thetext>All browsers (Safari 15.6 on macOS 12.5, Chrome Canary 106 and Firefox Nightly 104) show &quot;PASS&quot; in the attached test case, if it this desired output then I think this bug can be marked &quot;RESOLVED CONFIGURATION CHANGED&quot;.

NOTE - Safari do fail some &apos;font-family&apos; css test cases as shown in WPT:

https://wpt.fyi/results/css/css-fonts?label=master&amp;label=experimental&amp;aligned&amp;q=font-family</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>49808</attachid>
            <date>2010-03-02 09:22:50 -0800</date>
            <delta_ts>2010-03-02 09:22:50 -0800</delta_ts>
            <desc>layout test case</desc>
            <filename>several-generic-font-families.html</filename>
            <type>text/html</type>
            <size>847</size>
            <attacher name="Olivier Tilloy">olivier</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGhlYWQ+CiAgICA8c2NyaXB0PgogICAgICBpZiAod2luZG93LmxheW91dFRlc3RD
b250cm9sbGVyKQogICAgICAgIGxheW91dFRlc3RDb250cm9sbGVyLmR1bXBBc1RleHQoKTsKICAg
ICAgPCEtLSBDb21wYXJlIHRoZSB3aWR0aHMgb2YgdGhlIHR3byBwYXJhZ3JhcGhzLiBJZiB0aGV5
IGFyZSBlcXVhbCwgdGhleSBhcmUgZGlzcGxheWVkIHVzaW5nIHRoZSBzYW1lIGZvbnQgIC0tPgog
ICAgICBmdW5jdGlvbiBjb21wYXJlV2lkdGhzKCkgewogICAgICAgIHcxID0gZG9jdW1lbnQuZ2V0
RWxlbWVudEJ5SWQoImZpcnN0Iikub2Zmc2V0V2lkdGg7CiAgICAgICAgdzIgPSBkb2N1bWVudC5n
ZXRFbGVtZW50QnlJZCgic2Vjb25kIikub2Zmc2V0V2lkdGg7CiAgICAgICAgZG9jdW1lbnQuYm9k
eS5pbm5lckhUTUwgPSAodzEgPT0gdzIpID8gJ1BBU1MnIDogJ0ZBSUwnOwogICAgICB9CiAgICA8
L3NjcmlwdD4KICA8L2hlYWQ+CiAgPGJvZHkgb25sb2FkPSJjb21wYXJlV2lkdGhzKCkiPgogICAg
PCEtLSBUaGUgZm9udCBhcHBsaWVkIHRvIGJvdGggb2YgdGhlc2UgcGFyYWdyYXBocyBzaG91bGQg
YmUgdGhlIFVBJ3MgZGVmYXVsdCBtb25vc3BhY2UgZm9udCAtLT4KICAgIDxwIGlkPSJmaXJzdCIg
c3R5bGU9ImRpc3BsYXk6IGlubGluZTsgZm9udC1zaXplOiAxMHB4OyBmb250LWZhbWlseTogVGhp
c0ZvbnRJc0ludmFsaWQsIG1vbm9zcGFjZSwgc2Fucy1zZXJpZiI+bW1tbW1sPC9wPgogICAgPHAg
aWQ9InNlY29uZCIgc3R5bGU9ImRpc3BsYXk6IGlubGluZTsgZm9udC1zaXplOiAxMHB4OyBmb250
LWZhbWlseTogbW9ub3NwYWNlIj5tbW1tbWw8L3A+CiAgPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>49810</attachid>
            <date>2010-03-02 09:39:30 -0800</date>
            <delta_ts>2010-03-03 10:14:05 -0800</delta_ts>
            <desc>[patch] set the generic family only once</desc>
            <filename>set_generic_family_only_once.diff</filename>
            <type>text/plain</type>
            <size>2365</size>
            <attacher name="Olivier Tilloy">olivier</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvY3NzL0NTU1N0eWxlU2VsZWN0b3IuY3BwIGIvV2ViQ29yZS9j
c3MvQ1NTU3R5bGVTZWxlY3Rvci5jcHAKaW5kZXggMTI0ZWI5Zi4uYTIwNjY5ZSAxMDA2NDQKLS0t
IGEvV2ViQ29yZS9jc3MvQ1NTU3R5bGVTZWxlY3Rvci5jcHAKKysrIGIvV2ViQ29yZS9jc3MvQ1NT
U3R5bGVTZWxlY3Rvci5jcHAKQEAgLTQyNDQsMjMgKzQyNDQsMjggQEAgdm9pZCBDU1NTdHlsZVNl
bGVjdG9yOjphcHBseVByb3BlcnR5KGludCBpZCwgQ1NTVmFsdWUgKnZhbHVlKQogICAgICAgICAg
ICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgIGNhc2UgQ1NTVmFsdWVT
ZXJpZjoKICAgICAgICAgICAgICAgICAgICAgICAgIGZhY2UgPSAiLXdlYmtpdC1zZXJpZiI7Ci0g
ICAgICAgICAgICAgICAgICAgICAgICBmb250RGVzY3JpcHRpb24uc2V0R2VuZXJpY0ZhbWlseShG
b250RGVzY3JpcHRpb246OlNlcmlmRmFtaWx5KTsKKyAgICAgICAgICAgICAgICAgICAgICAgIGlm
IChmb250RGVzY3JpcHRpb24uZ2VuZXJpY0ZhbWlseSgpID09IEZvbnREZXNjcmlwdGlvbjo6Tm9G
YW1pbHkpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udERlc2NyaXB0aW9uLnNldEdl
bmVyaWNGYW1pbHkoRm9udERlc2NyaXB0aW9uOjpTZXJpZkZhbWlseSk7CiAgICAgICAgICAgICAg
ICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgY2FzZSBDU1NWYWx1ZVNhbnNT
ZXJpZjoKICAgICAgICAgICAgICAgICAgICAgICAgIGZhY2UgPSAiLXdlYmtpdC1zYW5zLXNlcmlm
IjsKLSAgICAgICAgICAgICAgICAgICAgICAgIGZvbnREZXNjcmlwdGlvbi5zZXRHZW5lcmljRmFt
aWx5KEZvbnREZXNjcmlwdGlvbjo6U2Fuc1NlcmlmRmFtaWx5KTsKKyAgICAgICAgICAgICAgICAg
ICAgICAgIGlmIChmb250RGVzY3JpcHRpb24uZ2VuZXJpY0ZhbWlseSgpID09IEZvbnREZXNjcmlw
dGlvbjo6Tm9GYW1pbHkpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udERlc2NyaXB0
aW9uLnNldEdlbmVyaWNGYW1pbHkoRm9udERlc2NyaXB0aW9uOjpTYW5zU2VyaWZGYW1pbHkpOwog
ICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgIGNhc2Ug
Q1NTVmFsdWVDdXJzaXZlOgogICAgICAgICAgICAgICAgICAgICAgICAgZmFjZSA9ICItd2Via2l0
LWN1cnNpdmUiOwotICAgICAgICAgICAgICAgICAgICAgICAgZm9udERlc2NyaXB0aW9uLnNldEdl
bmVyaWNGYW1pbHkoRm9udERlc2NyaXB0aW9uOjpDdXJzaXZlRmFtaWx5KTsKKyAgICAgICAgICAg
ICAgICAgICAgICAgIGlmIChmb250RGVzY3JpcHRpb24uZ2VuZXJpY0ZhbWlseSgpID09IEZvbnRE
ZXNjcmlwdGlvbjo6Tm9GYW1pbHkpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udERl
c2NyaXB0aW9uLnNldEdlbmVyaWNGYW1pbHkoRm9udERlc2NyaXB0aW9uOjpDdXJzaXZlRmFtaWx5
KTsKICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgICBj
YXNlIENTU1ZhbHVlRmFudGFzeToKICAgICAgICAgICAgICAgICAgICAgICAgIGZhY2UgPSAiLXdl
YmtpdC1mYW50YXN5IjsKLSAgICAgICAgICAgICAgICAgICAgICAgIGZvbnREZXNjcmlwdGlvbi5z
ZXRHZW5lcmljRmFtaWx5KEZvbnREZXNjcmlwdGlvbjo6RmFudGFzeUZhbWlseSk7CisgICAgICAg
ICAgICAgICAgICAgICAgICBpZiAoZm9udERlc2NyaXB0aW9uLmdlbmVyaWNGYW1pbHkoKSA9PSBG
b250RGVzY3JpcHRpb246Ok5vRmFtaWx5KQorICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZv
bnREZXNjcmlwdGlvbi5zZXRHZW5lcmljRmFtaWx5KEZvbnREZXNjcmlwdGlvbjo6RmFudGFzeUZh
bWlseSk7CiAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAg
ICAgY2FzZSBDU1NWYWx1ZU1vbm9zcGFjZToKICAgICAgICAgICAgICAgICAgICAgICAgIGZhY2Ug
PSAiLXdlYmtpdC1tb25vc3BhY2UiOwotICAgICAgICAgICAgICAgICAgICAgICAgZm9udERlc2Ny
aXB0aW9uLnNldEdlbmVyaWNGYW1pbHkoRm9udERlc2NyaXB0aW9uOjpNb25vc3BhY2VGYW1pbHkp
OworICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGZvbnREZXNjcmlwdGlvbi5nZW5lcmljRmFt
aWx5KCkgPT0gRm9udERlc2NyaXB0aW9uOjpOb0ZhbWlseSkKKyAgICAgICAgICAgICAgICAgICAg
ICAgICAgICBmb250RGVzY3JpcHRpb24uc2V0R2VuZXJpY0ZhbWlseShGb250RGVzY3JpcHRpb246
Ok1vbm9zcGFjZUZhbWlseSk7CiAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAg
ICAgICAgICAgICB9CiAgICAgICAgICAgICB9Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>49919</attachid>
            <date>2010-03-03 10:14:05 -0800</date>
            <delta_ts>2010-06-10 21:13:26 -0700</delta_ts>
            <desc>Updated patch with Changelog entry</desc>
            <filename>set_generic_family_only_once_with_changelog.diff</filename>
            <type>text/plain</type>
            <size>3096</size>
            <attacher name="Olivier Tilloy">olivier</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
MjA0NWVmMi4uYjhhOTBhYiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNyBAQAorMjAxMC0wMy0wMyAgT2xpdmllciBUaWxs
b3kgIDxvbGl2aWVyQHRpbGxveS5uZXQ+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChP
T1BTISkuCisKKyAgICAgICAgRG8gbm90IG92ZXJyaWRlIHRoZSBnZW5lcmljIGZvbnQgZmFtaWx5
IGlmIGFscmVhZHkgZGVmaW5lZCB3aGVuIHBhcnNpbmcKKyAgICAgICAgdGhlIGZvbnQtZmFtaWx5
IHByb3BlcnR5LgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/
aWQ9MzU1ODMKKworICAgICAgICBUaGlzIGRvZXNuJ3QgYXBwZWFyIHRvIGJlIHRlc3RhYmxlIGZy
b20gd2l0aGluIER1bXBSZW5kZXJUcmVlIGFzIHRoZQorICAgICAgICBhY3R1YWwgZm9udCBhcHBs
aWVkIGlzIHBsYXRmb3JtLWRlcGVuZGVudCBhbmQgaXMgbm90IGV4cG9zZWQuCisKKyAgICAgICAg
KiBjc3MvQ1NTU3R5bGVTZWxlY3Rvci5jcHA6CisgICAgICAgIChXZWJDb3JlOjpDU1NTdHlsZVNl
bGVjdG9yOjphcHBseVByb3BlcnR5KToKKwogMjAxMC0wMi0yNiAgWmhlbnlhbyBNbyAgPHptb0Bn
b29nbGUuY29tPgogCiAgICAgICAgIFJldmlld2VkIGJ5IERhdmlkIExldmluLgpkaWZmIC0tZ2l0
IGEvV2ViQ29yZS9jc3MvQ1NTU3R5bGVTZWxlY3Rvci5jcHAgYi9XZWJDb3JlL2Nzcy9DU1NTdHls
ZVNlbGVjdG9yLmNwcAppbmRleCAxMjRlYjlmLi5hMjA2NjllIDEwMDY0NAotLS0gYS9XZWJDb3Jl
L2Nzcy9DU1NTdHlsZVNlbGVjdG9yLmNwcAorKysgYi9XZWJDb3JlL2Nzcy9DU1NTdHlsZVNlbGVj
dG9yLmNwcApAQCAtNDI0NCwyMyArNDI0NCwyOCBAQCB2b2lkIENTU1N0eWxlU2VsZWN0b3I6OmFw
cGx5UHJvcGVydHkoaW50IGlkLCBDU1NWYWx1ZSAqdmFsdWUpCiAgICAgICAgICAgICAgICAgICAg
ICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgY2FzZSBDU1NWYWx1ZVNlcmlmOgogICAg
ICAgICAgICAgICAgICAgICAgICAgZmFjZSA9ICItd2Via2l0LXNlcmlmIjsKLSAgICAgICAgICAg
ICAgICAgICAgICAgIGZvbnREZXNjcmlwdGlvbi5zZXRHZW5lcmljRmFtaWx5KEZvbnREZXNjcmlw
dGlvbjo6U2VyaWZGYW1pbHkpOworICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGZvbnREZXNj
cmlwdGlvbi5nZW5lcmljRmFtaWx5KCkgPT0gRm9udERlc2NyaXB0aW9uOjpOb0ZhbWlseSkKKyAg
ICAgICAgICAgICAgICAgICAgICAgICAgICBmb250RGVzY3JpcHRpb24uc2V0R2VuZXJpY0ZhbWls
eShGb250RGVzY3JpcHRpb246OlNlcmlmRmFtaWx5KTsKICAgICAgICAgICAgICAgICAgICAgICAg
IGJyZWFrOwogICAgICAgICAgICAgICAgICAgICBjYXNlIENTU1ZhbHVlU2Fuc1NlcmlmOgogICAg
ICAgICAgICAgICAgICAgICAgICAgZmFjZSA9ICItd2Via2l0LXNhbnMtc2VyaWYiOwotICAgICAg
ICAgICAgICAgICAgICAgICAgZm9udERlc2NyaXB0aW9uLnNldEdlbmVyaWNGYW1pbHkoRm9udERl
c2NyaXB0aW9uOjpTYW5zU2VyaWZGYW1pbHkpOworICAgICAgICAgICAgICAgICAgICAgICAgaWYg
KGZvbnREZXNjcmlwdGlvbi5nZW5lcmljRmFtaWx5KCkgPT0gRm9udERlc2NyaXB0aW9uOjpOb0Zh
bWlseSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250RGVzY3JpcHRpb24uc2V0R2Vu
ZXJpY0ZhbWlseShGb250RGVzY3JpcHRpb246OlNhbnNTZXJpZkZhbWlseSk7CiAgICAgICAgICAg
ICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgY2FzZSBDU1NWYWx1ZUN1
cnNpdmU6CiAgICAgICAgICAgICAgICAgICAgICAgICBmYWNlID0gIi13ZWJraXQtY3Vyc2l2ZSI7
Ci0gICAgICAgICAgICAgICAgICAgICAgICBmb250RGVzY3JpcHRpb24uc2V0R2VuZXJpY0ZhbWls
eShGb250RGVzY3JpcHRpb246OkN1cnNpdmVGYW1pbHkpOworICAgICAgICAgICAgICAgICAgICAg
ICAgaWYgKGZvbnREZXNjcmlwdGlvbi5nZW5lcmljRmFtaWx5KCkgPT0gRm9udERlc2NyaXB0aW9u
OjpOb0ZhbWlseSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250RGVzY3JpcHRpb24u
c2V0R2VuZXJpY0ZhbWlseShGb250RGVzY3JpcHRpb246OkN1cnNpdmVGYW1pbHkpOwogICAgICAg
ICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgIGNhc2UgQ1NTVmFs
dWVGYW50YXN5OgogICAgICAgICAgICAgICAgICAgICAgICAgZmFjZSA9ICItd2Via2l0LWZhbnRh
c3kiOwotICAgICAgICAgICAgICAgICAgICAgICAgZm9udERlc2NyaXB0aW9uLnNldEdlbmVyaWNG
YW1pbHkoRm9udERlc2NyaXB0aW9uOjpGYW50YXN5RmFtaWx5KTsKKyAgICAgICAgICAgICAgICAg
ICAgICAgIGlmIChmb250RGVzY3JpcHRpb24uZ2VuZXJpY0ZhbWlseSgpID09IEZvbnREZXNjcmlw
dGlvbjo6Tm9GYW1pbHkpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9udERlc2NyaXB0
aW9uLnNldEdlbmVyaWNGYW1pbHkoRm9udERlc2NyaXB0aW9uOjpGYW50YXN5RmFtaWx5KTsKICAg
ICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgICBjYXNlIENT
U1ZhbHVlTW9ub3NwYWNlOgogICAgICAgICAgICAgICAgICAgICAgICAgZmFjZSA9ICItd2Via2l0
LW1vbm9zcGFjZSI7Ci0gICAgICAgICAgICAgICAgICAgICAgICBmb250RGVzY3JpcHRpb24uc2V0
R2VuZXJpY0ZhbWlseShGb250RGVzY3JpcHRpb246Ok1vbm9zcGFjZUZhbWlseSk7CisgICAgICAg
ICAgICAgICAgICAgICAgICBpZiAoZm9udERlc2NyaXB0aW9uLmdlbmVyaWNGYW1pbHkoKSA9PSBG
b250RGVzY3JpcHRpb246Ok5vRmFtaWx5KQorICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZv
bnREZXNjcmlwdGlvbi5zZXRHZW5lcmljRmFtaWx5KEZvbnREZXNjcmlwdGlvbjo6TW9ub3NwYWNl
RmFtaWx5KTsKICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAg
IH0KICAgICAgICAgICAgIH0K
</data>
<flag name="review"
          id="32909"
          type_id="1"
          status="-"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>