<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Force allow user zoom"
   href="https://bugs.webkit.org/show_bug.cgi?id=155056#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Force allow user zoom"
   href="https://bugs.webkit.org/show_bug.cgi?id=155056">bug 155056</a>
              from <span class="vcard"><a class="email" href="mailto:cfleizach&#64;apple.com" title="chris fleizach &lt;cfleizach&#64;apple.com&gt;"> <span class="fn">chris fleizach</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=273066&amp;action=diff" name="attach_273066" title="patch">attachment 273066</a> <a href="attachment.cgi?id=273066&amp;action=edit" title="patch">[details]</a></span>
patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=273066&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=273066&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/ChangeLog:10
&gt; +        No new tests.</span >

we should probably add a test that override force scale (which can be set with Settings in the layout test) also overrides max scale

<span class="quote">&gt; Source/WebCore/page/ViewportConfiguration.h:91
&gt; +    double maximumScale() const { return m_forceAlwaysUserScalable ? 10.0 : m_configuration.maximumScale; }</span >

we should probably define this is a const double somewhere

<span class="quote">&gt; Source/WebKit2/WebProcess/WebPage/WebPage.cpp:214
&gt; +#if __IPHONE_OS_VERSION_MIN_REQUIRED &gt;= 100000</span >

#if PLATFORM(IOS) &amp;&amp;

<span class="quote">&gt; Source/WebKit2/WebProcess/WebPage/WebPage.cpp:215
&gt; +#include &lt;WebCore/SoftLinking.h&gt;</span >

i think you need another #if
#if __has_include(&lt;AccessibilitySupport.h&gt;)
#else
extern &quot;C&quot; {
Boolean _AXSForceAllowWebScaling();
CFStringRef kAXSAllowForceWebScalingEnabledNotification;
}
#endif

so that this can be built by other people

take a look at WeakObjCPtr.h

<span class="quote">&gt; Source/WebKit2/WebProcess/WebPage/WebPage.cpp:602
&gt; +    CFNotificationCenterRemoveObserver(CFNotificationCenterGetLocalCenter(), this, 0, 0);</span >

nullptr, nullptr

<span class="quote">&gt; Source/WebKit2/WebProcess/WebPage/WebPage.cpp:2820
&gt; +    m_viewportConfiguration.setForceAlwaysUserScalable(_AXSForceAllowWebScaling());</span >

it seems like this should also respect
store.getBoolValueForKey(WebPreferencesKey::forceAlwaysUserScalableKey());

maybe this method should have all the logic and then updatePreferences below calls updateForceAlways..()</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>