Changeset 152348 in webkit


Ignore:
Timestamp:
Jul 3, 2013 3:13:34 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

H&R Block 2010 Help window can not be reopened.
https://bugs.webkit.org/show_bug.cgi?id=118342

Patch by Zalan Bujtas <Alan Bujtas> on 2013-07-03
Reviewed by Antti Koivisto.

http://trac.webkit.org/changeset/118916 changed the window.focus() behaviour so that
only the opener can (re)focus() a particular window.
H&R Block app relies on the relaxed window.focus() rules.

Source/WebCore:

  • WebCore.exp.in:
  • platform/RuntimeApplicationChecks.cpp:

(WebCore::applicationIsHRBlock):

  • platform/RuntimeApplicationChecks.h:

Source/WebKit/mac:

  • WebView/WebView.mm:

(shouldRestrictWindowFocus):
(-[WebView _preferencesChanged:]):

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r152347 r152348  
     12013-07-03  Zalan Bujtas  <zalan@apple.com>
     2
     3        H&R Block 2010 Help window can not be reopened.
     4        https://bugs.webkit.org/show_bug.cgi?id=118342
     5
     6        Reviewed by Antti Koivisto.
     7
     8        http://trac.webkit.org/changeset/118916 changed the window.focus() behaviour so that
     9        only the opener can (re)focus() a particular window.
     10        H&R Block app relies on the relaxed window.focus() rules.
     11
     12        * WebCore.exp.in:
     13        * platform/RuntimeApplicationChecks.cpp:
     14        (WebCore::applicationIsHRBlock):
     15        * platform/RuntimeApplicationChecks.h:
     16
    1172013-07-03  Zan Dobersek  <zdobersek@igalia.com>
    218
  • trunk/Source/WebCore/WebCore.exp.in

    r152328 r152348  
    18441844__ZN7WebCore20PlatformEventFactory27createPlatformKeyboardEventEP7NSEvent
    18451845__ZN7WebCore20builtInPDFPluginNameEv
     1846__ZN7WebCore20applicationIsHRBlockEv
    18461847__ZN7WebCore21DeviceOrientationData6createEbdbdbdbb
    18471848__ZN7WebCore21applicationIsApertureEv
  • trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp

    r150977 r152348  
    109109}
    110110
     111bool applicationIsHRBlock()
     112{
     113    static bool isHRBlock = mainBundleIsEqualTo("com.hrblock.tax.2010");
     114    return isHRBlock;
     115}
     116
    111117bool applicationIsSolidStateNetworksDownloader()
    112118{
  • trunk/Source/WebCore/platform/RuntimeApplicationChecks.h

    r150977 r152348  
    3939bool applicationIsSolidStateNetworksDownloader();
    4040bool applicationIsVersions();
     41bool applicationIsHRBlock();
    4142
    4243} // namespace WebCore
  • trunk/Source/WebKit/mac/ChangeLog

    r152267 r152348  
     12013-07-03  Zalan Bujtas  <zalan@apple.com>
     2
     3        H&R Block 2010 Help window can not be reopened.
     4        https://bugs.webkit.org/show_bug.cgi?id=118342
     5
     6        Reviewed by Antti Koivisto.
     7
     8        http://trac.webkit.org/changeset/118916 changed the window.focus() behaviour so that
     9        only the opener can (re)focus() a particular window.
     10        H&R Block app relies on the relaxed window.focus() rules.
     11
     12        * WebView/WebView.mm:
     13        (shouldRestrictWindowFocus):
     14        (-[WebView _preferencesChanged:]):
     15
    1162013-07-01  Timothy Hatcher  <timothy@apple.com>
    217
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r152234 r152348  
    624624}
    625625
     626static bool shouldRestrictWindowFocus()
     627{
     628    return !applicationIsHRBlock();
     629}
     630
    626631- (void)_dispatchPendingLoadRequests
    627632{
     
    15001505    settings->setAccelerated2dCanvasEnabled([preferences accelerated2dCanvasEnabled]);
    15011506    settings->setLoadDeferringEnabled(shouldEnableLoadDeferring());
     1507    settings->setWindowFocusRestricted(shouldRestrictWindowFocus());
    15021508    settings->setFrameFlatteningEnabled([preferences isFrameFlatteningEnabled]);
    15031509    settings->setSpatialNavigationEnabled([preferences isSpatialNavigationEnabled]);
Note: See TracChangeset for help on using the changeset viewer.