30 Nov 00:46 2015

### Content Blocker - blocked requests should not seem successful to requester

Hi!

There is an issue with the way content blockers present blocked requests to the requesters.

Usually (e.g. for all other browsers) when request is blocked by add-on or extension it looks like an error to the page code. For instance, "onerror" is called for XMLHttpRequest and "element.onerror" callback is called for the DOM element if it's load is blocked by the ad blocker.

This is a common behavior and it's handled by web developers.

In case of Safari content blocker "onerror" event is not raised and it may seem that request is successful while it is not.

Here is an example.

This domain is a known tracker so you can see this rule in all "privacy" related filter lists like EasyPrivacy and such.
[
{
"trigger": {
"url-filter": "^https?://[^.]+\\.?visualwebsiteoptimizer\\.com[/:&?]?",
"third-party"
]
},
"action": {
"type": "block"
}
}
]

But it can't be used in Safari because the "silent" blocking breaks entire website which use visualwebsiteoptimizer.com. Examples of such websites:

Here is a code used by them:

As you can see they handle "onerror" callback, but it's not fired in Safari so the "body" element remains hidden.

Btw, this issue also causes significant delays when ads are blocked on Youtube. They also are waiting for "onerror" callback to fire, but as it is not fired, video does not start until "ontimeout" is fired.

--
wbr, Andrey Meshkov
<div><div dir="ltr">
<div>Hi!</div>
<div><br></div>
<div>There is an issue with the way content blockers present blocked requests to the requesters.</div>
<div>
<br>Usually (e.g. for all other browsers) when request is blocked by add-on or extension it looks like an error to the page code. For instance, "onerror" is called for XMLHttpRequest and "element.onerror" callback is called for the DOM element if it's load is blocked by the ad blocker.</div>
<div><br></div>
<div>This is a common behavior and it's handled by web developers.</div>
<div><br></div>
<div>In case of Safari content blocker "onerror" event is not raised and it may seem that request is successful while it is not.</div>
<div><br></div>
<div>Here is an example.</div>
<div><br></div>
<div>This domain is a known tracker so you can see this rule in all "privacy" related filter lists like EasyPrivacy and such.</div>
<div>
<div>[</div>
<div>
<span class="">	</span>{</div>
<div>
<span class="">		</span>"trigger": {</div>
<div>
<span class="">			</span>"url-filter": "^https?://[^.]+\\.?visualwebsiteoptimizer\\.com[/:&amp;?]?",</div>
<div>
<div>
<span class="">				</span>"third-party"</div>
<div>
<span class="">			</span>]</div>
<div>
<span class="">		</span>},</div>
<div>
<span class="">		</span>"action": {</div>
<div>
<span class="">			</span>"type": "block"</div>
<div>
<span class="">		</span>}</div>
<div>
<span class="">	</span>}</div>
<div>]</div>
</div>
<div><br></div>
<div>But it can't be used in Safari because the "silent" blocking breaks entire website which use&nbsp;<span><a href="http://visualwebsiteoptimizer.com">visualwebsiteoptimizer.com</a></span>. Examples of such websites:&nbsp;</div>
<div><a href="http://info.singtel.com">http://info.singtel.com</a></div>
<div><a href="http://www.harveynorman.com.au">http://www.harveynorman.com.au</a></div>
<div><br></div>
<div>Here is a code used by them:</div>
<div>
<a href="http://pastebin.com/awYa9s95">http://pastebin.com/awYa9s95</a><br>
</div>
<div><br></div>
<div>As you can see they handle "onerror" callback, but it's not fired in Safari so the "body" element remains hidden.</div>
<div><br></div>
<div>Btw, this issue also causes significant delays when ads are blocked on Youtube. They also are waiting for "onerror" callback to fire, but as it is not fired, video does not start until "ontimeout" is fired.</div>
<br clear="all"><div><div class="gmail_signature"><div dir="ltr">--<br>wbr,&nbsp;Andrey Meshkov</div></div></div>
</div></div>

28 Nov 09:21 2015

### An runtime error when launch MiniBrowser.exe

Hi，
I have build webkit r189384 on my computer(win8.1 64bit using vs2015),the "build-webkit" results shows me that it is completed.
And I can see "MiniBrowser.exe" in the "WebKit-r189384\WebKitBuild\Release\bin32\".However,when I double clicked the "MiniBrowser.exe",
an error occurred:
Run time error:
R6034: An application has made an attempt to load th C runtime library incorrectly?
and then:
path=E:\php_sx\phantomjs\WebKit-r189384\WebKitBuild\Release\bin32\MiniBrowser.dll
DLL initialization routine failed
I have built repeatly many times, but the problem is not resolved.
Can give me some suggestion,thanks!
Cheers,Bowei Shen

<div>
<div>
<div>Hi&#65292;</div>
<div>I have build webkit&nbsp;r189384 on my computer(win8.1 64bit using vs2015),the "build-webkit" results shows me that it is completed.</div>
<div>And I can see "MiniBrowser.exe" in the "WebKit-r189384\WebKitBuild\Release\bin32\".However,when I double clicked the&nbsp;<span>"MiniBrowser.exe",</span>
</div>
<div><span>an error occurred:</span></div>
<div>&nbsp; &nbsp; Run time error:</div>
<div> &nbsp; &nbsp;R6034: An application has made an attempt to load th C runtime library incorrectly?</div>
<div>and then:</div>
<div>&nbsp; &nbsp; path=E:\php_sx\phantomjs\WebKit-r189384\WebKitBuild\Release\bin32\MiniBrowser.dll</div>
<div>&nbsp; &nbsp; DLL initialization routine failed</div>
<div>I have built repeatly many times, but the problem is not resolved.</div>
<div>Can give me some suggestion,thanks!</div>
<div>Cheers,Bowei Shen</div>
<div><br></div>
</div>
<br><br><span title="neteasefooter"><p>&nbsp;</p></span>
</div>

19 Nov 12:15 2015

### Content Blocker: callback when request is blocked

Hi!

Currently it is very hard to debug content blocker rules as we can't discover which rule has been triggered.

The only notification I see in webkit code is:

if (currentDocument)
currentDocument->addConsoleMessage(MessageSource::ContentBlocker, MessageLevel::Info, makeString("Content blocker prevented frame displaying ", mainDocumentURL.string(), " from loading a resource from ", request.url().string()));
return BlockedStatus::Blocked;
}

But clearly that's not enough.

It would be great if there was some kind of a callback method signaling about triggered content blocker rule.

Essential information:
1. Main document URL
2. Request URL
3. Content blocker rule (if it is possible to pass the whole rule here).

If point 3 is too hard to implement, you might add an ID property to the rule syntax and pass that ID back in the callback method.

--
wbr, Andrey Meshkov
<div><div dir="ltr">
<div>Hi!</div>
<div><br></div>
<div>Currently it is very hard to debug content blocker rules as we can't discover which rule has been triggered.</div>
<div><br></div>
<div>The only notification I see in webkit code is:</div>
<div><br></div>if (willBlockLoad) {<br>&nbsp; &nbsp; if (currentDocument)<br>&nbsp; &nbsp; &nbsp; &nbsp; currentDocument-&gt;addConsoleMessage(MessageSource::ContentBlocker, MessageLevel::Info, makeString("Content blocker prevented frame displaying ", mainDocumentURL.string(), " from loading a resource from ", request.url().string()));<br>&nbsp; &nbsp; &nbsp; &nbsp;return BlockedStatus::Blocked;<br>&nbsp; &nbsp; }<br><br>But clearly that's not enough.<div><br></div>
<div>It would be great if there was some kind of a callback method signaling about triggered content blocker rule.</div>
<div><br></div>
<div>Essential information:</div>
<div>1. Main document URL</div>
<div>2. Request URL</div>
<div>3. Content blocker rule (if it is possible to pass the whole rule here).</div>
<div><br></div>
<div>If point 3 is too hard to implement, you might add an ID property to the rule syntax and pass that ID back in the callback method.</div>
<div>
<br clear="all"><div><div class="gmail_signature"><div dir="ltr">--<br>wbr,&nbsp;Andrey Meshkov</div></div></div>
</div>
</div></div>

18 Nov 02:35 2015

### [wincairo] Heap corruption assertion fired when closing webview

Hi,

When running the minibrowser example/test or my own application and I close the webview or the window hosting it I get a heap corruption assertion failure.

I'm using Visual Studio 2015, does anyone else have this issue?

I've reported a bug here:

Please let me know what I am doing wrong here.

Thanks,
Isaac
<div><div dir="ltr">Hi,<div><br></div>
<div>When running the minibrowser example/test or my own application and I close the webview or the window hosting it I get a heap corruption assertion failure.</div>
<div><br></div>
<div>I'm using Visual Studio 2015, does anyone else have this issue?</div>
<div><br></div>
<div>I've reported a bug here:</div>
<div>
<a href="https://bugs.webkit.org/show_bug.cgi?id=151162">https://bugs.webkit.org/show_bug.cgi?id=151162</a><br>
</div>
<div><br></div>
<div>Please let me know what I am doing wrong here.</div>
<div>
<div><br></div>Thanks,<br>
</div>
<div>Isaac</div>
</div></div>

11 Nov 10:35 2015

### subtitles

Hi,

Running a test including video + subtiles,

Does subtiltes are visible when switching the video to fullscreen mode?

Regards.
<div><div dir="ltr">
<div>Hi,</div>
<div>&nbsp;</div>
<div>Running a test including video + subtiles,</div>
<div>&nbsp;</div>
<div>Does subtiltes are visible when switching the&nbsp;video to fullscreen mode?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Regards.</div>
</div></div>

9 Nov 21:08 2015

Hi,

I'm embedding webkit into my windows application and I'm trying to find the "public headers" in the webkit directory. This is so I can add that directory to my include path and ensure that I don't depend on webkit internals.

The two APIs I am wanting to use are JavascriptCore and Webkit2.

Is there a clear set of folders that I can add to my include path to ensure that I only depend on the public interfaces?

Thanks,

Isaac

<div><div dir="ltr">Hi,<div><br></div>
<div>I'm embedding webkit into my windows application and I'm trying to find the "public headers" in the webkit directory. This is so I can add that directory to my include path and ensure that I don't depend on webkit internals.&nbsp;</div>
<div><br></div>
<div>The two APIs I am wanting to use are JavascriptCore and Webkit2.</div>
<div><br></div>
<div>Is there a clear set of folders that I can add to my include path to ensure that I only depend on the public interfaces?&nbsp;</div>
<div>
<div><br></div>
<div>Thanks,</div>
<div><br></div>
<div>Isaac</div>
<div class="gmail_signature"><div><br></div></div>
</div>
</div></div>

9 Nov 02:01 2015

### Re: Building wincairo on Windows 10 64bit

Hi Alex,

The update-webkit-wincairo-libs calls update-webkit-dependency, which looks it requests
a file called WinCairoRequirements.headers so that it can check the last-modified time.
I'm not familiar with perl, so I could be mistaken here.

If I do as you suggest and download and extract it manually (and comment out the check from update-webkit-wincairo-libs) the build proceeds, as I've documented below:

When I call perl build-webkit --wincairo --release from the windows command prompt, I get an error alert dialog appear with the following text:
---------------------------
cl.exe - System Error
---------------------------
The program can't start because mspdb140.dll is missing from your computer. Try reinstalling the program to fix this problem.
---------------------------
OK
---------------------------

When I click ok the build continues.

After some time it then fails when building the dumprendertree project, complaining about a missing win-cairo.h, however it does exist under Webkit\WebkitLibraries\win\include\cairo.
From WebKitBuild\Release\webkit_errors.log:

C:\work\WebKit\Tools\DumpRenderTree\cairo\PixelDumpSupportCairo.h(38): fatal error C1083: Cannot open include file: 'cairo-win32.h': No such file or directory (compiling source file C:\work\WebKit\Tools\DumpRenderTree\PixelDumpSupport.cpp) [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\DumpRenderTreeLib.vcxproj]
C:\work\WebKit\Tools\DumpRenderTree\cairo\PixelDumpSupportCairo.h(38): fatal error C1083: Cannot open include file: 'cairo-win32.h': No such file or directory (compiling source file C:\work\WebKit\Tools\DumpRenderTree\win\PixelDumpSupportWin.cpp) [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\DumpRenderTreeLib.vcxproj]
c:\work\webkit\tools\dumprendertree\cairo\PixelDumpSupportCairo.h(38): fatal error C1083: Cannot open include file: 'cairo-win32.h': No such file or directory (compiling source file C:\work\WebKit\Tools\DumpRenderTree\cairo\PixelDumpSupportCairo.cpp) [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\DumpRenderTreeLib.vcxproj]
C:\work\WebKit\Tools\DumpRenderTree\win\ImageDiffCairo.cpp(32): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\ImageDiffLib.vcxproj]

I tried running build-webkit again, and it fails with the "missing win-cairo.h" error still.

Another point is that the "build failed" message suggests looking into WebKitBuild/obj/<project>/<config> but I don't have a WebKitBuild/obj directory.

Is build-webkit still the correct build script to run? Or should I be using cmake directly?

Thanks,
Isaac

On 7 November 2015 at 08:58, Alex Christensen wrote:
Sorry about that.  We really need to update webkit.org/building/tools.html
http://trac.webkit.org/wiki/WindowsWithoutCygwin should be more up to date.  You shouldn’t need the old version of the DirectX SDK any more, and you shouldn’t need iTunes installed for WinCairo to build and run.  You will need CMake, though, which isn’t on that list yet.  Source/WebKit/WebKit.vcxproj/WebKit.sln is out of date and will be removed soon.  You will need to use CMake to generate a Visual Studio solution.
I’ve never used the cygwin64 installer, and I’m not sure what problems you may run into when using that.  It might work fine, but you shouldn’t need cygwin installed at all to build and run if you have the non-cygwin version of all the tools installed.
You shouldn’t need the WEBKIT_LIBRARIES or WEBKIT_OUTPUTDIR environment variables, either.
I’m not sure what WinCairoRequirements.headers are, but WinCairoRequirements.zip is required.  If you’re having trouble downloading it, piece together the url from Tools/Scripts/update-webkit-wincairo-libs and put the contents of the zip into WebKitLibraries/win.  That will make it so it can find the unicode and other headers.

Alex

On Nov 5, 2015, at 9:32 PM, Isaac Devine <isaac <at> devinesystems.co.nz> wrote:

Hi,

I'm trying to build the wincairo webkit port with Visual Studio 2015 (community edition) by following the instructions on:

However I was unsuccessful in using the supplied cygwin installer and instead used the cygwin64 installer from cygwin.org

After installing all of the dependencies, when I try to build with:

However when I try to build (from the cygwin prompt) via:
$PROGRAMFILES="C:\\Program Files (x86)" Tools/Scripts/build-webkit --wincairo --release It is unable to download the WinCairoRequirements.headers file (even though it can download the WinCairoRequirements.zip). If I manually change this so that it extracts the zip regardless I can continue the build. Also it seems to ignore the windows-style paths I have set in WEBKIT_OUTPUTDIR and WEBKIT_LIBRARIES and instead has them as "/WebkitBuild" and "/WebkitLibraries/win" in unix style; which corresponds to "C:\cygwin64\WebkitBuild" & "C:\cygwin64\WebkitLibraries" respectively. The build output seems to go to a mix of C:\cygwin64\WebkitBuild and C:\cygwin64\home\isaac\WebKit\WebkitBuild. The build eventually fails by WTL not finding unicode\uchar.h in the include directories, e.g.: C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf/text/ASCIIFastPath.h(26): fatal error C1083: Cannot open include file: 'unicode/utypes.h': No such file or directory (compiling source file C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\Assertions.cpp) [C:\cygwin64\home\isaac\WebKit\WebKitBuild\Release\Source\WTF\wtf\WTF.vcxproj] Looking into the generated project files the additional include directories are (if I have not defined WEBKIT_OUTPUTDIR or WEBKIT_LIBRARIES): <AdditionalIncludeDirectories>C:\cygwin64\WebKitBuild\Release\DerivedSources\ForwardingHeaders;C:\cygwin64\WebKitBuild\Release\DerivedSources;\WebKitLibraries\win\include;C:\cygwin64\home\isaac\WebKit\Source\bmalloc;C:\cygwin64\home\isaac\WebKit\Source\WTF;C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf;C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\dtoa;C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\text;C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\threads;C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\unicode;C:\cygwin64\home\isaac\WebKit\Source\ThirdParty;C:\cygwin64\WebKitBuild\Release;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> If do have WEBKIT_OUTPUTDIR and WEBKIT_LIBRARIES defined: The directories aren't specified correctly, i.e: "\WebkitBuild\include" instead of "C:\cygwin64\WebkitBuild\include" What am I doing wrong here? Is there a more complete and up-to-date guide on building the wincairo port with visual studio 2015? Cheers, Isaac _______________________________________________ webkit-help mailing list webkit-help-L0Ma0HqZfWZ4ORXrvDxdwA@public.gmane.org https://lists.webkit.org/mailman/listinfo/webkit-help -- Isaac Devine Director Devine Systems Limited +64 21 1700 929 <div> <div dir="ltr">Hi Alex,<div><br></div> <div> <div>Thanks for your help and the link, I have made more progress with those instructions.</div> <div><br></div> <div>The update-webkit-wincairo-libs calls update-webkit-dependency, which looks it requests</div> <div>a file called WinCairoRequirements.headers so that it can check the last-modified time.</div> <div>I'm not familiar with perl, so I could be mistaken here.</div> <div><br></div> <div>If I do as you suggest and download and extract it manually (and comment out the check from update-webkit-wincairo-libs) the build proceeds, as I've documented below:</div> <div><br></div> <div>When I call perl build-webkit --wincairo --release from the windows command prompt, I get an error alert dialog appear with the following text:</div> <div>---------------------------</div> <div>cl.exe - System Error</div> <div>---------------------------</div> <div>The program can't start because mspdb140.dll is missing from your computer. Try reinstalling the program to fix this problem.&nbsp;</div> <div>---------------------------</div> <div>OK &nbsp;&nbsp;</div> <div>---------------------------</div> <div><br></div> <div><br></div> <div>When I click ok the build continues.</div> <div><br></div> <div>After some time it then fails when building the dumprendertree project, complaining about a missing win-cairo.h, however it does exist under Webkit\WebkitLibraries\win\include\cairo.</div> <div>From WebKitBuild\Release\webkit_errors.log:</div> <div><br></div> <div>C:\work\WebKit\Tools\DumpRenderTree\cairo\PixelDumpSupportCairo.h(38): fatal error C1083: Cannot open include file: 'cairo-win32.h': No such file or directory (compiling source file C:\work\WebKit\Tools\DumpRenderTree\PixelDumpSupport.cpp) [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\DumpRenderTreeLib.vcxproj]</div> <div>C:\work\WebKit\Tools\DumpRenderTree\cairo\PixelDumpSupportCairo.h(38): fatal error C1083: Cannot open include file: 'cairo-win32.h': No such file or directory (compiling source file C:\work\WebKit\Tools\DumpRenderTree\win\PixelDumpSupportWin.cpp) [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\DumpRenderTreeLib.vcxproj]</div> <div>c:\work\webkit\tools\dumprendertree\cairo\PixelDumpSupportCairo.h(38): fatal error C1083: Cannot open include file: 'cairo-win32.h': No such file or directory (compiling source file C:\work\WebKit\Tools\DumpRenderTree\cairo\PixelDumpSupportCairo.cpp) [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\DumpRenderTreeLib.vcxproj]</div> <div>C:\work\WebKit\Tools\DumpRenderTree\win\ImageDiffCairo.cpp(32): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\ImageDiffLib.vcxproj]</div> <div><br></div> <div>I tried running build-webkit again, and it fails with the "missing win-cairo.h" error still.</div> <div><br></div> <div>Another point is that the "build failed" message suggests looking into WebKitBuild/obj/&lt;project&gt;/&lt;config&gt; but I don't have a WebKitBuild/obj directory.</div> <div><br></div> <div>Is build-webkit still the correct build script to run? Or should I be using cmake directly?</div> <div><br></div> <div>Thanks,</div> <div>Isaac</div> </div> <div><br></div> </div> <div class="gmail_extra"> <br><div class="gmail_quote">On 7 November 2015 at 08:58, Alex Christensen <span dir="ltr">&lt;<a href="mailto:achristensen@..." target="_blank">achristensen@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote"><div>Sorry about that.&nbsp; We really need to update <a href="http://webkit.org/building/tools.html" target="_blank">webkit.org/building/tools.html</a>&nbsp;<div> <a href="http://trac.webkit.org/wiki/WindowsWithoutCygwin" target="_blank">http://trac.webkit.org/wiki/WindowsWithoutCygwin</a>&nbsp;should be more up to date.&nbsp; You shouldn&rsquo;t need the old version of the DirectX SDK any more, and you shouldn&rsquo;t need iTunes installed for WinCairo to build and run.&nbsp; You will need CMake, though, which isn&rsquo;t on that list yet.&nbsp; Source/WebKit/WebKit.vcxproj/WebKit.sln is out of date and will be removed soon.&nbsp; You will need to use CMake to generate a Visual Studio solution.</div> <div>I&rsquo;ve never used the cygwin64 installer, and I&rsquo;m not sure what problems you may run into when using that.&nbsp; It might work fine, but you shouldn&rsquo;t need cygwin installed at all to build and run if you have the non-cygwin version of all the tools installed.</div> <div>You shouldn&rsquo;t need the WEBKIT_LIBRARIES or WEBKIT_OUTPUTDIR environment variables, either.</div> <div>I&rsquo;m not sure what WinCairoRequirements.headers are, but WinCairoRequirements.zip is required.&nbsp; If you&rsquo;re having trouble downloading it, piece together the url from Tools/Scripts/update-webkit-wincairo-libs and put the contents of the zip into WebKitLibraries/win.&nbsp; That will make it so it can find the unicode and other headers.</div> <div><br></div> <div>Alex</div> <div> <br><div><blockquote type="cite"> <div><div class="h5"> <div>On Nov 5, 2015, at 9:32 PM, Isaac Devine &lt;<a href="mailto:isaac@..." target="_blank">isaac <at> devinesystems.co.nz</a>&gt; wrote:</div> <br> </div></div> <div> <div><div class="h5"><div dir="ltr">Hi,<div><br></div> <div>I'm trying to build the wincairo webkit port with Visual Studio 2015 (community edition) by following the instructions on:</div> <div><br></div> <div>&nbsp;* <a href="http://www.webkit.org/building/tools.html" target="_blank">http://www.webkit.org/building/tools.html</a><br> </div> <div>&nbsp;*&nbsp;<a href="http://trac.webkit.org/wiki/BuildingOnWindows#WebKit_Libraries" target="_blank">http://trac.webkit.org/wiki/BuildingOnWindows#WebKit_Libraries</a><br> </div> <div>&nbsp;*&nbsp;<a href="http://trac.webkit.org/wiki/BuildingCairoOnWindows" target="_blank">http://trac.webkit.org/wiki/BuildingCairoOnWindows</a><br> </div> <div> <div><br></div> <div>However I was unsuccessful in using the supplied cygwin installer and instead used the cygwin64 installer from <a href="http://cygwin.org/" target="_blank">cygwin.org</a> </div> <div><br></div> <div>After installing all of the dependencies, when I try to build with:</div> <div><br></div> <div><br></div> <div>However when I try to build (from the cygwin prompt) via:</div> <div>$ PROGRAMFILES="C:<a>\\Program</a> Files (x86)"&nbsp;Tools/Scripts/build-webkit --wincairo --release</div>
<div><br></div>
<div><br></div>
<div>If I manually change this so that it extracts the zip regardless I can continue the build.</div>
<div><br></div>
<div>Also it seems to ignore the windows-style paths I have set in WEBKIT_OUTPUTDIR and WEBKIT_LIBRARIES and instead has them as "/WebkitBuild" and "/WebkitLibraries/win" in unix style; which corresponds to "C:\cygwin64\WebkitBuild" &amp; "C:\cygwin64\WebkitLibraries" respectively.&nbsp;</div>
<div><br></div>
<div>The build output seems to go to a mix of C:\cygwin64\WebkitBuild and C:\cygwin64\home\isaac\WebKit\WebkitBuild.</div>
<div><br></div>
<div>The build eventually fails by WTL not finding unicode\uchar.h in the include directories, e.g.:</div>
<div><br></div>
<div>C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf/text/ASCIIFastPath.h(26): fatal error C1083: Cannot open include file: 'unicode/utypes.h': No such file or directory (compiling source file C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\Assertions.cpp) [C:\cygwin64\home\isaac\WebKit\WebKitBuild\Release\Source\WTF\wtf\WTF.vcxproj]<br>
</div>
<div><br></div>
<div>Looking into the generated project files the additional include directories are (if I have not defined WEBKIT_OUTPUTDIR or WEBKIT_LIBRARIES):&nbsp;</div>
</div>
<div><br></div>
<div>If do have WEBKIT_OUTPUTDIR and WEBKIT_LIBRARIES defined:</div>
<div><br></div>
<div>The directories aren't specified correctly, i.e:</div>
<div><br></div>
<div>What am I doing wrong here?</div>
<div><br></div>
<div>Is there a more complete and up-to-date guide on building the wincairo port with visual studio 2015?</div>
<div><br></div>
<div><br></div>
<div>Cheers,</div>
<div>Isaac</div>
<div><br></div>
</div>
</div></div></div>
_______________________________________________<br>webkit-help mailing list<br><a href="mailto:webkit-help@..." target="_blank">webkit-help@...</a><br><a href="https://lists.webkit.org/mailman/listinfo/webkit-help" target="_blank">https://lists.webkit.org/mailman/listinfo/webkit-help</a><br>
</div>
</blockquote></div>
<br>
</div>
</div></blockquote>
</div>
<br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Isaac Devine<div>Director</div>
<div>Devine Systems Limited</div>
<div><br></div>
<div>+64 21 1700 929</div>
</div>
</div>
</div>

6 Nov 17:12 2015

### Content Blocker - a few feature requests

Hello!

I have some suggestions and feedback about content blocking to make it more "compatible" with the ABP syntax which is used by all ad blockers out there.

1. Is it possible to make "if-domain" and "unless-domain" not exclusive? There are some situations when you want the rule to work on all domains except a couple of subdomains.

Something like:
"if-domain": "blogspot.com"
"unless-domain": "subdomain.blogspot.com "

2. Extend regular expressions subset a bit. There is no way to limit the length of the text in the current implementation. The problem is that this feature is widely used to block ad networks which are rotating domains.

Example of such rule:
/[a-z0-9]{32,}/$script,third-party,domain=picshare.ru Is it possible to add this feature support? 3. It would be really great if there was a "main-document-url-filter" trigger. The problem is that now there is no way to disable blocking on a particular page without whitelisting the whole website. For instance, you can't convert a rule like this (which unblocks everything on /reports/* pages, but does not interfere with other pages): -- wbr, Andrey Meshkov <div><div dir="ltr"> <div>Hello!</div> <div><br></div> <div>I have some suggestions and feedback about content blocking to make it more "compatible" with the ABP syntax which is used by all ad blockers out there.</div> <div><br></div> <div>1. Is it possible to make "if-domain" and "unless-domain" not exclusive? There are some situations when you want the rule to work on all domains except a couple of subdomains.</div> <div><br></div> <div>Something like:</div> <div>"if-domain": "<a href="http://blogspot.com">blogspot.com</a>"</div> <div>"unless-domain": "<a href="http://subdomain.blogspot.com">subdomain.blogspot.com</a> "</div> <div><br></div> <div>2. Extend regular expressions subset a bit. There is no way to limit the length of the text in the current implementation. The problem is that this feature is widely used to block ad networks which are rotating domains.</div> <div><br></div> <div>Example of such rule:</div> <div>/[a-z0-9]{32,}/$script,third-party,domain=<a href="http://picshare.ru">picshare.ru</a>
</div>
<div><br></div>
<div>Is it possible to add this feature support?</div>
<div><br></div>
<div>3. It would be really great if there was a "main-document-url-filter" trigger. The problem is that now there is no way to disable blocking on a particular page without whitelisting the whole website.</div>
<div><br></div>
<div>For instance, you can't convert a rule like this (which unblocks everything on /reports/* pages, but does not interfere with other pages):</div>
<div> <at>  <at> ||<a href="http://domain.com/reports/%24document">domain.com/reports/$document</a> </div> <div><br></div> <div><br></div> <div>--</div> <div>wbr, Andrey Meshkov</div> <div><br></div> </div></div>  6 Nov 06:32 2015 ### Building wincairo on Windows 10 64bit Hi, I'm trying to build the wincairo webkit port with Visual Studio 2015 (community edition) by following the instructions on: However I was unsuccessful in using the supplied cygwin installer and instead used the cygwin64 installer from cygwin.org After installing all of the dependencies, when I try to build with: However when I try to build (from the cygwin prompt) via:$ PROGRAMFILES="C:\\Program Files (x86)" Tools/Scripts/build-webkit --wincairo --release

If I manually change this so that it extracts the zip regardless I can continue the build.

Also it seems to ignore the windows-style paths I have set in WEBKIT_OUTPUTDIR and WEBKIT_LIBRARIES and instead has them as "/WebkitBuild" and "/WebkitLibraries/win" in unix style; which corresponds to "C:\cygwin64\WebkitBuild" & "C:\cygwin64\WebkitLibraries" respectively.

The build output seems to go to a mix of C:\cygwin64\WebkitBuild and C:\cygwin64\home\isaac\WebKit\WebkitBuild.

The build eventually fails by WTL not finding unicode\uchar.h in the include directories, e.g.:

C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf/text/ASCIIFastPath.h(26): fatal error C1083: Cannot open include file: 'unicode/utypes.h': No such file or directory (compiling source file C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\Assertions.cpp) [C:\cygwin64\home\isaac\WebKit\WebKitBuild\Release\Source\WTF\wtf\WTF.vcxproj]

Looking into the generated project files the additional include directories are (if I have not defined WEBKIT_OUTPUTDIR or WEBKIT_LIBRARIES):

If do have WEBKIT_OUTPUTDIR and WEBKIT_LIBRARIES defined:

The directories aren't specified correctly, i.e:

What am I doing wrong here?

Is there a more complete and up-to-date guide on building the wincairo port with visual studio 2015?

Cheers,
Isaac

<div><div dir="ltr">Hi,<div><br></div>
<div>I'm trying to build the wincairo webkit port with Visual Studio 2015 (community edition) by following the instructions on:</div>
<div><br></div>
<div>&nbsp;* <a href="http://www.webkit.org/building/tools.html" target="_blank">http://www.webkit.org/building/tools.html</a><br>
</div>
<div>&nbsp;*&nbsp;<a href="http://trac.webkit.org/wiki/BuildingOnWindows#WebKit_Libraries" target="_blank">http://trac.webkit.org/wiki/BuildingOnWindows#WebKit_Libraries</a><br>
</div>
<div>&nbsp;*&nbsp;<a href="http://trac.webkit.org/wiki/BuildingCairoOnWindows" target="_blank">http://trac.webkit.org/wiki/BuildingCairoOnWindows</a><br>
</div>
<div>
<div><br></div>
<div>However I was unsuccessful in using the supplied cygwin installer and instead used the cygwin64 installer from <a href="http://cygwin.org">cygwin.org</a>
</div>
<div><br></div>
<div>After installing all of the dependencies, when I try to build with:</div>
<div><br></div>
<div><br></div>
<div>However when I try to build (from the cygwin prompt) via:</div>
<div>\$ PROGRAMFILES="C:\\Program Files (x86)"&nbsp;Tools/Scripts/build-webkit --wincairo --release</div>
<div><br></div>
<div><br></div>
<div>If I manually change this so that it extracts the zip regardless I can continue the build.</div>
<div><br></div>
<div>Also it seems to ignore the windows-style paths I have set in WEBKIT_OUTPUTDIR and WEBKIT_LIBRARIES and instead has them as "/WebkitBuild" and "/WebkitLibraries/win" in unix style; which corresponds to "C:\cygwin64\WebkitBuild" &amp; "C:\cygwin64\WebkitLibraries" respectively.&nbsp;</div>
<div><br></div>
<div>The build output seems to go to a mix of C:\cygwin64\WebkitBuild and C:\cygwin64\home\isaac\WebKit\WebkitBuild.</div>
<div><br></div>
<div>The build eventually fails by WTL not finding unicode\uchar.h in the include directories, e.g.:</div>
<div><br></div>
<div>C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf/text/ASCIIFastPath.h(26): fatal error C1083: Cannot open include file: 'unicode/utypes.h': No such file or directory (compiling source file C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\Assertions.cpp) [C:\cygwin64\home\isaac\WebKit\WebKitBuild\Release\Source\WTF\wtf\WTF.vcxproj]<br>
</div>
<div><br></div>
<div>Looking into the generated project files the additional include directories are (if I have not defined WEBKIT_OUTPUTDIR or WEBKIT_LIBRARIES):&nbsp;</div>
</div>
<div><br></div>
<div>If do have WEBKIT_OUTPUTDIR and WEBKIT_LIBRARIES defined:</div>
<div><br></div>
<div>The directories aren't specified correctly, i.e:</div>
<div><br></div>
<div>What am I doing wrong here?</div>
<div><br></div>
<div>Is there a more complete and up-to-date guide on building the wincairo port with visual studio 2015?</div>
<div><br></div>
<div><br></div>
<div>Cheers,</div>
<div>Isaac</div>
<div><br></div>
</div>
</div></div>

19 Oct 23:31 2015

Apologies if my attempt at due diligence before posting here was insufficient.

I'm seeing this bug in my recently-released iOS Cordova App (lots of WebKit use) on an iOS 9.0.2 device:

It was fixed on 2015-7-29, but how am I to know whether or not that bugfix made it into iOS 9.0.2?
If it didn't, I suppose I can call this "not my fault" and move on. (Unless there's a workaround, but I see no mention of one.)
If it did, I should probably dig deeper or maybe reopen the bug.

Thanks,
Grant
<div><div dir="ltr">Apologies if my attempt at due diligence before posting here was insufficient.<div><br></div>
<div>I'm seeing this bug in my recently-released iOS Cordova App (lots of WebKit use) on an iOS 9.0.2 device:</div>
<div>
<a href="https://bugs.webkit.org/show_bug.cgi?id=147418">https://bugs.webkit.org/show_bug.cgi?id=147418</a><br>
</div>
<div><br></div>
<div>It was fixed on 2015-7-29, but how am I to know whether or not that bugfix made it into iOS 9.0.2?</div>
<div>If it didn't, I suppose I can call this "not my fault" and move on. (Unless there's a workaround, but I see no mention of one.)</div>
<div>If it did, I should probably dig deeper or maybe reopen the bug.</div>
<div><br></div>
<div><br></div>
<div>Thanks,</div>
<div>Grant</div>
</div></div>

28 Sep 13:34 2015

Hi all,

I'm developing browser-like application for device having only keyboard input. I've enabled spatial

Now I have a page with "exit" link in top right corner. It happens to be the first one in focus chain, but I'd
like to avoid having it as default focus element. I cannot modify page contents, and also I'd like to avoid
using custom JS to set focus element.

I see two ways to solve my problem:

1. Somehow make spatial navigation algorithm start from top-left corner (people usually avoid putting
"exit" links in this place of their pages). If I press "right" key, focus is put to the middle of the page on
vertical axis. Is it possible to make it start from top-left corner (by sending some key event or programmatically)?

2. Put all links later in tab chain than other focusable elements. Not sure it will help if user presses
"down" key because link still will be topmost element.

Any ideas?

--

--
Regards,
Konstantin


Gmane