Changeset 57178 in webkit


Ignore:
Timestamp:
Apr 6, 2010 4:36:41 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-06 Chris Evans <cevans@chromium.org>

Reviewed by Adam Barth.

Add test for javascript:window.open() popup blocker bypass.
https://bugs.webkit.org/show_bug.cgi?id=37138

  • fast/events/popup-blocked-from-window-open.html: added
  • fast/events/popup-blocked-from-window-open-expected.txt: added

2010-04-06 Chris Evans <cevans@chromium.org>

Reviewed by Adam Barth.

Use the new UserGestureIndictor to process javascript:window.open()

https://bugs.webkit.org/show_bug.cgi?id=37138

  • bindings/v8/ScriptController.cpp (WebCore::ScriptController::processingUserGesture): Use the new UserGestureIndicator when processing a javascript:window.open()
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r57177 r57178  
     12010-04-06  Chris Evans  <cevans@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Add test for javascript:window.open() popup blocker bypass.
     6        https://bugs.webkit.org/show_bug.cgi?id=37138
     7
     8        * fast/events/popup-blocked-from-window-open.html: added
     9        * fast/events/popup-blocked-from-window-open-expected.txt: added
     10
    1112010-04-06  Adam Barth  <abarth@webkit.org>
    212
  • trunk/WebCore/ChangeLog

    r57176 r57178  
     12010-04-06  Chris Evans  <cevans@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Use the new UserGestureIndictor to process javascript:window.open()
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=37138
     8
     9        * bindings/v8/ScriptController.cpp
     10        (WebCore::ScriptController::processingUserGesture):
     11          Use the new UserGestureIndicator when processing a
     12          javascript:window.open()
     13
    1142010-04-06  Vangelis Kokkevis  <vangelis@chromium.org>
    215
  • trunk/WebCore/bindings/v8/ScriptController.cpp

    r57045 r57178  
    193193            return true;
    194194    } else if (m_sourceURL && m_sourceURL->isNull() && !activeProxy->timerCallback()) {
    195         // This is the <a href="javascript:window.open('...')> case -> we let it through.
    196         return true;
     195        // This is the javascript:window.open('...') case -> we let it through if it was a <a href> user click and not if it was window.open().
     196        return UserGestureIndicator::processingUserGesture();
    197197    }
    198198
Note: See TracChangeset for help on using the changeset viewer.