|
|
Descriptiondisables android java.net SSL certificate check needed for webpage
record & replay to work with AGSA
BUG=396157
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288114
Patch Set 1 #Patch Set 2 : removing aw_url_request_context_getter which is in CL 427673006 #
Total comments: 3
Patch Set 3 : updated with Tony's suggestions and enables forwarding for RNDIS #
Total comments: 1
Patch Set 4 : merged away check for mac #Messages
Total messages: 19 (0 generated)
when you have time, can you please take a look? thanks
Too bad there's no good way to unittest this. https://codereview.chromium.org/423213006/diff/20001/tools/telemetry/telemetr... File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/423213006/diff/20001/tools/telemetry/telemetr... tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:216: # disables java.net SSL certificate check nit: Please use capitals and punctuation in comments. Also, I think the comment is more useful if it answers the question "why" rather than "what". https://codereview.chromium.org/423213006/diff/20001/tools/telemetry/telemetr... tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:217: self._adb.device().RunShellCommand('setprop socket.relaxsslcheck yes') Since this is only needed for certain browsers, let's guard it with a flag that backend_settings may set. That way only the browsers that need it set it. Also, I think this belongs in Start() instead of __init__(). Finally, please use DeviceUtils.GetProp()/SetProp() instead of RunShellCommand(). https://codereview.chromium.org/423213006/diff/20001/tools/telemetry/telemetr... tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:312: self._adb.device().RunShellCommand('setprop socket.relaxsslcheck ""') This looks too early to me. This happens right after the browser is started. I think this needs to go into Close().
Thanks Tony for the detailed feedback. I've made the suggested changes. Currently, network stack would've been instantiated once AGSA is started with intent, but that may change in the future, so it's safer as you pointed out to move the revert piece to Close. I've also made a change to turn on traffic forwarding when RNDIS is used. This is needed for recording. Do you think it's necessary to create a flag for this as well? Are there use cases where RNDIS is used without proxy servers on the host side? Thanks
lgtm https://codereview.chromium.org/423213006/diff/40001/tools/telemetry/telemetr... File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/423213006/diff/40001/tools/telemetry/telemetr... tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:205: if self.browser_options.netsim or use_rndis_forwarder: You'll have to sync up this line. I recently added a check for mac. But I think adding use_rndis_forwarder and removing my mac check is the right fix. So please just merge away the mac check.
will do, thanks Tony
The CQ bit was checked by wuhu@google.com
The CQ bit was unchecked by wuhu@google.com
The CQ bit was checked by wuhu@google.com
The CQ bit was unchecked by wuhu@google.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wuhu@google.com/423213006/60001
The CQ bit was checked by wuhu@google.com
The CQ bit was unchecked by wuhu@google.com
The CQ bit was checked by wuhu@google.com
The CQ bit was unchecked by wuhu@google.com
The CQ bit was checked by wuhu@google.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wuhu@google.com/423213006/60001
The CQ bit was checked by wuhu@google.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wuhu@google.com/423213006/60001
Message was sent while issue was closed.
Change committed as 288114 |