* win/Skipped:
removed one test from skipped list to see whether it will pass with the new
DOM Paste API change that is being added simultaneously.
WebKitTools:
Reviewed by Adam Roben.
setting DOM Paste Allowed Pref
* DumpRenderTree/DumpRenderTree.vcproj/DumpRenderTree/DumpRenderTree.cpp:
(initializePreferences):
win:
Reviewed by Adam Roben.
Adding DOM Paste Allowed preference, setters and getters
for the purpose of layout tests.
* Interfaces/IWebPreferences.idl:
* WebPreferenceKeysPrivate.h:
* WebPreferences.cpp:
(WebPreferences::isDOMPasteAllowed):
(WebPreferences::setDOMPasteAllowed):
* WebPreferences.h:
* WebView.cpp:
(WebView::updateWebCoreSettingsFromPreferences):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24129
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-07-09 Alice Liu <alice.liu@apple.com>
+
+ * win/Skipped:
+ removed one test from skipped list to see whether it will pass with the new
+ DOM Paste API change that is being added simultaneously.
+
2007-07-09 Justin Garcia <justin.garcia@apple.com>
Rolling the fix for 5310404 back in now that 5310404 has been fixed in Mail.
tables/mozilla/bugs/bug50695-2.html
# execCommand("Paste") fails? <rdar://problem/5230263>
-editing/execCommand/paste-1.html
+#editing/execCommand/paste-1.html
editing/execCommand/paste-2.html
editing/pasteboard/4242293-1.html
editing/pasteboard/5247341.html
+2007-07-09 Alice Liu <alice.liu@apple.com>
+
+ Reviewed by Adam Roben.
+
+ Adding DOM Paste Allowed preference, setters and getters
+ for the purpose of layout tests.
+
+ * Interfaces/IWebPreferences.idl:
+ * WebPreferenceKeysPrivate.h:
+ * WebPreferences.cpp:
+ (WebPreferences::isDOMPasteAllowed):
+ (WebPreferences::setDOMPasteAllowed):
+ * WebPreferences.h:
+ * WebView.cpp:
+ (WebView::updateWebCoreSettingsFromPreferences):
+
2007-07-09 Anders Carlsson <andersca@apple.com>
Build fix.
HRESULT allowContinuousSpellChecking([out, retval] BOOL *allowed);
HRESULT setAllowContinuousSpellChecking([in] BOOL allowed);
+ HRESULT isDOMPasteAllowed([out, retval] BOOL *allowed);
+ HRESULT setDOMPasteAllowed([in] BOOL allowed);
+
/*
- (BOOL)usesPageCache;
*/
#define WebGrammarCheckingEnabledPreferenceKey "WebGrammarCheckingEnabled" // default: false
#define AllowContinuousSpellCheckingPreferenceKey "AllowContinuousSpellCheckingPreferenceKey" // default: true
+
+#define WebKitDOMPasteAllowedPreferenceKey "WebKitDOMPasteAllowedPreferenceKey" // default: false
setBoolValue(CFSTR(AllowContinuousSpellCheckingPreferenceKey), enabled);
return S_OK;
}
+
+HRESULT WebPreferences::isDOMPasteAllowed(BOOL* enabled)
+{
+ *enabled = boolValueForKey(CFSTR(WebKitDOMPasteAllowedPreferenceKey));
+ return S_OK;
+}
+
+HRESULT WebPreferences::setDOMPasteAllowed(BOOL enabled)
+{
+ setBoolValue(CFSTR(WebKitDOMPasteAllowedPreferenceKey), enabled);
+ return S_OK;
+}
virtual HRESULT STDMETHODCALLTYPE setAllowContinuousSpellChecking(
/* [in] */ BOOL enabled);
+ virtual HRESULT STDMETHODCALLTYPE isDOMPasteAllowed(
+ /* [retval][out] */ BOOL *enabled);
+
+ virtual HRESULT STDMETHODCALLTYPE setDOMPasteAllowed(
+ /* [in] */ BOOL enabled);
+
// WebPreferences
static BSTR webPreferencesChangedNotification();
static void setInstance(WebPreferences* instance, BSTR identifier);
return hr;
settings->setUsesPageCache(!!enabled);
+ hr = preferences->isDOMPasteAllowed(&enabled);
+ if (FAILED(hr))
+ return hr;
+ settings->setDOMPasteAllowed(!!enabled);
+
ResourceHandle::setCookieStorageAcceptPolicy(acceptPolicy);
settings->setShowsURLsInToolTips(false);
+2007-07-09 Alice Liu <alice.liu@apple.com>
+
+ Reviewed by Adam Roben.
+
+ setting DOM Paste Allowed Pref
+
+ * DumpRenderTree/DumpRenderTree.vcproj/DumpRenderTree/DumpRenderTree.cpp:
+ (initializePreferences):
+
2007-07-05 Kevin McCullough <kmccullough@apple.com>
Reviewed by Adam, Sam, and Ada.
preferences->setAutosaves(FALSE);
preferences->setJavaEnabled(FALSE);
preferences->setPlugInsEnabled(TRUE);
+ preferences->setDOMPasteAllowed(TRUE);
SysFreeString(standardFamily);
SysFreeString(fixedFamily);