WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
257434
iFrame not saving settings after restart of application.
https://bugs.webkit.org/show_bug.cgi?id=257434
Summary
iFrame not saving settings after restart of application.
Genefy
Reported
2023-05-27 20:05:52 PDT
When changing a setting on an site - Example: Setting Dark mode on a subdomain within an iFrame, Webkit is not able to save this setting between sessions. If I go to the subdomain directly and change the setting, It is able to remain saved across reboots. Example sites: Organizr as the main site with Homarr as the iFrame (dark mode option on the hamburger menu)
Attachments
Add attachment
proposed patch, testcase, etc.
John Wilander
Comment 1
2023-05-29 22:08:26 PDT
Hi! What technology are you using to “save” here? WebKit partitions HTML storage per top frame site and partitioned storage is ephemeral. Ephemeral means in-memory-only.
John Wilander
Comment 2
2023-05-29 22:09:40 PDT
Actually partitioned per top frame *origin*.
Genefy
Comment 3
2023-05-30 06:01:32 PDT
I'm using save in a figurative sense. I'm mostly just choosing the dark mode option. Then closing and re-opening a web app/& standard web (using webkit) with iFrames in them. But when going across the iFrames those manually set to dark mode are being reset. I'm using iFrames because it's a control panel. (Organizr) Can iFrames be saved too? Or at least a preference to be saved?
John Wilander
Comment 4
2023-05-30 07:43:31 PDT
Could you provide a code snippet of how you save dark mode in the iframe, please?
Radar WebKit Bug Importer
Comment 5
2023-06-03 20:06:17 PDT
<
rdar://problem/110220728
>
Genefy
Comment 6
2023-06-03 22:06:47 PDT
There's a hamburger menu on the top right, 3 lines. if you click the 3 lines, there's an option that says Switch to Dark Mode. There's a demo site for homarr:
https://demo.homarr.dev/
Again just hamburger menu on the top right. Thank you for following up. The only difference is that homarr would be within an iFrame.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug