Summary: | Add preference to disable web security | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adam Barth <abarth> | ||||||||
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | abarth, aroben, patrick, sam, sfalken | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Description
Adam Barth
2009-01-14 20:39:51 PST
Created attachment 26745 [details]
patch
These methods should be added to WebPreferencesPrivate rather than WebPreferences as they need to go through Apple API review before they can be added to an API header file. Comment on attachment 26745 [details]
patch
Ok. Clearing review flag.
Created attachment 26747 [details]
patch
I figured out how to do this for mac. Is there a similar issue on windows?
Steve or Adam Roben would know what our policy is for API vs SPI on Windows. We make the Windows API change in the interface that matches the Mac. So WebPreferences->IWebPreferences, WebPreferencesPrivate->IWebPreferencesPrivate. One problem with your patch: you need to add new methods to COM interfaces at the *end* to preserve the vtable order. Otherwise, you break compatibility. Comment on attachment 26747 [details]
patch
Ok. Will do. Clearing review flag while I re-spin the patch.
Created attachment 26828 [details]
patch (privatized)
This version should address the above comments (thanks!).
Friendly ping. :) (I secretly want to land this because it will help with Bug 20249.) Comment on attachment 26828 [details]
patch (privatized)
Doh. r=me
(In reply to comment #10) > Doh. r=me Thanks Sam. Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/WebCore.base.exp M WebCore/dom/Document.cpp M WebCore/page/SecurityOrigin.cpp M WebCore/page/SecurityOrigin.h M WebCore/page/Settings.cpp M WebCore/page/Settings.h M WebKit/mac/ChangeLog M WebKit/mac/WebView/WebPreferenceKeysPrivate.h M WebKit/mac/WebView/WebPreferences.mm M WebKit/mac/WebView/WebPreferencesPrivate.h M WebKit/mac/WebView/WebView.mm M WebKit/win/ChangeLog M WebKit/win/Interfaces/IWebPreferencesPrivate.idl M WebKit/win/WebPreferenceKeysPrivate.h M WebKit/win/WebPreferences.cpp M WebKit/win/WebPreferences.h M WebKit/win/WebView.cpp Committed r40449 |