Bug 705332: Fix default checkbox state for alert events.
authorSebastian Rasmussen <[email protected]>
Tue, 24 May 2022 15:54:39 +0000 (17:54 +0200)
committerSebastian Rasmussen <[email protected]>
Tue, 24 May 2022 15:56:10 +0000 (17:56 +0200)
Previously it defaulted to checked, but the spec states that
oCheckbox.bInitialValue should default to false.

source/pdf/pdf-js.c

index e681781cb6d31678a65e6b99b0a9bb6bb2f485fb..9b9b8f4dc985c9847d92e9e8dd8834ab97b52c77 100644 (file)
@@ -90,8 +90,8 @@ static void app_alert(js_State *J)
        evt.title = js_isdefined(J, 4) ? js_tostring(J, 4) : "PDF alert";
 
        evt.check_box_message = "Do not show this message again";
-       evt.initially_checked = 1;
-       evt.finally_checked = 1;
+       evt.initially_checked = 0;
+       evt.finally_checked = 0;
 
        if (js_isobject(J, 6))
        {