<?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>195999</bug_id>
          
          <creation_ts>2019-03-20 06:30:56 -0700</creation_ts>
          <short_desc>Compilation broken in WKWebViewGetContents.mm with iOS SDK (rev 243195)</short_desc>
          <delta_ts>2019-03-21 15:18:52 -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>Tools / Tests</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>iOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>olivierrobin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ajuma</cc>
    
    <cc>commit-queue</cc>
    
    <cc>fred.wang</cc>
    
    <cc>lforschler</cc>
    
    <cc>thorton</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1518862</commentid>
    <comment_count>0</comment_count>
    <who name="">olivierrobin</who>
    <bug_when>2019-03-20 06:30:56 -0700</bug_when>
    <thetext>Compilation is broken with error 

webkit/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewGetContents.mm:60:14: error: &apos;_getContentsAsAttributedStringWithCompletionHandler:&apos; is unavailable: not available on iOS
    [webView _getContentsAsAttributedStringWithCompletionHandler:^(NSAttributedString *attributedString, NSDictionary&lt;NSAttributedStringDocumentAttributeKey, id&gt; *documentAttributes, NSError *error) {
             ^
In file included from webkit/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewGetContents.mm:30:
In file included from webkit/Tools/TestWebKitAPI/cocoa/TestNavigationDelegate.h:28:
In file included from /webkit/WebKitBuild/Debug-iphonesimulator/WebKit.framework/PrivateHeaders/WKNavigationDelegatePrivate.h:29:
/WebKitBuild/Debug-iphonesimulator/WebKit.framework/PrivateHeaders/WKWebViewPrivate.h:367:1: note: &apos;_getContentsAsAttributedStringWithCompletionHandler:&apos; has been explicitly marked
      unavailable here
- (void)_getContentsAsAttributedStringWithCompletionHandler:(void (^)(NSAttributedString *, NSDictionary&lt;NSAttributedStringDocumentAttributeKey, id&gt; *, NSError *))completionHandler API_AVAILABLE(macosx(NA), ios(NA));
^
1 error generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1518891</commentid>
    <comment_count>1</comment_count>
      <attachid>365347</attachid>
    <who name="">olivierrobin</who>
    <bug_when>2019-03-20 08:47:13 -0700</bug_when>
    <thetext>Created attachment 365347
Initial upload</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1518892</commentid>
    <comment_count>2</comment_count>
    <who name="Ali Juma">ajuma</who>
    <bug_when>2019-03-20 08:50:27 -0700</bug_when>
    <thetext>This typo (WK_MAC_TBA instead of WK_IOS_TBA) unfortunately happens every so often and breaks the open-source iOS build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1518939</commentid>
    <comment_count>3</comment_count>
      <attachid>365347</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-03-20 09:48:00 -0700</bug_when>
    <thetext>Comment on attachment 365347
Initial upload

Clearing flags on attachment: 365347

Committed r243212: &lt;https://trac.webkit.org/changeset/243212&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1518940</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-03-20 09:48:02 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1518941</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-20 09:49:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/49064939&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1519603</commentid>
    <comment_count>6</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2019-03-21 05:06:20 -0700</bug_when>
    <thetext>(In reply to Ali Juma from comment #2)
&gt; This typo (WK_MAC_TBA instead of WK_IOS_TBA) unfortunately happens every so
&gt; often and breaks the open-source iOS build.

I had added a style check in bug 181394 ; I wonder why the error was not caught by check-webkit-style?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1519615</commentid>
    <comment_count>7</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2019-03-21 05:47:25 -0700</bug_when>
    <thetext>(In reply to Frédéric Wang (:fredw) from comment #6)
&gt; (In reply to Ali Juma from comment #2)
&gt; &gt; This typo (WK_MAC_TBA instead of WK_IOS_TBA) unfortunately happens every so
&gt; &gt; often and breaks the open-source iOS build.
&gt; 
&gt; I had added a style check in bug 181394 ; I wonder why the error was not
&gt; caught by check-webkit-style?

OK it was actually detected: https://bugs.webkit.org/show_bug.cgi?id=195636#c52</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1519706</commentid>
    <comment_count>8</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2019-03-21 10:22:50 -0700</bug_when>
    <thetext>(In reply to Frédéric Wang (:fredw) from comment #7)
&gt; (In reply to Frédéric Wang (:fredw) from comment #6)
&gt; &gt; (In reply to Ali Juma from comment #2)
&gt; &gt; &gt; This typo (WK_MAC_TBA instead of WK_IOS_TBA) unfortunately happens every so
&gt; &gt; &gt; often and breaks the open-source iOS build.
&gt; &gt; 
&gt; &gt; I had added a style check in bug 181394 ; I wonder why the error was not
&gt; &gt; caught by check-webkit-style?
&gt; 
&gt; OK it was actually detected:
&gt; https://bugs.webkit.org/show_bug.cgi?id=195636#c52

Oops, I remember seeing that and not fully understanding / reading it I guess.

&quot;WK_MAC_TBA is neither a version number nor WK_IOS_TBA&quot;

That statement is true, it is not a number nor WK_IOS_TBA — nothing to see here. It sounded (at a glance) like it didn&apos;t approve of a define being used — expecting only a number — since macosx(WK_MAC_TBA) was also used on the same line. The missing part is this is about the WK_MAC_TBA  being used in the ios() macro.

An error more like would help:

&quot;ios(WK_MAC_TBA) is invalid; expected WK_IOS_TBA or a number&quot;

I&apos;ll file a bug on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1519978</commentid>
    <comment_count>9</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2019-03-21 15:18:52 -0700</bug_when>
    <thetext>(In reply to Timothy Hatcher from comment #8)
&gt; (In reply to Frédéric Wang (:fredw) from comment #7)
&gt; &gt; (In reply to Frédéric Wang (:fredw) from comment #6)
&gt; &gt; &gt; (In reply to Ali Juma from comment #2)
&gt; &gt; &gt; &gt; This typo (WK_MAC_TBA instead of WK_IOS_TBA) unfortunately happens every so
&gt; &gt; &gt; &gt; often and breaks the open-source iOS build.
&gt; &gt; &gt; 
&gt; &gt; &gt; I had added a style check in bug 181394 ; I wonder why the error was not
&gt; &gt; &gt; caught by check-webkit-style?
&gt; &gt; 
&gt; &gt; OK it was actually detected:
&gt; &gt; https://bugs.webkit.org/show_bug.cgi?id=195636#c52
&gt; 
&gt; Oops, I remember seeing that and not fully understanding / reading it I
&gt; guess.
&gt; 
&gt; &quot;WK_MAC_TBA is neither a version number nor WK_IOS_TBA&quot;
&gt; 
&gt; That statement is true, it is not a number nor WK_IOS_TBA — nothing to see
&gt; here. It sounded (at a glance) like it didn&apos;t approve of a define being used
&gt; — expecting only a number — since macosx(WK_MAC_TBA) was also used on the
&gt; same line. The missing part is this is about the WK_MAC_TBA  being used in
&gt; the ios() macro.
&gt; 
&gt; An error more like would help:
&gt; 
&gt; &quot;ios(WK_MAC_TBA) is invalid; expected WK_IOS_TBA or a number&quot;
&gt; 
&gt; I&apos;ll file a bug on this.

I see. Thanks.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>365347</attachid>
            <date>2019-03-20 08:47:13 -0700</date>
            <delta_ts>2019-03-20 09:48:00 -0700</delta_ts>
            <desc>Initial upload</desc>
            <filename>bug-195999-20190320164711.patch</filename>
            <type>text/plain</type>
            <size>1925</size>
            <attacher>olivierrobin</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyNDMxOTUpCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEyIEBACisyMDE5LTAzLTIwICBPbGl2aWVyIFJv
YmluICA8b2xpdmllcnJvYmluQGNocm9taXVtLm9yZz4KKworICAgICAgICBGaXggX2dldENvbnRl
bnRzQXNBdHRyaWJ1dGVkU3RyaW5nV2l0aENvbXBsZXRpb25IYW5kbGVyIGF2YWlsYWJpbGl0eSBm
b3IgaU9TLgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9
MTk1OTk5CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAg
KiBVSVByb2Nlc3MvQVBJL0NvY29hL1dLV2ViVmlld1ByaXZhdGUuaDoKKwogMjAxOS0wMy0yMCAg
VGltIEhvcnRvbiAgPHRpbW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