1. 27 May, 2017 2 commits
  2. 18 May, 2017 5 commits
  3. 28 Mar, 2017 1 commit
  4. 27 Mar, 2017 1 commit
  5. 22 Mar, 2017 1 commit
  6. 17 Nov, 2016 1 commit
  7. 01 Nov, 2016 1 commit
  8. 28 Oct, 2016 1 commit
  9. 27 Oct, 2016 27 commits
    • carlosgc@webkit.org's avatar
      Merge r207848 - REGRESSION (r178265): XSS Auditor fails to block document.write() of incomplete tag · 43929dfd
      carlosgc@webkit.org authored
      Reviewed by Darin Adler.
      During the tokenization process of an HTML tag the start and end positions of each of its
      attributes is tracked so that the XSS Auditor can request a snippet around a suspected
      injected attribute. We need to take care to consider document.write() boundaries when
      tracking the start and end positions of each HTML tag and attribute so that the XSS Auditor
      receives the correct snippet. Following r178265 we no longer consider document.write()
      boundaries when tracking the start and end positions of attributes. So, the substring
      represented by the start and end positions of an attribute may correspond to some other
      attribute in the tag. Therefore the XSS Auditor may fail to block an injection because the
      snippet it requested may not be the snippet that it intended to request.
      Tests: http/tests/security/xssAuditor/dom-write-location-dom-write-open-img-onerror.html
      * html/parser/HTMLSourceTracker.cpp:
      (WebCore::HTMLSourceTracker::startToken): Set the attribute base offset to be the token
      start position.
      (WebCore::HTMLSourceTracker::source): Use the specified attribute start position as-is. We no
      longer adjust it here because it was adjusted with respect to the attribute base offset, which
      takes into account document.write() boundaries.
      * html/parser/HTMLToken.h:
      (WebCore::HTMLToken::setAttributeBaseOffset): Added.
      (WebCore::HTMLToken::beginAttribute): Subtract attribute base offset from the specified offset.
      (WebCore::HTMLToken::endAttribute): Ditto.
      * html/parser/HTMLTokenizer.h:
      (WebCore::HTMLTokenizer::setTokenAttributeBaseOffset): Added.
      Add tests to ensure that the XSS Auditor blocks a document.write() of an incomplete HTML image tag.
      * http/tests/security/xssAuditor/dom-write-location-dom-write-open-img-onerror-expected.txt: Added.
      * http/tests/security/xssAuditor/dom-write-location-dom-write-open-img-onerror.html: Added.
      * http/tests/security/xssAuditor/dom-write-location-open-img-onerror-expected.txt: Added.
      * http/tests/security/xssAuditor/dom-write-location-open-img-onerror.html: Added.
      * http/tests/security/xssAuditor/nested-dom-write-location-open-img-onerror-expected.txt: Added.
      * http/tests/security/xssAuditor/nested-dom-write-location-open-img-onerror.html: Added.
      * http/tests/security/xssAuditor/resources/echo-nested-dom-write-location.html: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207842 - jsc.cpp is leaking memory allocated by readline in runInteractive · 84f796ac
      carlosgc@webkit.org authored
      According to http://web.mit.edu/gnu/doc/html/rlman_2.html,
      "The line readline returns is allocated with malloc ();
      you should free () the line when you are done with it."
      The memory allocated by readline is not being freed when it should.
      Patch by Christopher Reid <Christopher.Reid@am.sony.com> on 2016-10-25
      Reviewed by Mark Lam.
      * jsc.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207804 - Do not update selection rect on dirty lineboxes. · 51f253d4
      carlosgc@webkit.org authored
      Reviewed by Simon Fraser.
      In certain cases RenderBlock::updateFirstLetter() triggers
      unwanted render tree mutation while the caller assumes intact renderers.
      This patch ensures that no renderers gets destroyed while computing the preferred widths
      when we are outside of layout context.
      Test: fast/css-generated-content/dynamic-first-letter-selection-clear-crash.html
      * rendering/RenderBlock.cpp:
      * rendering/RenderBlock.h:
      * rendering/RenderListItem.cpp:
      * rendering/RenderRubyRun.cpp:
      * rendering/RenderRubyRun.h:
      * rendering/RenderTable.cpp:
      * rendering/RenderTable.h:
      * rendering/svg/RenderSVGText.cpp:
      * rendering/svg/RenderSVGText.h:
      * fast/css-generated-content/dynamic-first-letter-selection-clear-crash-expected.txt: Added.
      * fast/css-generated-content/dynamic-first-letter-selection-clear-crash.html: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207683 - Do not mutate the render tree while collecting selection repaint rects. · b1a3062f
      carlosgc@webkit.org authored
      Reviewed by David Hyatt.
      RenderListItem not only mutates the tree while in layout but it also uses
      the old descendant context to find the insertion point.
      This patch strictly ensures that we only do it while in layout and never
      in other cases such as collecting repaint rects.
      This gets redundant when webkit.org/b/163789 is fixed.
      Test: fast/lists/crash-when-list-marker-is-moved-during-selection.html
      * rendering/RenderListItem.cpp:
      * fast/lists/crash-when-list-marker-is-moved-during-selection-expected.txt: Added.
      * fast/lists/crash-when-list-marker-is-moved-during-selection.html: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207659 - Fix JSC cast-align compiler warnings on ARMv7 · 2709e3b2
      carlosgc@webkit.org authored
      Reviewed by Mark Lam.
      Use the reinterpret_cast_ptr workaround in a few places where
      the cast alignment warning is being thrown by the GCC compiler
      when compiling for the ARMv7 architecture.
      * heap/Heap.cpp:
      * heap/HeapCell.h:
      * heap/MarkedBlock.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207658 - [GTK] Configures but fails to link with ENABLE_OPENGL=OFF · ea8c51ce
      carlosgc@webkit.org authored
      Reviewed by Michael Catanzaro.
      Remove wrong dependency of Wayland on OpenGL introduced in r190615, it should be possible to build for Wayland
      without GL.
      * Source/cmake/OptionsGTK.cmake:
      Only define sharingGLContext in PlatformDisplay if EGL or GLX are enabled.
      * platform/graphics/PlatformDisplay.cpp:
      * platform/graphics/PlatformDisplay.h:
      * platform/graphics/wayland/PlatformDisplayWayland.cpp:
      * platform/graphics/x11/PlatformDisplayX11.cpp:
      * UIProcess/API/gtk/WebKitWebViewBase.cpp:
      (webkitWebViewBaseRealize): Check TEXTURE_MAPPER_GL instead of TEXTURE_MAPPER and also ensure the current
      display is X11.
      (webkitWebViewBaseUnrealize): Ditto.
      (webkitWebViewBaseDidRelaunchWebProcess): Check TEXTURE_MAPPER_GL instead of TEXTURE_MAPPER.
      (webkitWebViewBasePageClosed): Ditto.
      * UIProcess/AcceleratedDrawingAreaProxy.cpp:
      (WebKit::AcceleratedDrawingAreaProxy::didUpdateBackingStoreState): Ditto.
      (WebKit::AcceleratedDrawingAreaProxy::waitForAndDispatchDidUpdateBackingStoreState): Check EGL is enabled before
      trying to use the WaylandCompositor.
      * UIProcess/AcceleratedDrawingAreaProxy.h:
      * UIProcess/WebProcessPool.cpp:
      (WebKit::WebProcessPool::createNewWebProcess): Ditto.
      * UIProcess/gtk/AcceleratedBackingStore.cpp:
      (WebKit::AcceleratedBackingStore::create): Ditto.
      * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
      * UIProcess/gtk/WaylandCompositor.cpp:
      * UIProcess/gtk/WaylandCompositor.h:
      * WebProcess/WebPage/AcceleratedDrawingArea.cpp:
      (WebKit::AcceleratedDrawingArea::enterAcceleratedCompositingMode): Check TEXTURE_MAPPER_GL instead of TEXTURE_MAPPER.
      * WebProcess/WebPage/AcceleratedDrawingArea.h:
      * WebProcess/WebPage/DrawingArea.h:
      * WebProcess/WebPage/DrawingArea.messages.in:
      * WebProcess/WebPage/LayerTreeHost.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207646 - bmalloc api should crash on failure to allocate when !isBmallocEnabled. · 55945402
      carlosgc@webkit.org authored
      Reviewed by Keith Miller and Filip Pizlo.
      We want to crash in bmalloc on failure to allocate even when !isBmallocEnabled.
      This is so that failures to allocate memory will manifest as crashes with a
      unique signature (i.e. as a SIGTRAP on release builds, or as a write to illegal
      address 0xbbadbeef on debug builds) and the crash will manifest inside bmalloc.
      This distinguishes allocation failures from other crashing bugs that manifest as
      SIGSEGVs due to random pointer dereferences in the clients of bmalloc.
      * bmalloc/Allocator.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207631 - Stop searching for first-letter containers at multi-column boundary. · 4cd5a6c5
      carlosgc@webkit.org authored
      We should not cross the multi-column boundary while searching for the first-letter container.
      While moving first-letter renderers to a multi-column parent, it could result in finding the wrong
      container and end up adding a new wrapper under the original container (from where we are moving the renderers).
      Reviewed by David Hyatt.
      Test: fast/css-generated-content/first-letter-move-to-multicolumn-crash.html
      * rendering/RenderBoxModelObject.cpp:
      * rendering/RenderTextFragment.cpp:
      Reviewed by David Hyatt.
      * fast/css-generated-content/first-letter-move-to-multicolumn-crash-expected.txt: Added.
      * fast/css-generated-content/first-letter-move-to-multicolumn-crash.html: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207619 - [GTK] Build fix after r207616 · df27a3ef
      carlosgc@webkit.org authored
      Reviewed by Carlos Garcia Campos.
      on the EGL headers shipped by Mesa 10.3 (shipped by Debian 8)
      * platform/graphics/wayland/PlatformDisplayWayland.cpp:
      * platform/graphics/x11/PlatformDisplayX11.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207616 - Prefer eglGetPlatformDisplay to eglGetDisplay · a039fdf6
      carlosgc@webkit.org authored
      Patch by Adam Jackson <ajax@redhat.com> on 2016-10-20
      Reviewed by Carlos Garcia Campos.
      eglGetDisplay forces the implementation to guess what kind of void* it's been handed. Different implementations
      do different things, in particular glvnd and Mesa behave differently. Fortunately there exists API to tell EGL
      what kind of display it is, so let's use it.
      * platform/graphics/wayland/PlatformDisplayWayland.cpp:
      * platform/graphics/x11/PlatformDisplayX11.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207615 - [GTK] Avoid including egl.h headers in internal headers · 5ed1464c
      carlosgc@webkit.org authored
      Reviewed by Žan Doberšek.
      egl.h includes eglplatform.h that decides the native types for the platform at compile time. However, we support
      to build with X11 and Wayland at the same time and decide what to use at runtime. Currently GLContext.h includes
      eglplatform.h after wayland-egl.h if Wayland is enabled. That means that the wayland native types are used by
      default from all cpp files including GLContext.h. It currently works in X11 because we cast the value anyway and
      for example EGLNativeWindowType is a pointer in Wayland that can be casted to unsigned long in X11 to represent
      the X Window. This is very fragile in any case, we should avoid adding egl headers in our headers and only
      include it in cpp files. But we also need to ensure we don't use X11 and Wayland in the same cpp file.
      * PlatformGTK.cmake:
      * platform/graphics/GLContext.cpp:
      * platform/graphics/GLContext.h:
      * platform/graphics/egl/GLContextEGL.cpp:
      * platform/graphics/egl/GLContextEGL.h:
      * platform/graphics/egl/GLContextEGLWayland.cpp: Added.
      * platform/graphics/egl/GLContextEGLX11.cpp: Added.
      * platform/graphics/glx/GLContextGLX.cpp:
      * platform/graphics/glx/GLContextGLX.h:
      * platform/graphics/wayland/PlatformDisplayWayland.cpp:
      * platform/graphics/x11/PlatformDisplayX11.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207977 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207614 - [GTK] Avoid strstr() when checking (E)GL extensions · 49fc205d
      carlosgc@webkit.org authored
      Reviewed by Žan Doberšek.
      Add static method GLContext::isExtensionSupported() to properly search extenstions in the given extension
      list, and use it instead of strstr().
      * platform/graphics/GLContext.cpp:
      * platform/graphics/GLContext.h:
      * platform/graphics/egl/GLContextEGL.cpp:
      * platform/graphics/glx/GLContextGLX.cpp:
      Use GLContext::isExtensionSupported() instead of strstr().
      * UIProcess/gtk/WaylandCompositor.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207590 - Wrong use of EGL_DEPTH_SIZE · aeec6440
      carlosgc@webkit.org authored
      Reviewed by Michael Catanzaro.
      What happens here is that the driver doesn't implement EGL_DEPTH_SIZE and the default value, which is 0, is
      returned. Then XCreatePixmap fails because 0 is not a valid depth. The thing is that even if EGL_DEPTH_SIZE or
      EGL_BUFFER_SIZE returned a valid depth, it still might not be supported by the default screen and XCreatePixmap
      can fail. What we need to ensure is that the depth we pass is compatible with the X display, not only with the
      EGL config, to avoid failures when creating the pixmap. So, we can use EGL_NATIVE_VISUAL_ID instead, and
      then ask X for the visual info for that id. If it isn't found then we just return before creating the pixmap,
      but if the visual is found then we can be sure that the depth of the visual will not make the pixmap creation
      fail. However, with the driver I'm using it doesn't matter how we create the pixmap that eglCreatePixmapSurface
      always fails, again with X errors that are fatal by default. Since the driver is not free, I assume it doesn't
      support eglCreatePixmapSurface or it's just buggy, so the only option we have here is trap the x errors and
      ignore them. It turns out that the X errors are not fatal in this case, because eglCreatePixmapSurface ends up
      returning a surface, and since these are offscreen contexts, it doesn't really matter if they contain an
      invalid pixmap, because we never do swap buffer on them, so just ignoring the X errors fixes the crashes and
      makes everythig work. This patch adds a helper class XErrorTrapper that allows to trap XErrors and decide what
      to do with them (ignore, warn or crash) or even not consider a particular set of errors as errors.
      * PlatformEfl.cmake: Add new file to compilation.
      * PlatformGTK.cmake: Ditto.
      * platform/graphics/egl/GLContextEGL.cpp:
      (WebCore::GLContextEGL::createPixmapContext): Use EGL_NATIVE_VISUAL_ID instead of EGL_DEPTH_SIZE to figure out
      the depth to be passed to XCreatePixmap. Also use the XErrorTrapper class to ignore all BadDrawable errors
      produced by eglCreatePixmapSurface() and only show a warning about all other X errors.
      * platform/graphics/x11/XErrorTrapper.cpp: Added.
      * platform/graphics/x11/XErrorTrapper.h: Added.
      Use XErrorTrapper class instead of the custom XErrorHandler.
      * PluginProcess/unix/PluginProcessMainUnix.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207547 - Use anonymous table row for new child at RenderTableRow::addChild() if available. · 0ff59b67
      carlosgc@webkit.org authored
      Reviewed by David Hyatt.
      We should try to prevent the continuation siblings from getting separated and inserted into
      wrapper renderers. It makes finding these continuation siblings difficult.
      This patch adds a checks for anonymous table rows so that we could find a closer common ancestor of
      beforeChild/new child.
      Test: fast/table/crash-when-table-has-continuation-and-content-inserted.html
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::showRenderObject): Add continuation information.
      * rendering/RenderTableRow.cpp:
      * fast/table/crash-when-table-has-continuation-and-content-inserted-expected.txt: Added.
      * fast/table/crash-when-table-has-continuation-and-content-inserted.html: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207534 - [GTK] [L10n] Updated Hungarian translation · 73972aa8
      carlosgc@webkit.org authored
      Patch by Gabor Kelemen <kelemeng@ubuntu.com> on 2016-10-19
      Rubber-stamped by Michael Catanzaro.
      * hu.po:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207477 - Correct Document::removeAllEventListeners · 9efa0cbf
      carlosgc@webkit.org authored
      Reviewed by Chris Dumez.
      Tested by fast/dom/node-move-to-new-document-crash-main.html.
      * dom/Document.cpp:
      (WebCore::Document::removeAllEventListeners): Clear out the wheel and
      touch event targets when clearing all data.
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207972 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207471 - SVGCSSParser: m_implicitShorthand value is not reset after... · 5d8ee15a
      carlosgc@webkit.org authored
      Merge r207471 - SVGCSSParser: m_implicitShorthand value is not reset after adding the shorthand property
      Reviewed by Simon Fraser.
      When we encounter a shorthand css property, we set m_implicitShorthand
      to true to tell addProperty() later that the individual properties are
      all set through a short hand one. We need to make sure that setting
      m_implicitShorthand to true will not be leaked after finishing parsing
      the short hand property.
      Test: fast/css/implicit-property-restore.html
      * css/parser/CSSParser.cpp:
      (WTF::ImplicitScope::ImplicitScope): Deleted.
      (WTF::ImplicitScope::~ImplicitScope): Deleted.
      Get rid of ImplicitScope and replace its calls by TemporaryChange<bool>.
      * css/parser/SVGCSSParser.cpp:
      Restore m_implicitShorthand value after setting it temporarily to true.
      * wtf/TemporaryChange.h:
      Add a new constructor to make TemporaryChange work as a restorer. The
      temporary change will happen after we construct the object.
      * fast/css/implicit-property-restore-expected.txt: Added.
      * fast/css/implicit-property-restore.html: Added.
      * fast/css/remove-shorthand-expected.txt:
      Rebase-line the test expected results because of fixing the leak of
      m_implicitShorthand. The bug was happening because "background: ..." property
      comes immediately before the "list-style: ...." property.
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207971 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207441 - [WK2][NetworkCache] PendingFrameLoad objects are sometimes leaked · 6e23bc47
      carlosgc@webkit.org authored
      Reviewed by Antti Koivisto.
      PendingFrameLoad objects are created to track frame loads and added to
      the m_pendingFrameLoads hash map. These objects are supposed to remove
      themselves from the hash map once they detect that the page load has
      finished by calling PendingFrameLoad::m_loadCompletionHandler().
      PendingFrameLoad::m_loadCompletionHandler() is called from
      markLoadAsCompleted() when we detect that the page load has finished
      via the m_loadHysteresisActivity HysteresisActivity. We call impulse()
      on the HysteresisActivity every time a subresource is loaded in the
      frame. The issue is that if no subresource is ever loaded, then we
      never call impulse() on the HysteresisActivity, which is therefore
      never started. If it nevers starts, then it nevers stops and never
      calls markLoadAsCompleted(). To address the problem, we now call
      impulse() on the HysteresisActivity as soon as we construct it.
      * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207970 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207403 - [GTK] gobject-introspection on package build with webkit2gtk... · 4b6c0298
      carlosgc@webkit.org authored
      Merge r207403 - [GTK] gobject-introspection on package build with webkit2gtk fails without active X session
      Reviewed by Carlos Garcia Campos.
      Don't call XCompositeQueryExtension() or XDamageQueryExtension()
      if m_display is NULL.
      * platform/graphics/x11/PlatformDisplayX11.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207402 - [css-grid] Disable CSS Grid Layout runtime flag by default · 9f0b20cc
      carlosgc@webkit.org authored
      Reviewed by Darin Adler.
      It was enabled in r201042, but now Safari Technology Preview
      has a UI to switch runtime flags so it doesn't need to be enabled
      by default anymore.
      * Shared/WebPreferencesDefinitions.h: Disable grid layout runtime flag
      by default.
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207391 - [GTK] Default WebKitWebsiteDataManager is always leaked in WebKitWebContext · 96393d57
      carlosgc@webkit.org authored
      Reviewed by Michael Catanzaro.
      Adopt the reference returned by webkitWebsiteDataManagerCreate().
      * UIProcess/API/gtk/WebKitWebContext.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207389 - [GTK] WebKitWebPage URI not updated after URI is modified by... · ebc6c4ae
      carlosgc@webkit.org authored
      Merge r207389 - [GTK] WebKitWebPage URI not updated after URI is modified by InjectedBundlePageResourceLoadClient::willSendRequestForFrame
      Reviewed by Michael Catanzaro.
      Update the page URI also when the load is committed.
      * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
      (getProvisionalURLForFrame): Deleted.
      Update /webkit2/WebKitWebPage/get-uri test to check that web view and page uri always match even when request is
      modified by WebKitWebPage::send-request signal.
      * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207388 - Document request not updated after willSendRequest is called for a redirect · 93874f31
      carlosgc@webkit.org authored
      Reviewed by Michael Catanzaro.
      The first willSendRequest happens before DocumentLoader::startLoadingMainResource(), that calls setRequest, but
      the second one happens after DocumentLoader::redirectReceived() and then the request is never updated again.
      Covered by GTK+ unit tests.
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::willContinueMainResourceLoadAfterRedirect): Set the new request.
      * loader/DocumentLoader.h:
      * loader/SubresourceLoader.cpp:
      (WebCore::SubresourceLoader::willSendRequestInternal): Notify the document loader when loading the main resource
      and called for a redirection.
      Update /webkit2/WebKitWebView/active-uri test to check the active URI also when modified by
      WebKitPage::send-request signal in a web extension.
      * TestWebKitAPI/Tests/WebKit2Gtk/TestLoaderClient.cpp:
      * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
      * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207964 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207376 - [GTK] Restore user agent quirk for Yahoo · 8f4c2a99
      carlosgc@webkit.org authored
      Reviewed by Carlos Garcia Campos.
      finance.yahoo.com is sending a mobile version in response to our standard user agent.
      * platform/gtk/UserAgentGtk.cpp:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207374 - CounterNode::resetRenderers is so inefficient. · 50bf615a
      carlosgc@webkit.org authored
      Reviewed by Simon Fraser.
      CounterNode::resetRenderers() removes all the associated renderers from this CounterNode
      and sets the dirty bit on them.
      This patch does all that in a loop, instead of traversing the linked tree on each removal.
      No change in functionality.
      * rendering/CounterNode.cpp:
      (WebCore::CounterNode::addRenderer): These assertions do not seem super useful.
      * rendering/CounterNode.h:
      * rendering/RenderCounter.cpp:
      (WebCore::RenderCounter::invalidate): Deleted.
      * rendering/RenderCounter.h:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207372 - 100% CPU on homedepot.com page · c4c1c7a7
      carlosgc@webkit.org authored
      Reviewed by Simon Fraser.
      The site has a keyframe animation on body. Currently this causes the animation to invalidate the
      style of the entire document.
      Animations use SyntheticStyleChange to invalidate elements when animation progresses and currently
      that causes full subtree invalidation. However animation only ever affect individual elements and
      the normal style resolution mechanism should be able to deal with things like inheritance as needed.
      Test: fast/animation/animation-style-update-size.html
      * dom/Document.cpp:
      * dom/Document.h:
          Testing support.
      * style/StyleTreeResolver.cpp:
          Don't force subtree style resolution for SyntheticStyleChange.
      * style/StyleUpdate.h:
      * testing/Internals.cpp:
      * testing/Internals.h:
      * testing/Internals.idl:
      * fast/animation/animation-style-update-size-expected.txt: Added.
      * fast/animation/animation-style-update-size.html: Added.
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    • carlosgc@webkit.org's avatar
      Merge r207351 - [CMake] Private/unsupported build options should be marked as advanced · ac269089
      carlosgc@webkit.org authored
      Reviewed by Carlos Garcia Campos.
      When checking to decide whether to mark an option as advanced, the conditional checks
      whether _WEBKIT_AVAILABLE_OPTIONS_IS_PUBLIC_${_name} is defined. It is always defined. We
      need to check its value instead.
      * Source/cmake/WebKitFeatures.cmake:
      git-svn-id: http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.14@207959 268f45cc-cd09-0410-ab3c-d52691b4dbfc