1. 15 Sep, 2016 1 commit
    • Raine Makelainen's avatar
      [embedlite-components] Simplify "mozorientationchange" listener registration. Fixes JB#36210 · 6dd2bc12
      Raine Makelainen authored
      Remove isRegistered guard and let EventListerManager (gecko) to
      take care of this. As we are adding listener for the same listener
      holder with the same type and arguments, only one will be added.
      
      Due to above unregistering code becomes obsolete. Just guard
      that initial orientation is send only if orientation has
      really changed. The lastOrientation is now initialized as
      "unknown" so that initial content orientation reporting
      works.
      
      Initial content orientation was not reported when web content
      requested a new window.
      6dd2bc12
  2. 07 Sep, 2016 1 commit
  3. 01 Sep, 2016 1 commit
    • Raine Makelainen's avatar
      [embedlite-components] Improve orientation change reporting. Fixes JB#36044 · 07783610
      Raine Makelainen authored
      For instance when raw images where loaded to a tab, the tab didn't
      have orientation change listener registered as domContentLoaded
      doesn't fire then. This commit adds progress listener that listens
      only top level loading status. Once top level is reported as loaded,
      orientation change listener is registered.
      
      This adds a fallback code path for interrupted loads.
      07783610
  4. 30 Aug, 2016 1 commit
  5. 11 Jul, 2016 2 commits
  6. 30 Jun, 2016 1 commit
  7. 17 Jun, 2016 1 commit
    • Raine Makelainen's avatar
      [embedlite-components] Send content orientation changed message to chrome. Fixes JB#35447 · 5502b1e9
      Raine Makelainen authored
      Send "embed:contentOrientationChanged" message to chrome after
      content has been resized after orientation change. Changing orientation
      between mirrored orientations (primary to secondary or other way
      round) is cheap and does not trigger reflow. Thus, those can
      be send back to chrome immediately.
      
      There is a 200ms fallback timer that guarantees that we send the
      orientation change eventually. Noticed for instance that full
      screen video playback orientation change did not always trigger
      resizing while it should have been triggered.
      
      This is inspited by B2G's OrientationChangeHandler.jsm.
      5502b1e9