зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1046647 - Part 5: Replace nsCxPusher in nsDocShell OnLinkClickEvent::Run. r=bholley
This commit is contained in:
Родитель
325adb5305
Коммит
c98076ab44
|
@ -166,7 +166,6 @@
|
|||
#endif
|
||||
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsCxPusher.h"
|
||||
#include "nsIChannelPolicy.h"
|
||||
#include "nsIContentSecurityPolicy.h"
|
||||
#include "nsILoadInfo.h"
|
||||
|
@ -192,6 +191,7 @@
|
|||
#include "nsIWebBrowserFind.h"
|
||||
#include "nsIWidget.h"
|
||||
#include "mozilla/dom/EncodingUtils.h"
|
||||
#include "mozilla/dom/ScriptSettings.h"
|
||||
|
||||
static NS_DEFINE_CID(kAppShellCID, NS_APPSHELL_CID);
|
||||
|
||||
|
@ -12590,8 +12590,8 @@ public:
|
|||
NS_IMETHOD Run() {
|
||||
nsAutoPopupStatePusher popupStatePusher(mPopupState);
|
||||
|
||||
nsCxPusher pusher;
|
||||
if (mIsTrusted || pusher.Push(mContent)) {
|
||||
AutoJSAPI jsapi;
|
||||
if (mIsTrusted || jsapi.Init(mContent->OwnerDoc()->GetScopeObject())) {
|
||||
mHandler->OnLinkClickSync(mContent, mURI,
|
||||
mTargetSpec.get(), mFileName,
|
||||
mPostDataStream, mHeadersDataStream,
|
||||
|
|
Загрузка…
Ссылка в новой задаче