View | Details | Raw Unified | Return to bug 225482
Collapse All | Expand All

(-)lang/phantomjs/files/patch-src_webpage.cpp (+13 lines)
Line 0 Link Here
1
--- src/webpage.cpp.orig	2018-01-26 07:17:31 UTC
2
+++ src/webpage.cpp
3
@@ -77,8 +77,8 @@
4
 #define BLANK_HTML                      "<html><head></head><body></body></html>"
5
 #define CALLBACKS_OBJECT_NAME           "_phantom"
6
 #define INPAGE_CALL_NAME                "window.callPhantom"
7
-#define CALLBACKS_OBJECT_INJECTION      INPAGE_CALL_NAME" = function() { return window."CALLBACKS_OBJECT_NAME".call.call(_phantom, Array.prototype.slice.call(arguments, 0)); };"
8
-#define CALLBACKS_OBJECT_PRESENT        "typeof(window."CALLBACKS_OBJECT_NAME") !== \"undefined\";"
9
+#define CALLBACKS_OBJECT_INJECTION      INPAGE_CALL_NAME" = function() { return window." CALLBACKS_OBJECT_NAME".call.call(_phantom, Array.prototype.slice.call(arguments, 0)); };"
10
+#define CALLBACKS_OBJECT_PRESENT        "typeof(window." CALLBACKS_OBJECT_NAME") !== \"undefined\";"
11
 
12
 #define STDOUT_FILENAME "/dev/stdout"
13
 #define STDERR_FILENAME "/dev/stderr"

Return to bug 225482