Content Picker appears empty while accessing hsbc brazilian site

Bug #1379806 reported by Renato Araujo Oliveira Filho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Undecided
Olivier Tilloy
Oxide
Invalid
High
Alexandre Abreu
webbrowser-app
Fix Released
High
Olivier Tilloy
webbrowser-app (Ubuntu)
Fix Released
Undecided
Olivier Tilloy
webbrowser-app (Ubuntu RTM)
Fix Released
Undecided
Olivier Tilloy

Bug Description

HOW TO REPRODUCE
=================

1 - Open webbrowser
2 - Go to www.hsbc.com.br

Expected
=======

The site appears

Current
=======

Content Picker appears empty several times

Related branches

Revision history for this message
Olivier Tilloy (osomon) wrote :

I can reliably reproduce the issue, even from outside of Brazil.

Changed in webbrowser-app:
status: New → Confirmed
importance: Undecided → High
Olivier Tilloy (osomon)
Changed in webbrowser-app:
assignee: nobody → Olivier Tilloy (osomon)
Revision history for this message
Olivier Tilloy (osomon) wrote :

I’m seeing the following related logs when browsing to http://www.hsbc.com.br :

[1013/160010:INFO:buffered_resource_handler.cc(368)] Download request for www.youtube.com/v/4ZA2CH7150Y&hl=en&fs=1&rel=0&border=1 got cancelled by embedder
[1013/160010:INFO:buffered_resource_handler.cc(368)] Download request for www.youtube.com/v/YvJNZ-Qx69U&hl=en&fs=1&rel=0&border=1 got cancelled by embedder
[1013/160010:INFO:buffered_resource_handler.cc(368)] Download request for www.youtube.com/v/QES0GSZdpBc&hl=en&fs=1&rel=0&border=1 got cancelled by embedder
[1013/160010:INFO:buffered_resource_handler.cc(368)] Download request for www.youtube.com/v/bmhy2Gd_vXQ&hl=en&fs=1&rel=0&border=1 got cancelled by embedder
[1013/160011:INFO:buffered_resource_handler.cc(368)] Download request for www.youtube.com/v/dPb3BPYQ3UY&hl=en&fs=1&rel=0&border=1 got cancelled by embedder
[1013/160011:INFO:buffered_resource_handler.cc(368)] Download request for www.youtube.com/v/RVJs1RHipJk&hl=en&fs=1&rel=0&border=1 got cancelled by embedder

So it appears the page is trying to load youtube flash videos (of mime type application/x-shockwave-flash), and oxide transforms that into a download request. Not sure whether this is a bug in oxide, or if this is correct but the browser should ignore download requests for mime types it knows it can’t handle.

Revision history for this message
Olivier Tilloy (osomon) wrote :

The youtube videos are embedded in hidden iframes whose 'src' attribute is set to the flash video player. E.g.:

<iframe id="ytplayer-programa-de-fidelidade" width="540" height="340" src="http://www.youtube.com/v/4ZA2CH7150Y&amp;hl=en&amp;fs=1&amp;rel=0&amp;border=1" frameborder="0"> </iframe>

Revision history for this message
Olivier Tilloy (osomon) wrote :

I linked a branch that fixes the issue, but I’m still unsure whether this is the correct approach, or if the issue could be addressed in oxide (so that we wouldn’t get the download request in the first place). Adding an oxide task to clarify this.

Changed in webbrowser-app:
status: Confirmed → In Progress
Changed in oxide:
assignee: nobody → Alexandre Abreu (abreu-alexandre)
importance: Undecided → High
Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

It is the expected behavior from Oxide. At the content level, the resource handler checks if the mime type of the response is a known default one, if not it tried to find a plugin for it and if not it forwards teh request to the download manager.

See L298:

https://chromium.googlesource.com/chromium/src/+/38.0.2125.105/content/browser/loader/buffered_resource_handler.cc

(BufferedResourceHandler::SelectNextHandler)

Changed in oxide:
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+15.04.20141029.1-0ubuntu1

---------------
webbrowser-app (0.23+15.04.20141029.1-0ubuntu1) vivid; urgency=low

  [ CI bot ]
  * Resync trunk
  * Fix the override mechanism for navigator.userAgent, and add UA
    override rules for HSBC’s Brazilian mobile site and ESPN’s mobile
    site. (LP: #1316259)

  [ Riccardo Padovani ]
  * Fixed #1378975 - Fast double click on menu button opens menu twice
    (LP: #1378975)
  * Updated the README

  [ Jean-Francois Moy ]
  * Twitter User Script - Hide the prompt to download the Android
    application. (LP: #1352789)

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Olivier Tilloy ]
  * Prevent the browser from trying to download embedded flash
    applications. (LP: #1379806)
  * Fix a harmless compilation warning found by clang (non-literal-null-
    conversion).
  * Update UITK autopilot test imports. (LP: #1386276)

webbrowser-app (0.23+14.10.20141028~rtm-0ubuntu1) 14.09; urgency=low

  [ CI bot ]
  * Resync trunk

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Olivier Tilloy ]
  * Fix the override mechanism for navigator.userAgent, and add UA
    override rules for HSBC’s Brazilian mobile site and ESPN’s mobile
    site. (LP: #1316259)

webbrowser-app (0.23+14.10.20141015.1-0ubuntu1) 14.09; urgency=low

  [ Michael Sheldon ]
  * Detect 7 digital album downloads and request that they get unzipped
    by download manager. (LP: #1365993)

  [ Ubuntu daily release ]
  * New rebuild forced
 -- Ubuntu daily release <email address hidden> Wed, 29 Oct 2014 12:00:23 +0000

Changed in webbrowser-app (Ubuntu):
status: New → Fix Released
Olivier Tilloy (osomon)
Changed in webbrowser-app:
status: In Progress → Fix Released
Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu RTM):
status: New → Confirmed
Changed in canonical-devices-system-image:
milestone: none → ww05-2015
status: New → Fix Released
Olivier Tilloy (osomon)
Changed in canonical-devices-system-image:
assignee: nobody → Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu RTM):
assignee: nobody → Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu RTM):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.