Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef CRASHREPORTER_GTK_COMMON_H__
6 #define CRASHREPORTER_GTK_COMMON_H__
8 #include <glib.h>
9 #include <gtk/gtk.h>
11 #include <string>
12 #include <vector>
14 const char kIniFile[] = "crashreporter.ini";
16 extern GtkWidget* gWindow;
17 extern GtkWidget* gSubmitReportCheck;
18 extern GtkWidget* gIncludeURLCheck;
19 extern GtkWidget* gThrobber;
20 extern GtkWidget* gProgressLabel;
21 extern GtkWidget* gCloseButton;
22 extern GtkWidget* gRestartButton;
24 extern std::vector<std::string> gRestartArgs;
25 extern GThread* gSendThreadID;
27 extern bool gInitialized;
28 extern bool gDidTrySend;
29 extern std::string gDumpFile;
30 extern StringTable gQueryParameters;
31 extern std::string gHttpProxy;
32 extern std::string gAuth;
33 extern std::string gCACertificateFile;
34 extern std::string gSendURL;
35 extern std::string gURLParameter;
37 void LoadProxyinfo();
38 gpointer SendThread(gpointer args);
39 gboolean WindowDeleted(GtkWidget* window,
40 GdkEvent* event,
41 gpointer userData);
42 gboolean check_escape(GtkWidget* window, GdkEventKey* event, gpointer data);
43 void SubmitReportChecked(GtkButton* sender, gpointer userData);
44 void IncludeURLClicked(GtkButton* sender, gpointer userData);
45 void CloseClicked(GtkButton* button,
46 gpointer userData);
47 void RestartClicked(GtkButton* button,
48 gpointer userData);
50 #endif // CRASHREPORTER_GTK_COMMON_H__