| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I have, thus far, not gotten a unit test to actually tickle this case. NavigationPolicy is surprisingly hard to test programmatically.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
I have, thus far, not gotten a unit test to actually tickle this case. NavigationPolicy is surprisingly hard to test programmatically.
Would a WPT work for this? I guess it'd be kind of hard to detect that it was blocked though.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Daniel ChengI have, thus far, not gotten a unit test to actually tickle this case. NavigationPolicy is surprisingly hard to test programmatically.
Would a WPT work for this? I guess it'd be kind of hard to detect that it was blocked though.
I got a (weird and invasive) unit test working that shows that BeginNavigation() doesn't get called in the problematic case. Is that worth landing?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
network::mojom::blink::WebSandboxFlags::kPopups);Why do we need to set this separately? It seems a bit weird to set sandbox flags after the page is already loaded.
To<HTMLElement>(element)->click();Since the test is split up between this and the html file, would it make sense to add a comment here that this shouldn't result in an additional navigation due to the iframe being sandboxed without allow-poups?
EXPECT_EQ(web_frame_client.iframe_client()->BeginNavigationCallCount(), 1);This is just from the initial load right, or something else as well? Would it make sense to EXPECT this after line 14883 as well?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
network::mojom::blink::WebSandboxFlags::kPopups);Why do we need to set this separately? It seems a bit weird to set sandbox flags after the page is already loaded.
For some reason the sandbox flags aren't getting propagated to the about:srcdoc document (but they are in a full chrome build). I think there's something I'm not stubbing out, but I haven't been able to figure out what it is. How hard should I try? (I was several hours in when I just set the sandbox flags directly)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Since the test is split up between this and the html file, would it make sense to add a comment here that this shouldn't result in an additional navigation due to the iframe being sandboxed without allow-poups?
Done
EXPECT_EQ(web_frame_client.iframe_client()->BeginNavigationCallCount(), 1);This is just from the initial load right, or something else as well? Would it make sense to EXPECT this after line 14883 as well?
Done
| Code-Review | +1 |
network::mojom::blink::WebSandboxFlags::kPopups);Nate ChapinWhy do we need to set this separately? It seems a bit weird to set sandbox flags after the page is already loaded.
For some reason the sandbox flags aren't getting propagated to the about:srcdoc document (but they are in a full chrome build). I think there's something I'm not stubbing out, but I haven't been able to figure out what it is. How hard should I try? (I was several hours in when I just set the sandbox flags directly)
Maybe just throw a `// TODO` here for now? It'd be nice to fix... but I can't also claim that this is the best use of anyone's time at this point either.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
network::mojom::blink::WebSandboxFlags::kPopups);Nate ChapinWhy do we need to set this separately? It seems a bit weird to set sandbox flags after the page is already loaded.
Daniel ChengFor some reason the sandbox flags aren't getting propagated to the about:srcdoc document (but they are in a full chrome build). I think there's something I'm not stubbing out, but I haven't been able to figure out what it is. How hard should I try? (I was several hours in when I just set the sandbox flags directly)
Maybe just throw a `// TODO` here for now? It'd be nice to fix... but I can't also claim that this is the best use of anyone's time at this point either.
You can attach my name I suppose :)