Changeset 96205 in webkit


Ignore:
Timestamp:
Sep 28, 2011 1:28:35 AM (13 years ago)
Author:
aestes@apple.com
Message:

WebKitLinkedOnOrAfter() check is ineffective for Solar Walk app-specific hack.
https://bugs.webkit.org/show_bug.cgi?id=68863

Reviewed by Darin Adler.

The SolarWalk binary does not link against WebKit.framework directly,
so calling NSVersionOfLinkTimeLibrary() will not return the version of
WebKit against which SolarWalk was linked. Since Solar Walk has
released an update that addresses the issue for which this app-specific
hack was originally added, we should just remove the hack.

Source/WebCore:

  • WebCore.exp.in: Remove applicationIsSolarWalkMac().
  • platform/RuntimeApplicationChecks.cpp: Ditto.
  • platform/RuntimeApplicationChecks.h: Ditto.

Source/WebKit:

  • WebKit.xcodeproj/project.pbxproj: Remove SolarWalkQuirksUserScript.js.

Source/WebKit/mac:

  • Misc/SolarWalkQuirksUserScript.js: Removed.
  • WebView/WebView.mm: Removed needsSolarWalkQuirksScript(),

leakSolarWalkQuirksUserScriptContents(), and
-[WebView _injectSolarWalkQuirksScript].
(-[WebView _commonInitializationWithFrameName:groupName:]): Do not
inject the Solar Walk quirks script.

Location:
trunk/Source
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r96203 r96205  
     12011-09-27  Andy Estes  <aestes@apple.com>
     2
     3        WebKitLinkedOnOrAfter() check is ineffective for Solar Walk app-specific hack.
     4        https://bugs.webkit.org/show_bug.cgi?id=68863
     5
     6        Reviewed by Darin Adler.
     7
     8        The SolarWalk binary does not link against WebKit.framework directly,
     9        so calling NSVersionOfLinkTimeLibrary() will not return the version of
     10        WebKit against which SolarWalk was linked. Since Solar Walk has
     11        released an update that addresses the issue for which this app-specific
     12        hack was originally added, we should just remove the hack.
     13
     14        * WebCore.exp.in: Remove applicationIsSolarWalkMac().
     15        * platform/RuntimeApplicationChecks.cpp: Ditto.
     16        * platform/RuntimeApplicationChecks.h: Ditto.
     17
    1182011-09-28  Tim Horton  <timothy_horton@apple.com>
    219
  • trunk/Source/WebCore/WebCore.exp.in

    r96164 r96205  
    622622__ZN7WebCore25PluginMainThreadScheduler9schedulerEv
    623623__ZN7WebCore25addLanguageChangeObserverEPvPFvS0_E
    624 __ZN7WebCore25applicationIsSolarWalkMacEv
    625624__ZN7WebCore25contextMenuItemTagOutlineEv
    626625__ZN7WebCore26CSSMutableStyleDeclarationC1Ev
  • trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp

    r95901 r96205  
    103103}
    104104
    105 bool applicationIsSolarWalkMac()
    106 {
    107     static bool isSolarWalk = mainBundleIsEqualTo("com.vitotechnology.SolarWalkMac");
    108     return isSolarWalk;
    109 }
    110 
    111105} // namespace WebCore
  • trunk/Source/WebCore/platform/RuntimeApplicationChecks.h

    r95901 r96205  
    3737bool applicationIsMicrosoftOutlook();
    3838bool applicationIsSafari();
    39 bool applicationIsSolarWalkMac();
    4039
    4140} // namespace WebCore
  • trunk/Source/WebKit/ChangeLog

    r95922 r96205  
     12011-09-27  Andy Estes  <aestes@apple.com>
     2
     3        WebKitLinkedOnOrAfter() check is ineffective for Solar Walk app-specific hack.
     4        https://bugs.webkit.org/show_bug.cgi?id=68863
     5
     6        Reviewed by Darin Adler.
     7
     8        The SolarWalk binary does not link against WebKit.framework directly,
     9        so calling NSVersionOfLinkTimeLibrary() will not return the version of
     10        WebKit against which SolarWalk was linked. Since Solar Walk has
     11        released an update that addresses the issue for which this app-specific
     12        hack was originally added, we should just remove the hack.
     13
     14        * WebKit.xcodeproj/project.pbxproj: Remove SolarWalkQuirksUserScript.js.
     15
    1162011-09-25  Adam Barth  <abarth@webkit.org>
    217
  • trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj

    r95848 r96205  
    333333                AB9FBBBB0F8582B0006ADC43 /* WebDOMOperationsInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = AB9FBBBA0F8582B0006ADC43 /* WebDOMOperationsInternal.h */; };
    334334                ABDDF20D08EB0DDC001E1241 /* WebDownloadInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = ABDDF20C08EB0DDC001E1241 /* WebDownloadInternal.h */; };
    335                 B5974457137C7342002A18FF /* SolarWalkQuirksUserScript.js in Resources */ = {isa = PBXBuildFile; fileRef = B5DB1F17137C62F500A28E7E /* SolarWalkQuirksUserScript.js */; };
    336335                B6CE5C24100BC5CE00219936 /* WebApplicationCache.mm in Sources */ = {isa = PBXBuildFile; fileRef = B68049720FFBCEC1009F7F62 /* WebApplicationCache.mm */; };
    337336                B6CE5C25100BC5F500219936 /* WebApplicationCache.h in Headers */ = {isa = PBXBuildFile; fileRef = B68049710FFBCEC1009F7F62 /* WebApplicationCache.h */; settings = {ATTRIBUTES = (Private, ); }; };
     
    643642                AB9FBBBA0F8582B0006ADC43 /* WebDOMOperationsInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebDOMOperationsInternal.h; sourceTree = "<group>"; };
    644643                ABDDF20C08EB0DDC001E1241 /* WebDownloadInternal.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebDownloadInternal.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
    645                 B5DB1F17137C62F500A28E7E /* SolarWalkQuirksUserScript.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = SolarWalkQuirksUserScript.js; sourceTree = "<group>"; };
    646644                B68049710FFBCEC1009F7F62 /* WebApplicationCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebApplicationCache.h; sourceTree = "<group>"; };
    647645                B68049720FFBCEC1009F7F62 /* WebApplicationCache.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebApplicationCache.mm; sourceTree = "<group>"; };
     
    927925                        children = (
    928926                                29AEF95D134C755400FE5096 /* OutlookQuirksUserScript.js */,
    929                                 B5DB1F17137C62F500A28E7E /* SolarWalkQuirksUserScript.js */,
    930927                                A864B3E5123ED83D00C2A612 /* MailQuirksUserScript.js */,
    931928                                1CCFFD120B1F81F2002EE926 /* OldWebAssertions.c */,
     
    16861683                        buildActionMask = 2147483647;
    16871684                        files = (
    1688                                 B5974457137C7342002A18FF /* SolarWalkQuirksUserScript.js in Resources */,
    16891685                                29AEF960134C76FB00FE5096 /* OutlookQuirksUserScript.js in Resources */,
    16901686                                A864B3F6123ED9FA00C2A612 /* MailQuirksUserScript.js in Resources */,
  • trunk/Source/WebKit/mac/ChangeLog

    r96164 r96205  
     12011-09-27  Andy Estes  <aestes@apple.com>
     2
     3        WebKitLinkedOnOrAfter() check is ineffective for Solar Walk app-specific hack.
     4        https://bugs.webkit.org/show_bug.cgi?id=68863
     5
     6        Reviewed by Darin Adler.
     7
     8        The SolarWalk binary does not link against WebKit.framework directly,
     9        so calling NSVersionOfLinkTimeLibrary() will not return the version of
     10        WebKit against which SolarWalk was linked. Since Solar Walk has
     11        released an update that addresses the issue for which this app-specific
     12        hack was originally added, we should just remove the hack.
     13
     14        * Misc/SolarWalkQuirksUserScript.js: Removed.
     15        * WebView/WebView.mm: Removed needsSolarWalkQuirksScript(),
     16        leakSolarWalkQuirksUserScriptContents(), and
     17        -[WebView _injectSolarWalkQuirksScript].
     18        (-[WebView _commonInitializationWithFrameName:groupName:]): Do not
     19        inject the Solar Walk quirks script.
     20
    1212011-09-27  Mark Hahnenberg  <mhahnenberg@apple.com>
    222
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r95967 r96205  
    666666}
    667667
    668 static bool needsSolarWalkQuirksScript()
    669 {
    670     static bool isSolarWalkNeedingQuirksScript = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_HTML5_PARSER)
    671     && applicationIsSolarWalkMac();
    672     return isSolarWalkNeedingQuirksScript;
    673 }
    674 
    675 static NSString *leakSolarWalkQuirksUserScriptContents()
    676 {
    677     NSString *scriptPath = [[NSBundle bundleForClass:[WebView class]] pathForResource:@"SolarWalkQuirksUserScript" ofType:@"js"];
    678     NSStringEncoding encoding;
    679     return [[NSString alloc] initWithContentsOfFile:scriptPath usedEncoding:&encoding error:0];
    680 }
    681 
    682 -(void)_injectSolarWalkQuirksScript
    683 {
    684     static NSString *solarWalkQuirksScriptContents = leakSolarWalkQuirksUserScriptContents();
    685     core(self)->group().addUserScriptToWorld(core([WebScriptWorld world]),
    686         solarWalkQuirksScriptContents, KURL(), nullptr, nullptr, InjectAtDocumentEnd, InjectInAllFrames);
    687 }
    688 
    689668- (void)_commonInitializationWithFrameName:(NSString *)frameName groupName:(NSString *)groupName
    690669{
     
    753732        _private->page->settings()->setShouldInjectUserScriptsInInitialEmptyDocument(true);
    754733        [self _injectOutlookQuirksScript];
    755     }
    756 
    757     if (needsSolarWalkQuirksScript()) {
    758         _private->page->settings()->setShouldInjectUserScriptsInInitialEmptyDocument(true);
    759         [self _injectSolarWalkQuirksScript];
    760734    }
    761735
Note: See TracChangeset for help on using the changeset viewer.