|
Lines 1-13
Link Here
|
| 1 |
use Modern::Perl; |
1 |
use Modern::Perl; |
| 2 |
|
2 |
|
| 3 |
return { |
3 |
return { |
| 4 |
bug_number => "33259", |
4 |
bug_number => "33259", |
| 5 |
description => "Bug 33259: Optionally set SameSite attribute of cookie to Strict", |
5 |
description => "Bug 33259: Optionally set SameSite attribute of cookie to Strict", |
| 6 |
up => sub { |
6 |
up => sub { |
| 7 |
my ($args) = @_; |
7 |
my ($args) = @_; |
| 8 |
my ($dbh, $out) = @$args{qw(dbh out)}; |
8 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
| 9 |
|
9 |
|
| 10 |
$dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('SameSiteSessionCookie', 'Lax', 'None|Lax|Strict', 'If Strict, then the SameSite attribute of the session cookie will be set to Strict, rather than the default Lax. None means you want the cookie sent iun a third-party context.', 'Choice') }); |
10 |
$dbh->do( |
|
|
11 |
q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('SameSiteSessionCookie', 'Lax', 'None|Lax|Strict', 'If Strict, then the SameSite attribute of the session cookie will be set to Strict, rather than the default Lax. None means you want the cookie sent iun a third-party context.', 'Choice') } |
| 12 |
); |
| 11 |
|
13 |
|
| 12 |
say $out "Added new system preference 'SameSiteSessionCookie'"; |
14 |
say $out "Added new system preference 'SameSiteSessionCookie'"; |
| 13 |
}, |
15 |
}, |
| 14 |
- |
|
|