Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix build after fenced frame spec container size removal. #1270

Closed
wants to merge 1 commit into from

Conversation

morlovich
Copy link
Collaborator

@morlovich morlovich commented Sep 5, 2024

I think one of our uses of it was probably meant to be content size instead.


Preview | Diff

I think one of our uses of it was meant to be content size instead.
@morlovich
Copy link
Collaborator Author

@gtanzer would appreciate your feedback on whether this is actually doing the right thing.
More context: WICG/fenced-frame@a8ec772

@qingxinwu
Copy link
Collaborator

qingxinwu commented Sep 5, 2024

Instead of asking Garrett, would be better to ask the owner of this commit that removed container size.

@gtanzer
Copy link
Contributor

gtanzer commented Sep 5, 2024

I think Andrew removed too much; container size is implemented in Chrome and used by PA... That PR didn't just remove the IDL getters for the fields; it removed the container size fields themselves.
https://source.chromium.org/chromium/chromium/src/+/main:content/browser/fenced_frame/fenced_frame_config.h;l=294?q=fenced_frame_config.h&ss=chromium

It's possible that the container size fields weren't functional in the fenced frame spec though. They should be used to set the width/height fields of the fenced frame element upon loading a config, if the fields haven't previously been set manually.

@morlovich
Copy link
Collaborator Author

Hmm, was the intent of the spec here that the requested size is set as the container size, and the actual size as the content size?

@gtanzer
Copy link
Contributor

gtanzer commented Sep 5, 2024

Yes, see the relevant line of the implementation here:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/fenced_frame/html_fenced_frame_element.cc;l=481?q=html_fenced_frame_element.cc&ss=chromium
The container size becomes the size of the fenced frame element (which is distinct from the size of its content).

@morlovich
Copy link
Collaborator Author

OK, so this is incorrect and it's good that I checked with you. Hmm, I can't seem to be able to @VergeA; I guess I should follow up on the original commit.

@VergeA
Copy link

VergeA commented Sep 5, 2024

Hey folks, just catching up. When I was looking into the implementation, I missed the actual usage of container_size to set width and height; I thought container size was vestigial given that it wasn't provided explicitly in the internal config struct.

I'll write up another patch to re-add the container_size internal struct field to un-break the build, and we can determine how to spec the actual behavior from there.

@gtanzer
Copy link
Contributor

gtanzer commented Sep 5, 2024

The constructors don't mean a ton (that is a longstanding refactor todo task, to unify everything into one exhaustive constructor); PA fills in the fields separately.
https://source.chromium.org/chromium/chromium/src/+/main:content/browser/fenced_frame/fenced_frame_url_mapping.cc;l=223;drc=8e948282d37c0e119e3102236878d6f4d5052c16;bpv=1;bpt=1

VergeA added a commit to VergeA/fenced-frame that referenced this pull request Sep 5, 2024
Follow-up to WICG#182

Along with the unused IDL size attributes, I also removed the internal fenced frame config container size definition. I was mistaken about it being vestigial (I missed a reference to it in the implementation when I was originally deciding to remove it, so I didn't see it was actively used). 

The Protected Audience spec depended on the field, and I broke their build: WICG/turtledove#1270 (comment)

This change re-adds the container size definition to un-break things.
@VergeA
Copy link

VergeA commented Sep 5, 2024

I've got a PR that re-adds the container size field here: WICG/fenced-frame#187

@morlovich
Copy link
Collaborator Author

Thanks! Closing this one...

@morlovich morlovich closed this Sep 5, 2024
domfarolino pushed a commit to WICG/fenced-frame that referenced this pull request Sep 5, 2024
Follow-up to #182

Along with the unused IDL size attributes, I also removed the internal fenced frame config container size definition. I was mistaken about it being vestigial (I missed a reference to it in the implementation when I was originally deciding to remove it, so I didn't see it was actively used). 

The Protected Audience spec depended on the field, and I broke their build: WICG/turtledove#1270 (comment)

This change re-adds the container size definition to un-break things.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants