Browse Source

kplugins: jsplugin, spellcheck: follow-up after chaos mode imported in GRE

master
roytam1 1 year ago
parent
commit
9b5742237f
  1. 10
      k-meleon/kplugins/jsbridge/jsplugin.cpp
  2. 12
      k-meleon/kplugins/spellcheck/spellcheck.cpp

10
k-meleon/kplugins/jsbridge/jsplugin.cpp

@ -16,6 +16,8 @@
#include "nsIJSBridge.h"
#include "jscomp.h"
#include "mozilla/ChaosMode.h" // ChaosMode hack
#define KMELEON_PLUGIN_EXPORTS
#include "kmeleon_plugin.h"
#include "../../app/KMeleonConst.h"
@ -269,6 +271,12 @@ KMELEON_PLUGIN kmeleonPlugin *GetKmeleonPlugin() {
}
#if 1 //ChaosMode hack
namespace mozilla {
namespace detail {
Atomic<uint32_t> gChaosModeCounter(0);
} /* namespace detail */
} /* namespace mozilla */
#endif

12
k-meleon/kplugins/spellcheck/spellcheck.cpp

@ -51,6 +51,8 @@
#include "mozilla/fallible.h"
#include "mozilla/a11y/Accessible.h"
#include "mozilla/ChaosMode.h" // ChaosMode hack
#include <algorithm>
@ -913,3 +915,13 @@ BOOL DoCommand(HWND hwnd, BOOL bHere)
return TRUE;
}
#if 1 //ChaosMode hack
namespace mozilla {
namespace detail {
Atomic<uint32_t> gChaosModeCounter(0);
} /* namespace detail */
} /* namespace mozilla */
#endif

Loading…
Cancel
Save