[webkit-dev] Disable WebKit2 Security

2014-11-24 Thread Koen Bok
I'm trying to disable some web security for my Mac desktop app. Currently,
if I try to load a local json file I get the error:

[Error] XMLHttpRequest cannot load file:///Users/koen/Desktop/test.json.
Cross origin requests are only supported for HTTP.

I tried setting the following two configuration options with the C api:
WKPreferencesSetWebSecurityEnabled(prefsRef, false);
WKPreferencesSetFileAccessFromFileURLsAllowed(prefsRef, true);

But none of these seem to do anything.

What am I missing?
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] webkit-dev Digest, Vol 113, Issue 19

2014-10-29 Thread Koen Bok
Unsubscribe

On Tuesday, October 28, 2014, webkit-dev-requ...@lists.webkit.org wrote:

 Send webkit-dev mailing list submissions to
 webkit-dev@lists.webkit.org javascript:;

 To subscribe or unsubscribe via the World Wide Web, visit
 https://lists.webkit.org/mailman/listinfo/webkit-dev
 or, via email, send a message with subject or body 'help' to
 webkit-dev-requ...@lists.webkit.org javascript:;

 You can reach the person managing the list at
 webkit-dev-ow...@lists.webkit.org javascript:;

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of webkit-dev digest...


 Today's Topics:

1. FOSDEM 2015 Desktops DevRoom Call for Talks (Pau Garcia i Quiles)
2. Re: [blink-dev] FOSDEM 2015 Desktops DevRoom Call for Talks
   (Levi Weintraub)
3. OS X Mavericks build failing (Bem Jones-Bey)


 --

 Message: 1
 Date: Mon, 27 Oct 2014 21:00:35 +0100
 From: Pau Garcia i Quiles pgqui...@elpauer.org javascript:;
 To: blink-...@chromium.org javascript:;,   webkit-dev@lists.webkit.org
 javascript:;
 webkit-dev@lists.webkit.org javascript:;
 Subject: [webkit-dev] FOSDEM 2015 Desktops DevRoom Call for Talks
 Message-ID:
 CAKcBokvRCmge+7y1YpHxvUBYOv=-qJH57GVmQM=00=
 tro-z...@mail.gmail.com javascript:;
 Content-Type: text/plain; charset=utf-8

  Hello,

 --8---

 FOSDEM http://www.fosdem.org is one of the largest gatherings of Free
 Software contributors in the world and happens each February in Brussels
 (Belgium). One of the tracks will be the Desktops DevRoom (formerly known
 as ?CrossDesktop DevRoom?), which will host Desktop-related talks.

 We are now inviting proposals for talks about Free/Libre/Open-source
 Software on the topics of Desktop development, Desktop applications and
 interoperability amongst Desktop Environments. This is a unique opportunity
 to show novel ideas and developments to a wide technical audience.

 Topics accepted include, but are not limited to: Enlightenment, Gnome, KDE,
 Unity, XFCE, LXQt, Windows, Mac OS X, software development for the desktop,
 general desktop matters, applications that enhance desktops and web (when
 related to desktop).

 Talks can be very specific, such as the advantages/disadvantages of
 development with Qt on Wayland over X11/Mir; or as general as predictions
 for the fusion of Desktop and web in 5 years time. Topics that are of
 interest to the users and developers of all desktop environments are
 especially welcome. The FOSDEM 2014 schedule
 https://archive.fosdem.org/2014/schedule/track/desktops/ might give you
 some inspiration.

 Please include the following information when submitting a proposal:

- Your name
- The title of your talk (please be descriptive, as titles will be
listed with around 250 from other projects)
- Short abstract of one or two paragraphs
- Short bio (with photo)
- Requested time: from 15 to 45 minutes. Normal duration is 30 minutes.
Longer duration requests must be properly justified. You may be assigned
LESS time than you request.

 The deadline for submissions is December 7th 2014. FOSDEM will be held on
 the weekend of January 31st-February 1st 2015 and the Desktops DevRoom will
 take place on Sunday, February 1st 2015. Please use the following website
 to submit your proposals: https://penta.fosdem.org/submission/FOSDEM15
 (you
 do not need to create a new Pentabarf account if you already have one from
 past years).

 You can also join the devroom?s mailing list, which is the official
 communication channel for the DevRoom: desktops-devr...@lists.fosdem.org
 javascript:;
 https://lists.fosdem.org/private/desktops-devroom/ (subscription page
 https://lists.fosdem.org/listinfo/desktops-devroom for the mailing list)

 ? The Desktops DevRoom 2015 Organization Team

 --8---


 --
 Pau Garcia i Quiles
 http://www.elpauer.org
 (Due to my workload, I may need 10 days to answer)
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 https://lists.webkit.org/pipermail/webkit-dev/attachments/20141027/10f004bc/attachment-0001.html
 

 --

 Message: 2
 Date: Mon, 27 Oct 2014 13:04:21 -0700
 From: Levi Weintraub le...@chromium.org javascript:;
 To: Pau Garcia i Quiles pgqui...@elpauer.org javascript:;
 Cc: blink-dev blink-...@chromium.org javascript:;,   
 webkit-dev@lists.webkit.org javascript:;
 webkit-dev@lists.webkit.org javascript:;
 Subject: Re: [webkit-dev] [blink-dev] FOSDEM 2015 Desktops DevRoom
 Call forTalks
 Message-ID:
 CAMLeo+GCHOYhZXtFZcoVx=
 w-5pshheq7b6np3m_bmdfsqt1...@mail.gmail.com javascript:;
 Content-Type: text/plain; charset=utf-8

 Please don't send advertisements or cross-post to these lists.

 Thanks,
 /L/

 On Mon, Oct 27, 2014 at 1:00 PM, Pau Garcia i Quiles pgqui...@elpauer.org
 javascript:;
 wrote:

  Hello,
 
  --8---
 
  

[webkit-dev] Showing the Web Inspector from Obj-C [WKWebView/OSX]

2014-10-01 Thread Koen Bok
I've been looking how to open the web inspector for a WKWebView from code,
so I can display it after clicking on a specific button in my app.

Since this commit(1) I can launch the inspector from the right click
developer menu, so I'm sure it is possible. I just can't figure out how.

My app is outside the App Store so I'm fine with using private stuff.

Thanks, Koen

[1] https://bugs.webkit.org/show_bug.cgi?id=135811
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] WKWebView Inspector in my own app

2014-08-11 Thread Koen Bok
I am looking how to show the inspector in my own mac desktop app with
WKWebViews.

I think I need to initialize an XPC or http connection to a WKWebView and
pass it to a new inspector instance, and then show it.

Can anyone maybe point me in the right direction?

PS. I also made a Stack Overflow question for this:
http://stackoverflow.com/questions/25200116/how-to-show-the-inspector-within-your-wkwebview-based-desktop-app
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] WKWebView Inspector in my own app

2014-08-11 Thread Koen Bok
This is great! Thank you very very much.

On Monday, August 11, 2014, Joseph Pecoraro pecor...@apple.com wrote:


 On Aug 11, 2014, at 12:10 PM, Joseph Pecoraro pecor...@apple.com
 javascript:_e(%7B%7D,'cvml','pecor...@apple.com'); wrote:


 On Aug 11, 2014, at 3:23 AM, Koen Bok k...@madebysofa.com
 javascript:_e(%7B%7D,'cvml','k...@madebysofa.com'); wrote:

 I am looking how to show the inspector in my own mac desktop app with
 WKWebViews.


 You are correct that currently the only supported way to inspect a
 WKWebView is through Safari with an entitlement in your app (see the WWDC
 talk for more information).


 I think I need to initialize an XPC or http connection to a WKWebView and
 pass it to a new inspector instance, and then show it.

 Can anyone maybe point me in the right direction?


 From a WebKit Internals perspective, you just need to enable WebCore's
 Settings::developerExtrasEnabled setting to get what you want. No XPC/HTTP
 connections necessary.

 The WKWebView API allows toggling WebCore's Settings via the WKPreferences
 interface (available on WKWebViewConfiguration).  Nothing currently exists
 for the developer extras setting. It should be easy to add plumbing for a
 new setting to toggle the Developer Extras Enabled setting at least as a
 private API.


 I filed and put a patch up on:
 https://webkit.org/b/135811 Add Private WKPreferences API for developer
 extras (show inspector)

 - Joe

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev