Changeset 96205 in webkit
- Timestamp:
- Sep 28, 2011 1:28:35 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r96203 r96205 1 2011-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 1 18 2011-09-28 Tim Horton <timothy_horton@apple.com> 2 19 -
trunk/Source/WebCore/WebCore.exp.in
r96164 r96205 622 622 __ZN7WebCore25PluginMainThreadScheduler9schedulerEv 623 623 __ZN7WebCore25addLanguageChangeObserverEPvPFvS0_E 624 __ZN7WebCore25applicationIsSolarWalkMacEv625 624 __ZN7WebCore25contextMenuItemTagOutlineEv 626 625 __ZN7WebCore26CSSMutableStyleDeclarationC1Ev -
trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp
r95901 r96205 103 103 } 104 104 105 bool applicationIsSolarWalkMac()106 {107 static bool isSolarWalk = mainBundleIsEqualTo("com.vitotechnology.SolarWalkMac");108 return isSolarWalk;109 }110 111 105 } // namespace WebCore -
trunk/Source/WebCore/platform/RuntimeApplicationChecks.h
r95901 r96205 37 37 bool applicationIsMicrosoftOutlook(); 38 38 bool applicationIsSafari(); 39 bool applicationIsSolarWalkMac();40 39 41 40 } // namespace WebCore -
trunk/Source/WebKit/ChangeLog
r95922 r96205 1 2011-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 1 16 2011-09-25 Adam Barth <abarth@webkit.org> 2 17 -
trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj
r95848 r96205 333 333 AB9FBBBB0F8582B0006ADC43 /* WebDOMOperationsInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = AB9FBBBA0F8582B0006ADC43 /* WebDOMOperationsInternal.h */; }; 334 334 ABDDF20D08EB0DDC001E1241 /* WebDownloadInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = ABDDF20C08EB0DDC001E1241 /* WebDownloadInternal.h */; }; 335 B5974457137C7342002A18FF /* SolarWalkQuirksUserScript.js in Resources */ = {isa = PBXBuildFile; fileRef = B5DB1F17137C62F500A28E7E /* SolarWalkQuirksUserScript.js */; };336 335 B6CE5C24100BC5CE00219936 /* WebApplicationCache.mm in Sources */ = {isa = PBXBuildFile; fileRef = B68049720FFBCEC1009F7F62 /* WebApplicationCache.mm */; }; 337 336 B6CE5C25100BC5F500219936 /* WebApplicationCache.h in Headers */ = {isa = PBXBuildFile; fileRef = B68049710FFBCEC1009F7F62 /* WebApplicationCache.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 643 642 AB9FBBBA0F8582B0006ADC43 /* WebDOMOperationsInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebDOMOperationsInternal.h; sourceTree = "<group>"; }; 644 643 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>"; };646 644 B68049710FFBCEC1009F7F62 /* WebApplicationCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebApplicationCache.h; sourceTree = "<group>"; }; 647 645 B68049720FFBCEC1009F7F62 /* WebApplicationCache.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebApplicationCache.mm; sourceTree = "<group>"; }; … … 927 925 children = ( 928 926 29AEF95D134C755400FE5096 /* OutlookQuirksUserScript.js */, 929 B5DB1F17137C62F500A28E7E /* SolarWalkQuirksUserScript.js */,930 927 A864B3E5123ED83D00C2A612 /* MailQuirksUserScript.js */, 931 928 1CCFFD120B1F81F2002EE926 /* OldWebAssertions.c */, … … 1686 1683 buildActionMask = 2147483647; 1687 1684 files = ( 1688 B5974457137C7342002A18FF /* SolarWalkQuirksUserScript.js in Resources */,1689 1685 29AEF960134C76FB00FE5096 /* OutlookQuirksUserScript.js in Resources */, 1690 1686 A864B3F6123ED9FA00C2A612 /* MailQuirksUserScript.js in Resources */, -
trunk/Source/WebKit/mac/ChangeLog
r96164 r96205 1 2011-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 1 21 2011-09-27 Mark Hahnenberg <mhahnenberg@apple.com> 2 22 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r95967 r96205 666 666 } 667 667 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)_injectSolarWalkQuirksScript683 {684 static NSString *solarWalkQuirksScriptContents = leakSolarWalkQuirksUserScriptContents();685 core(self)->group().addUserScriptToWorld(core([WebScriptWorld world]),686 solarWalkQuirksScriptContents, KURL(), nullptr, nullptr, InjectAtDocumentEnd, InjectInAllFrames);687 }688 689 668 - (void)_commonInitializationWithFrameName:(NSString *)frameName groupName:(NSString *)groupName 690 669 { … … 753 732 _private->page->settings()->setShouldInjectUserScriptsInInitialEmptyDocument(true); 754 733 [self _injectOutlookQuirksScript]; 755 }756 757 if (needsSolarWalkQuirksScript()) {758 _private->page->settings()->setShouldInjectUserScriptsInInitialEmptyDocument(true);759 [self _injectSolarWalkQuirksScript];760 734 } 761 735
Note: See TracChangeset
for help on using the changeset viewer.