ampproject / ampproject/amphtml

amp-list does not send cookies on iPhone 5/se

Open
#36,168 1 comment 0 reactions 0 assignees View on GitHub
Stale Type: Bug
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

When using iPhone 5/se amp-list does not send cookies, and there is no possibility to show customer-related data.

### Reproduction Steps

You need a PHP server with valid SSL to make test

1. Create an amp page **index.html** with the following content
```xml


amp-list




body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}


Cookie value:

{{cookieValue}}


```

2. Create amp-list endpoint **test.php**

```php
[['cookieValue' => $_COOKIE['test'] ?? 'not found']]]);
```

3. Create **setcookie.php** file to set cookie and checking if cookie is set correctly
```php
';
print_r($_COOKIE);
setcookie('test', '123111111123');
```

4. Get your desktop
5. Go to setcookie.php to set cookie
6. Refresh the page to see whether the cookie is set
7. Go to index.html and wait when amp-list loaded
8. See **123111111123** value
9. Do 5-7 steps on iPhone 5/se or use https://app.lambdatest.com/console/realtime
10. See 'not found' instead of 123111111123 on index.html page

### Relevant Logs

_No response_

### Browser(s) Affected

_No response_

### OS(s) Affected

_No response_

### Device(s) Affected

iPhone 5/se

### AMP Version Affected

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the amp-list example in index.html and its test.php endpoint, then reproduce the cookie difference on desktop and iPhone 5/se using the listed steps. Done means the amp-list displays 123111111123 on the affected device instead of “not found”; no project source file or test is identified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.