Commit cb13ca29 authored by Alberto Garcia's avatar Alberto Garcia
Browse files

New upstream version 2.24.3

parent 833967c3
......@@ -168,7 +168,7 @@
<td class="property_type">
<a class="link" href="JSCContext.html" title="JSCContext"><span class="type">JSCContext</span></a> *</td>
<td class="property_name"><a class="link" href="JSCClass.html#JSCClass--context" title="The “context” property">context</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
<td class="property_flags">Write / Construct Only</td>
</tr>
<tr>
<td class="property_type">
......@@ -1173,7 +1173,7 @@ to provide a custom implementation for the class. All virtual functions are opti
<a name="JSCClass--context"></a><h3>The <code class="literal">“context”</code> property</h3>
<pre class="programlisting"> “context” <a class="link" href="JSCContext.html" title="JSCContext"><span class="type">JSCContext</span></a> *</pre>
<p>The <a class="link" href="JSCContext.html" title="JSCContext"><span class="type">JSCContext</span></a> in which the class was registered.</p>
<p>Flags: Read / Write / Construct Only</p>
<p>Flags: Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
......
......@@ -14,7 +14,7 @@
<div class="titlepage">
<div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">JavaScriptCore GLib Reference Manual</p></th></tr></table></div>
<div><p class="releaseinfo">for JavaScriptCore 2.24.2</p></div>
<div><p class="releaseinfo">for JavaScriptCore 2.24.3</p></div>
</div>
<hr>
</div>
......
......@@ -175,7 +175,7 @@ have included when compiling your code.</p>
<hr>
<div class="refsect2">
<a name="JSC-MICRO-VERSION:CAPS"></a><h3>JSC_MICRO_VERSION</h3>
<pre class="programlisting">#define JSC_MICRO_VERSION (2)
<pre class="programlisting">#define JSC_MICRO_VERSION (3)
</pre>
</div>
</div>
......
......@@ -1509,7 +1509,7 @@ webkit_settings_get_enable_html5_database
</div>
<div class="refsect3">
<a name="webkit-settings-get-enable-html5-database.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> If HTML5 database support is enabled or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if IndexedDB support is enabled or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
</div>
<hr>
......@@ -4939,11 +4939,7 @@ http://www.w3.org/TR/fullscreen/</p>
<div class="refsect2">
<a name="WebKitSettings--enable-html5-database"></a><h3>The <code class="literal">“enable-html5-database”</code> property</h3>
<pre class="programlisting"> “enable-html5-database” <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Whether to enable HTML5 client-side SQL database support. Client-side
SQL database allows web pages to store structured data and be able to
use SQL to manipulate that data asynchronously.</p>
<p>HTML5 database specification is available at
http://www.w3.org/TR/webdatabase/.</p>
<p>Whether to enable HTML5 client-side SQL database support (IndexedDB).</p>
<p>Flags: Read / Write / Construct</p>
<p>Default value: TRUE</p>
</div>
......
......@@ -335,7 +335,7 @@ for the given <em class="parameter"><code>types</code></em>
<tr>
<td class="enum_member_name"><p><a name="WEBKIT-WEBSITE-DATA-WEBSQL-DATABASES:CAPS"></a>WEBKIT_WEBSITE_DATA_WEBSQL_DATABASES</p></td>
<td class="enum_member_description">
<p>WebSQL databases.</p>
<p>WebSQL databases. Deprecated 2.24</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
......
......@@ -550,6 +550,10 @@ is ephemeral. </p>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
webkit_website_data_manager_get_websql_directory
(<em class="parameter"><code><a class="link" href="WebKitWebsiteDataManager.html" title="WebKitWebsiteDataManager"><span class="type">WebKitWebsiteDataManager</span></a> *manager</code></em>);</pre>
<div class="warning">
<p><code class="literal">webkit_website_data_manager_get_websql_directory</code> has been deprecated since version 2.24. and should not be used in newly-written code.</p>
<p>WebSQL is no longer supported. Use IndexedDB instead.</p>
</div>
<p>Get the <a class="link" href="WebKitWebsiteDataManager.html#WebKitWebsiteDataManager--websql-directory" title="The “websql-directory” property"><span class="type">“websql-directory”</span></a> property.</p>
<div class="refsect3">
<a name="webkit-website-data-manager-get-websql-directory.parameters"></a><h4>Parameters</h4>
......@@ -994,6 +998,10 @@ parameters to configure data directories will be ignored.</p>
<a name="WebKitWebsiteDataManager--websql-directory"></a><h3>The <code class="literal">“websql-directory”</code> property</h3>
<pre class="programlisting"> “websql-directory” <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>The directory where WebSQL databases will be stored.</p>
<div class="warning">
<p><code class="literal">WebKitWebsiteDataManager:websql-directory</code> has been deprecated since version 2.24. and should not be used in newly-written code.</p>
<p>WebSQL is no longer supported. Use IndexedDB instead.</p>
</div>
<p>Flags: Read / Write / Construct Only</p>
<p>Default value: NULL</p>
<p class="since">Since: <a class="link" href="api-index-2-10.html#api-index-2.10">2.10</a></p>
......
......@@ -131,6 +131,14 @@
</dt>
<dd></dd>
<dt>
<a class="link" href="WebKitWebsiteDataManager.html#WebKitWebsiteDataManager--websql-directory" title="The “websql-directory” property">WebKitWebsiteDataManager:websql-directory</a>, object property in <a class="link" href="WebKitWebsiteDataManager.html" title="WebKitWebsiteDataManager">WebKitWebsiteDataManager</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="WebKitWebsiteDataManager.html#webkit-website-data-manager-get-websql-directory" title="webkit_website_data_manager_get_websql_directory ()">webkit_website_data_manager_get_websql_directory</a>, function in <a class="link" href="WebKitWebsiteDataManager.html" title="WebKitWebsiteDataManager">WebKitWebsiteDataManager</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="WebKitWebView.html#WebKitWebView-web-process-crashed" title="The “web-process-crashed” signal">WebKitWebView::web-process-crashed</a>, object signal in <a class="link" href="WebKitWebView.html" title="WebKitWebView">WebKitWebView</a>
</dt>
<dd></dd>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -14,7 +14,7 @@
<div class="titlepage">
<div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">WebKitGTK Reference Manual</p></th></tr></table></div>
<div><p class="releaseinfo">for WebKitGTK 2.24.2</p></div>
<div><p class="releaseinfo">for WebKitGTK 2.24.3</p></div>
</div>
<hr>
</div>
......
......@@ -213,7 +213,7 @@ against at application run time.</p>
<hr>
<div class="refsect2">
<a name="WEBKIT-MICRO-VERSION:CAPS"></a><h3>WEBKIT_MICRO_VERSION</h3>
<pre class="programlisting">#define WEBKIT_MICRO_VERSION (2)
<pre class="programlisting">#define WEBKIT_MICRO_VERSION (3)
</pre>
<p>Like <a class="link" href="webkit2gtk-4.0-WebKitVersion.html#webkit-get-micro-version" title="webkit_get_micro_version ()"><code class="function">webkit_get_micro_version()</code></a>, but from the headers used at
application compile time, rather than from the library linked
......
......@@ -931,7 +931,7 @@
<keyword type="function" name="webkit_website_data_manager_get_disk_cache_directory ()" link="WebKitWebsiteDataManager.html#webkit-website-data-manager-get-disk-cache-directory" since="2.10"/>
<keyword type="function" name="webkit_website_data_manager_get_offline_application_cache_directory ()" link="WebKitWebsiteDataManager.html#webkit-website-data-manager-get-offline-application-cache-directory" since="2.10"/>
<keyword type="function" name="webkit_website_data_manager_get_indexeddb_directory ()" link="WebKitWebsiteDataManager.html#webkit-website-data-manager-get-indexeddb-directory" since="2.10"/>
<keyword type="function" name="webkit_website_data_manager_get_websql_directory ()" link="WebKitWebsiteDataManager.html#webkit-website-data-manager-get-websql-directory" since="2.10"/>
<keyword type="function" name="webkit_website_data_manager_get_websql_directory ()" link="WebKitWebsiteDataManager.html#webkit-website-data-manager-get-websql-directory" deprecated="2.24. WebSQL is no longer supported. Use IndexedDB instead." since="2.10"/>
<keyword type="function" name="webkit_website_data_manager_get_cookie_manager ()" link="WebKitWebsiteDataManager.html#webkit-website-data-manager-get-cookie-manager" since="2.16"/>
<keyword type="function" name="webkit_website_data_manager_fetch ()" link="WebKitWebsiteDataManager.html#webkit-website-data-manager-fetch" since="2.16"/>
<keyword type="function" name="webkit_website_data_manager_fetch_finish ()" link="WebKitWebsiteDataManager.html#webkit-website-data-manager-fetch-finish" since="2.16"/>
......
......@@ -14,7 +14,7 @@
<div class="titlepage">
<div>
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">WebKitDOMGTK+ Reference Manual</p></th></tr></table></div>
<div><p class="releaseinfo">for WebKitDOMGTK+ 2.24.2</p></div>
<div><p class="releaseinfo">for WebKitDOMGTK+ 2.24.3</p></div>
</div>
<hr>
</div>
......
=================
WebKitGTK 2.24.3
=================
What's new in WebKitGTK 2.24.3?
- Deprecate WebSQL APIs.
- Make Previous/Next gesture work in RTL mode.
- Fix content disappearing when using CSS transforms.
- Fix rendering artifacts in youtube volume button.
- Fix trapezoid artifact in github comment box.
- Fix video pause that sometimes caused to skip to finish.
- Fix volume level changes when playing a video.
- Fix HLS streams being slow to start.
- Fix some radio streams that could not be played.
- Fix the build with older versions of GStreamer.
- Fix the build with video and audio disabled.
- Fix several crashes and rendering issues.
- Translation updates: Brazilian Portuguese.
=================
WebKitGTK 2.24.2
=================
......
......@@ -207,7 +207,7 @@ JSObjectRef JSCCallbackFunction::construct(JSContextRef callerContext, size_t ar
case G_TYPE_BOXED:
case G_TYPE_OBJECT:
if (auto* ptr = returnValue.data[0].v_pointer)
return toRef(jscClassGetOrCreateJSWrapper(m_class.get(), ptr));
return toRef(jscClassGetOrCreateJSWrapper(m_class.get(), context.get(), ptr));
*exception = toRef(JSC::createTypeError(toJS(jsContext), "constructor returned null"_s));
break;
default:
......
......@@ -56,14 +56,13 @@ enum {
};
typedef struct _JSCClassPrivate {
JSCContext* context;
JSGlobalContextRef context;
CString name;
JSClassRef jsClass;
JSCClassVTable* vtable;
GDestroyNotify destroyFunction;
JSCClass* parentClass;
JSC::Weak<JSC::JSObject> prototype;
HashMap<CString, JSC::Weak<JSC::JSObject>> constructors;
} JSCClassPrivate;
struct _JSCClass {
......@@ -283,9 +282,6 @@ static void jscClassGetProperty(GObject* object, guint propID, GValue* value, GP
JSCClass* jscClass = JSC_CLASS(object);
switch (propID) {
case PROP_CONTEXT:
g_value_set_object(value, jscClass->priv->context);
break;
case PROP_NAME:
g_value_set_string(value, jscClass->priv->name.data());
break;
......@@ -303,7 +299,7 @@ static void jscClassSetProperty(GObject* object, guint propID, const GValue* val
switch (propID) {
case PROP_CONTEXT:
jscClass->priv->context = JSC_CONTEXT(g_value_get_object(value));
jscClass->priv->context = jscContextGetJSContext(JSC_CONTEXT(g_value_get_object(value)));
break;
case PROP_NAME:
jscClass->priv->name = g_value_get_string(value);
......@@ -347,7 +343,7 @@ static void jsc_class_class_init(JSCClassClass* klass)
"JSCContext",
"JSC Context",
JSC_TYPE_CONTEXT,
static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)));
static_cast<GParamFlags>(WEBKIT_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)));
/**
* JSCClass:name:
......@@ -492,11 +488,11 @@ GRefPtr<JSCClass> jscClassCreate(JSCContext* context, const char* name, JSCClass
JSClassDefinition prototypeDefinition = kJSClassDefinitionEmpty;
prototypeDefinition.className = prototypeName.get();
JSClassRef prototypeClass = JSClassCreate(&prototypeDefinition);
priv->prototype = jscContextGetOrCreateJSWrapper(priv->context, prototypeClass);
priv->prototype = jscContextGetOrCreateJSWrapper(context, prototypeClass);
JSClassRelease(prototypeClass);
if (priv->parentClass)
JSObjectSetPrototype(jscContextGetJSContext(priv->context), toRef(priv->prototype.get()), toRef(priv->parentClass->priv->prototype.get()));
JSObjectSetPrototype(jscContextGetJSContext(context), toRef(priv->prototype.get()), toRef(priv->parentClass->priv->prototype.get()));
return jscClass;
}
......@@ -505,16 +501,16 @@ JSClassRef jscClassGetJSClass(JSCClass* jscClass)
return jscClass->priv->jsClass;
}
JSC::JSObject* jscClassGetOrCreateJSWrapper(JSCClass* jscClass, gpointer wrappedObject)
JSC::JSObject* jscClassGetOrCreateJSWrapper(JSCClass* jscClass, JSCContext* context, gpointer wrappedObject)
{
JSCClassPrivate* priv = jscClass->priv;
return jscContextGetOrCreateJSWrapper(priv->context, priv->jsClass, toRef(priv->prototype.get()), wrappedObject, priv->destroyFunction);
return jscContextGetOrCreateJSWrapper(context, priv->jsClass, toRef(priv->prototype.get()), wrappedObject, priv->destroyFunction);
}
JSGlobalContextRef jscClassCreateContextWithJSWrapper(JSCClass* jscClass, gpointer wrappedObject)
JSGlobalContextRef jscClassCreateContextWithJSWrapper(JSCClass* jscClass, JSCContext* context, gpointer wrappedObject)
{
JSCClassPrivate* priv = jscClass->priv;
return jscContextCreateContextWithJSWrapper(priv->context, priv->jsClass, toRef(priv->prototype.get()), wrappedObject, priv->destroyFunction);
return jscContextCreateContextWithJSWrapper(context, priv->jsClass, toRef(priv->prototype.get()), wrappedObject, priv->destroyFunction);
}
void jscClassInvalidate(JSCClass* jscClass)
......@@ -562,17 +558,17 @@ static GRefPtr<JSCValue> jscClassCreateConstructor(JSCClass* jscClass, const cha
else
closure = adoptGRef(g_cclosure_new(callback, userData, reinterpret_cast<GClosureNotify>(reinterpret_cast<GCallback>(destroyNotify))));
JSCClassPrivate* priv = jscClass->priv;
JSC::ExecState* exec = toJS(jscContextGetJSContext(priv->context));
JSC::ExecState* exec = toJS(priv->context);
JSC::VM& vm = exec->vm();
JSC::JSLockHolder locker(vm);
auto* functionObject = JSC::JSCCallbackFunction::create(vm, exec->lexicalGlobalObject(), String::fromUTF8(name),
JSC::JSCCallbackFunction::Type::Constructor, jscClass, WTFMove(closure), returnType, WTFMove(parameters));
auto constructor = jscContextGetOrCreateValue(priv->context, toRef(functionObject));
GRefPtr<JSCValue> prototype = jscContextGetOrCreateValue(priv->context, toRef(priv->prototype.get()));
auto context = jscContextGetOrCreate(priv->context);
auto constructor = jscContextGetOrCreateValue(context.get(), toRef(functionObject));
GRefPtr<JSCValue> prototype = jscContextGetOrCreateValue(context.get(), toRef(priv->prototype.get()));
auto nonEnumerable = static_cast<JSCValuePropertyFlags>(JSC_VALUE_PROPERTY_CONFIGURABLE | JSC_VALUE_PROPERTY_WRITABLE);
jsc_value_object_define_property_data(constructor.get(), "prototype", nonEnumerable, prototype.get());
jsc_value_object_define_property_data(prototype.get(), "constructor", nonEnumerable, constructor.get());
priv->constructors.set(name, functionObject);
return constructor;
}
......@@ -711,13 +707,14 @@ static void jscClassAddMethod(JSCClass* jscClass, const char* name, GCallback ca
{
JSCClassPrivate* priv = jscClass->priv;
GRefPtr<GClosure> closure = adoptGRef(g_cclosure_new(callback, userData, reinterpret_cast<GClosureNotify>(reinterpret_cast<GCallback>(destroyNotify))));
JSC::ExecState* exec = toJS(jscContextGetJSContext(priv->context));
JSC::ExecState* exec = toJS(priv->context);
JSC::VM& vm = exec->vm();
JSC::JSLockHolder locker(vm);
auto* functionObject = toRef(JSC::JSCCallbackFunction::create(vm, exec->lexicalGlobalObject(), String::fromUTF8(name),
JSC::JSCCallbackFunction::Type::Method, jscClass, WTFMove(closure), returnType, WTFMove(parameters)));
auto method = jscContextGetOrCreateValue(priv->context, functionObject);
GRefPtr<JSCValue> prototype = jscContextGetOrCreateValue(priv->context, toRef(priv->prototype.get()));
auto context = jscContextGetOrCreate(priv->context);
auto method = jscContextGetOrCreateValue(context.get(), functionObject);
GRefPtr<JSCValue> prototype = jscContextGetOrCreateValue(context.get(), toRef(priv->prototype.get()));
auto nonEnumerable = static_cast<JSCValuePropertyFlags>(JSC_VALUE_PROPERTY_CONFIGURABLE | JSC_VALUE_PROPERTY_WRITABLE);
jsc_value_object_define_property_data(prototype.get(), name, nonEnumerable, method.get());
}
......@@ -862,6 +859,7 @@ void jsc_class_add_property(JSCClass* jscClass, const char* name, GType property
JSCClassPrivate* priv = jscClass->priv;
g_return_if_fail(priv->context);
GRefPtr<JSCValue> prototype = jscContextGetOrCreateValue(priv->context, toRef(priv->prototype.get()));
auto context = jscContextGetOrCreate(priv->context);
GRefPtr<JSCValue> prototype = jscContextGetOrCreateValue(context.get(), toRef(priv->prototype.get()));
jsc_value_object_define_property_accessor(prototype.get(), name, JSC_VALUE_PROPERTY_CONFIGURABLE, propertyType, getter, setter, userData, destroyNotify);
}
......@@ -27,6 +27,6 @@
GRefPtr<JSCClass> jscClassCreate(JSCContext*, const char*, JSCClass*, JSCClassVTable*, GDestroyNotify);
JSClassRef jscClassGetJSClass(JSCClass*);
JSC::JSObject* jscClassGetOrCreateJSWrapper(JSCClass*, gpointer);
JSGlobalContextRef jscClassCreateContextWithJSWrapper(JSCClass*, gpointer);
JSC::JSObject* jscClassGetOrCreateJSWrapper(JSCClass*, JSCContext*, gpointer);
JSGlobalContextRef jscClassCreateContextWithJSWrapper(JSCClass*, JSCContext*, gpointer);
void jscClassInvalidate(JSCClass*);
......@@ -878,7 +878,7 @@ JSCValue* jsc_context_evaluate_in_object(JSCContext* context, const char* code,
g_return_val_if_fail(object && !*object, nullptr);
JSRetainPtr<JSGlobalContextRef> objectContext(Adopt,
instance ? jscClassCreateContextWithJSWrapper(objectClass, instance) : JSGlobalContextCreateInGroup(jscVirtualMachineGetContextGroup(context->priv->vm.get()), nullptr));
instance ? jscClassCreateContextWithJSWrapper(objectClass, context, instance) : JSGlobalContextCreateInGroup(jscVirtualMachineGetContextGroup(context->priv->vm.get()), nullptr));
JSC::ExecState* exec = toJS(objectContext.get());
JSC::VM& vm = exec->vm();
auto* jsObject = vm.vmEntryGlobalObject(exec);
......
......@@ -602,7 +602,7 @@ JSCValue* jsc_value_new_object(JSCContext* context, gpointer instance, JSCClass*
g_return_val_if_fail(JSC_IS_CONTEXT(context), nullptr);
g_return_val_if_fail(!instance || JSC_IS_CLASS(jscClass), nullptr);
return jscContextGetOrCreateValue(context, instance ? toRef(jscClassGetOrCreateJSWrapper(jscClass, instance)) : JSObjectMake(jscContextGetJSContext(context), nullptr, nullptr)).leakRef();
return jscContextGetOrCreateValue(context, instance ? toRef(jscClassGetOrCreateJSWrapper(jscClass, context, instance)) : JSObjectMake(jscContextGetJSContext(context), nullptr, nullptr)).leakRef();
}
/**
......
......@@ -458,11 +458,11 @@ public:
struct RealTypes {
int64_t m_from;
int64_t m_to;
RegisterID m_compareRegister;
JumpType m_type : 8;
JumpLinkType m_linkType : 8;
Condition m_condition : 4;
unsigned m_bitNumber : 6;
RegisterID m_compareRegister : 6;
bool m_is64Bit : 1;
} realTypes;
struct CopyTypes {
......
......@@ -28,6 +28,7 @@
#if ENABLE(ASSEMBLER) && OS(LINUX)
#include <array>
#include <elf.h>
#include <fcntl.h>
#include <mutex>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment