Changeset 104757 in webkit


Ignore:
Timestamp:
Jan 11, 2012 3:56:24 PM (12 years ago)
Author:
abarth@webkit.org
Message:

Source/WebCore: https://bugs.webkit.org/show_bug.cgi?id=75860
[Chromium Mac] no background is drawn for input elements

Patch by Avi Drissman <avi@chromium.org> on 2012-01-09
Reviewed by Eric Seidel.

Reverts r104240 for Chromium. Unfortunately the code that uses Cocoa
API misbehaves when built with the 10.5 SDK, so we use SPI. For now.

  • rendering/RenderThemeChromiumMac.h:
  • rendering/RenderThemeChromiumMac.mm:

(WebCore::RenderThemeChromiumMac::paintTextField):

LayoutTests: iframe sandbox doesn't block videos from autoplaying (IETC automatic-feature-block-autoplay-video)
https://bugs.webkit.org/show_bug.cgi?id=76111

Reviewed by Eric Seidel.

Test based on video-no-autoplay.html.

  • media/no-auto-play-in-sandbox-expected.txt: Added.
  • media/no-auto-play-in-sandbox.html: Added.
  • media/resources/no-auto-play-in-sandbox-iframe.html: Added.
Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r104755 r104757  
     12012-01-11  Adam Barth  <abarth@webkit.org>
     2
     3        iframe sandbox doesn't block videos from autoplaying (IETC automatic-feature-block-autoplay-video)
     4        https://bugs.webkit.org/show_bug.cgi?id=76111
     5
     6        Reviewed by Eric Seidel.
     7
     8        Test based on video-no-autoplay.html.
     9
     10        * media/no-auto-play-in-sandbox-expected.txt: Added.
     11        * media/no-auto-play-in-sandbox.html: Added.
     12        * media/resources/no-auto-play-in-sandbox-iframe.html: Added.
     13
    1142012-01-11  Joshua Bell  <jsbell@chromium.org>
    215
  • trunk/Source/WebCore/ChangeLog

    r104756 r104757  
     12012-01-09  Avi Drissman  <avi@chromium.org>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=75860
     4        [Chromium Mac] no background is drawn for input elements
     5
     6        Reviewed by Eric Seidel.
     7
     8        Reverts r104240 for Chromium. Unfortunately the code that uses Cocoa
     9        API misbehaves when built with the 10.5 SDK, so we use SPI. For now.
     10
     11        * rendering/RenderThemeChromiumMac.h:
     12        * rendering/RenderThemeChromiumMac.mm:
     13        (WebCore::RenderThemeChromiumMac::paintTextField):
     14
     15<<<<<<< .mine
     162012-01-11  Adam Barth  <abarth@webkit.org>
     17
     18        iframe sandbox doesn't block videos from autoplaying (IETC automatic-feature-block-autoplay-video)
     19        https://bugs.webkit.org/show_bug.cgi?id=76111
     20
     21        Reviewed by Eric Seidel.
     22
     23        Test: media/no-auto-play-in-sandbox.html
     24
     25        * dom/SecurityContext.h:
     26            - Add a flag for sandboxing automatic features, per the HTML5 spec.
     27        * html/HTMLMediaElement.cpp:
     28        (WebCore::HTMLMediaElement::setReadyState):
     29            - Implement requirement in the HTML5 spec to not autoplay media
     30              when automatic features are sandboxed.
     31
     32=======
    1332012-01-11  Nate Chapin  <japhet@chromium.org>
    234
     
    4173        * storage/IDBObjectStoreBackendImpl.cpp:
    4274
     75>>>>>>> .r104756
    43762012-01-11  Greg Billock  <gbillock@google.com>
    4477
  • trunk/Source/WebCore/dom/SecurityContext.h

    r100117 r104757  
    3939
    4040enum SandboxFlag {
     41    // See http://www.whatwg.org/specs/web-apps/current-work/#attr-iframe-sandbox for a list of the sandbox flags.
    4142    SandboxNone = 0,
    4243    SandboxNavigation = 1,
     
    4647    SandboxScripts = 1 << 4,
    4748    SandboxTopNavigation = 1 << 5,
    48     SandboxPopups = 1 << 6,
     49    SandboxPopups = 1 << 6, // See https://www.w3.org/Bugs/Public/show_bug.cgi?id=12393
     50    SandboxAutomaticFeatures = 1 << 7,
     51    // FIXME: Add http://www.whatwg.org/specs/web-apps/current-work/#sandboxed-seamless-iframes-flag when we implement seamless.
    4952    SandboxAll = -1 // Mask with all bits set to 1.
    5053};
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r104669 r104757  
    13991399            scheduleEvent(eventNames().playingEvent);
    14001400
    1401         if (m_autoplaying && m_paused && autoplay()) {
     1401        if (m_autoplaying && m_paused && autoplay() && !document()->isSandboxed(SandboxAutomaticFeatures)) {
    14021402            m_paused = false;
    14031403            invalidateCachedTime();
Note: See TracChangeset for help on using the changeset viewer.