SlideShare a Scribd company logo
1 of 35
Building a Next Generation Mobile
Browser

Adam Stanley @n_adam_stanley

October 19, 2012
                                    1
Hello World

 Adam Stanley
     Team Lead, BlackBerry Developer Relations
     Likes: ninjas, bacon, JavaScript
     Dislikes: cilantro, Styrofoam, JavaScript
     127.0.0.1 is Waterloo, Ontario, Canada




                                                  2
The Cast

 The new BlackBerry 10 browser
     http://www.blackberry.com/html5




                                        3
Sneak peak



              Everything you
             see in the chrome
              is actually Web
                  content!

             “Built for the Web,
              using the Web”

                                   4
A Next Generation Browser
Setting the stage

 Building something awesome:
     The BlackBerry 10 browser
     Web platform
     Natively Web
     Inside the browser
     Optimizations
     Lessons learned
     Development tools


                                  6
How does it look at 1024 feet?


 Browser Application

   WebKit engine

     Web platform

        Multi-processing OS
Metaphor time




                8
In perfect harmony



                     Bacon          Happy




              Tomato         Mayo

                                            9
A browser, in harmony



                      Rich Content
                                             Awesome
                         Fidelity




                 High           Great User
             Performance        Experience


                                                       10
The next generation mobile browser



   “The BlackBerry 10 browser combines
  powerful web rendering engine capabilities
    with multi-threaded web view objects to
       render both chrome and content.”


                                               11
Web Platform

 Framework for Web applications
     The Browser, WebWorks SDK, and QNXCar2 UI
     BlackBerry 10 UI elements


 Multi-process launcher
     Management of concurrent WebViews
     Native API access from JavaScript
       e.g. PPS, sharing framework, invocation framework


                                                            12
Why Web for a browser?

 Why use Web instead of Native?
   Leader in HTML5 development (feature coverage)

   Leader in HTML5 implementation (performance)

   Leader in HTML5 developer experience (community, tooling)



 Push the boundaries of what can be done
   Eat our own dog food

   Stronger browser

   Stronger platform


                                                                13
Ingredient 1 : Fidelity

 Support the web really well
     Powered by WebKit
     HTML5, CSS3
     Flash
     WebGL                                http://www.html5test.com

     Driven by strong standards support




                                                               14
Ingredient 2 : Performance

 Hardware accelerated CSS3 transformations (GPU)

 Touch Input events optimized for quick response times

 Progressive page loading
     WebKit engine optimized for kinetic scrolling (iScroll not needed!)




                                                                            15
Webviews




           16
WebView

 Independent Web content containers
     Similar to a browser “tab”, but layered on top of each other




                                                                     17
Two types of WebViews

 “Chrome” WebViews are granted special privileges
     WebView API access
     Native API plugin
     Relaxed Web runtime constraints (e.g. FileSystem sandbox)


 “Content” WebViews are optimized for websites
     Large backing store
     Access to disk cache
     Can scroll the webview without repainting page content
                                                                  18
Inside the Browser Application


                                                     RPC
                                                           Navigation Bar
  Weblauncher                           Chrome              (Webview)
    (native)
    Create                             (Webview)

                                       index.html
                                                     RPC
   Native API                            qnx.*              App Menu
                JS/Native Binding                           (Webview)



                                    Chrome Process
                                                                            19
Inside the Browser Application

                                                                 Navigation Bar
  Weblauncher                        Chrome                        Webview
    Create
    (native)                         Webview

    Native API
                                                                    App Menu
                                                                    Webview

                                 Chrome Process
                                 Content Process (tabs)


   smh.com.au    starbucks.com         blackberry.com     aircanada.com     ...


                                                                                  20
Ingredient 3 : Experience

 Intuitive
     You already know how to use it


 Integrated & Contextual
     It knows what you want to do next

 Moments of charm
     It’ s more than just drawing web pages

                                               21
Intuitive “Look and Feel”

 BlackBerry 10 native UI guidelines

 UI elements:
     Action bar
     Crosscut menus
     Viewers/cards
     Form controls
     Sheets
     Dialogs

                                       22
Native UI in the browser

 Web versions of native BlackBerry 10 UI
     Each UI element defined in its own web view
     Uses HTML, CSS, JavaScript, SVG, images


 CSS transitions
     Hardware accelerated compositing
     Smooth animations
Contextual

 It knows what you want to do next
     Contextual menu
     Keyboard




                                      24
Moments of charm

 Native hardware integration
     Camera
     Disk cache
     Sensors
     Geolocation

 Native software integration:
     Invocation framework
     Instant messaging
                                 http://people.opera.com/danield/html5/explode
Developers

 Remote Web Inspector
     Debug web content running from a simulator or live device




                                                                  26
Developers

 User Agent
     Leaving the past behind
     Reducing poor user experiences targeting LCD browsers

Mozilla/5.0 (BB10; <Device Model>) AppleWebKit/<WebKit Version>
(KHTML, like Gecko) Version/<BB Version #> Mobile Safari/<WebKit Version>


 Desktop mode
     Can emulate desktop Chrome user agent on demand
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/<WebKit Version>
(KHTML, like Gecko) Chrome/21.0.1180.75 Safari/<WebKit Version>
Lessons learned

 Many interesting problems:
     Disk access
     Window animations
     Localization
     Web overlays
     Access to screen




                               28
Lessons learned

 Rules are meant to be broken …




 New CSS :
     webkit-overflow-scrolling: -blackberry-touch
     text-overflow: -blackberry-fade
     data-blackberry-end-selection-on-touch=“on”
                                                     29
Lessons learned

 Some problems remain unsolved:

     Animating block height

     Efficient large data transfer

     The web is still fundamentally single-threaded



                                                       30
Lessons learned

 Conclusion: “A browser built for the Web using the Web”
     Yes, good performance is possible
     Yes, rich and responsive UI is possible
     Yes, highly interactive web apps are possible


 Proof:
     BlackBerry 10



                                                            31
The Future

 The bar has been raised:
     We want everyone to develop Web applications as powerful as the
      new BlackBerry 10 Browser


 The evolution continues:
     The Web engine is constantly getting faster and more powerful
     This technology will be coming to WebWorks


 As the “Open Web Platform” evolves, more will be
  possible across platforms                                             32
Melbourne, Oct 19
Thank you


Adam Stanley @n_adam_stanley

October 19, 2012

More Related Content

What's hot

JavaScript on HP webOS: Enyo and Node.js
JavaScript on HP webOS: Enyo and Node.jsJavaScript on HP webOS: Enyo and Node.js
JavaScript on HP webOS: Enyo and Node.js
Ben Combee
 
Wordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebWordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The Nextweb
George Kanellopoulos
 
Front-end optimisation & jQuery Internals
Front-end optimisation & jQuery InternalsFront-end optimisation & jQuery Internals
Front-end optimisation & jQuery Internals
Artur Cistov
 
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web PlatformWordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
George Kanellopoulos
 
Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022
NAVER D2
 

What's hot (19)

JavaScript on HP webOS: Enyo and Node.js
JavaScript on HP webOS: Enyo and Node.jsJavaScript on HP webOS: Enyo and Node.js
JavaScript on HP webOS: Enyo and Node.js
 
BlackBerry10: "Built For BlackBerry (BFB)"
BlackBerry10: "Built For BlackBerry (BFB)"BlackBerry10: "Built For BlackBerry (BFB)"
BlackBerry10: "Built For BlackBerry (BFB)"
 
BACnet HMI5 - BACnet Touch Panel - BACnet Touch Screen - HMI
BACnet HMI5 - BACnet Touch Panel - BACnet Touch Screen - HMIBACnet HMI5 - BACnet Touch Panel - BACnet Touch Screen - HMI
BACnet HMI5 - BACnet Touch Panel - BACnet Touch Screen - HMI
 
Intro To webOS
Intro To webOSIntro To webOS
Intro To webOS
 
Korea linuxforum2014 html5game-sangseoklim
Korea linuxforum2014 html5game-sangseoklimKorea linuxforum2014 html5game-sangseoklim
Korea linuxforum2014 html5game-sangseoklim
 
10 things you can do to speed up your web app today 2016
10 things you can do to speed up your web app today 201610 things you can do to speed up your web app today 2016
10 things you can do to speed up your web app today 2016
 
Wordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebWordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The Nextweb
 
The Status Of Web Interoperability And Activities In China, Japan And Korea
The Status Of Web Interoperability And Activities In China, Japan And KoreaThe Status Of Web Interoperability And Activities In China, Japan And Korea
The Status Of Web Interoperability And Activities In China, Japan And Korea
 
FEDM Meetup: Introducing Mojito
FEDM Meetup: Introducing MojitoFEDM Meetup: Introducing Mojito
FEDM Meetup: Introducing Mojito
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5
 
Frontend Monoliths: Run if you can!
Frontend Monoliths: Run if you can!Frontend Monoliths: Run if you can!
Frontend Monoliths: Run if you can!
 
Amp by Google: The Present And Future Of Quick Content Delivery
Amp by Google: The Present And Future Of Quick Content DeliveryAmp by Google: The Present And Future Of Quick Content Delivery
Amp by Google: The Present And Future Of Quick Content Delivery
 
Front-end optimisation & jQuery Internals
Front-end optimisation & jQuery InternalsFront-end optimisation & jQuery Internals
Front-end optimisation & jQuery Internals
 
Palm WebOS Overview
Palm WebOS OverviewPalm WebOS Overview
Palm WebOS Overview
 
Introduction to JQuery, ASP.NET MVC and Silverlight
Introduction to JQuery, ASP.NET MVC and SilverlightIntroduction to JQuery, ASP.NET MVC and Silverlight
Introduction to JQuery, ASP.NET MVC and Silverlight
 
A Work Day Of A Web Developer
A Work Day Of A Web DeveloperA Work Day Of A Web Developer
A Work Day Of A Web Developer
 
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web PlatformWordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
 
AD114 -- Beyond the Mobile Browser? Building Rich Mobile Applications for IBM...
AD114 -- Beyond the Mobile Browser? Building Rich Mobile Applications for IBM...AD114 -- Beyond the Mobile Browser? Building Rich Mobile Applications for IBM...
AD114 -- Beyond the Mobile Browser? Building Rich Mobile Applications for IBM...
 
Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022Deview 2013 mobile browser internals and trends_20131022
Deview 2013 mobile browser internals and trends_20131022
 

Viewers also liked

Untitled Powtoon 263
Untitled Powtoon 263Untitled Powtoon 263
Untitled Powtoon 263
wowa_1998
 

Viewers also liked (17)

Bab 9 : Warisan Kesultanan Melayu
Bab 9 : Warisan Kesultanan MelayuBab 9 : Warisan Kesultanan Melayu
Bab 9 : Warisan Kesultanan Melayu
 
Nelson Engineering Brochure
Nelson Engineering BrochureNelson Engineering Brochure
Nelson Engineering Brochure
 
Ashley young
Ashley youngAshley young
Ashley young
 
Makovsky & SheSpeaks: 2016 What Women Want Research: Health & Strong Personal...
Makovsky & SheSpeaks: 2016 What Women Want Research: Health & Strong Personal...Makovsky & SheSpeaks: 2016 What Women Want Research: Health & Strong Personal...
Makovsky & SheSpeaks: 2016 What Women Want Research: Health & Strong Personal...
 
Bitácora #3...
Bitácora #3...Bitácora #3...
Bitácora #3...
 
The SPI Buyer Direct Roadmap
The SPI Buyer Direct RoadmapThe SPI Buyer Direct Roadmap
The SPI Buyer Direct Roadmap
 
Visual learning
Visual learningVisual learning
Visual learning
 
Papji - Ébredj fel és ordíts
Papji - Ébredj fel és ordítsPapji - Ébredj fel és ordíts
Papji - Ébredj fel és ordíts
 
Understanding DO-178: Importance and How It Affects Your Company
Understanding DO-178: Importance and How It Affects Your CompanyUnderstanding DO-178: Importance and How It Affects Your Company
Understanding DO-178: Importance and How It Affects Your Company
 
Bhadrachala Ramadasu kirthanalu 108 by NKM
Bhadrachala Ramadasu kirthanalu 108 by NKMBhadrachala Ramadasu kirthanalu 108 by NKM
Bhadrachala Ramadasu kirthanalu 108 by NKM
 
Rediscovering the 'WHY' of meetings and conferences
Rediscovering the 'WHY' of meetings and conferencesRediscovering the 'WHY' of meetings and conferences
Rediscovering the 'WHY' of meetings and conferences
 
Forecasting Essentials for SPI Buyer Direct
Forecasting Essentials for SPI Buyer DirectForecasting Essentials for SPI Buyer Direct
Forecasting Essentials for SPI Buyer Direct
 
Why ISO-27001 is a better choice?
Why ISO-27001 is a better choice? Why ISO-27001 is a better choice?
Why ISO-27001 is a better choice?
 
Untitled Powtoon 263
Untitled Powtoon 263Untitled Powtoon 263
Untitled Powtoon 263
 
Scholenaanbod bib 2015 2016
Scholenaanbod bib 2015 2016Scholenaanbod bib 2015 2016
Scholenaanbod bib 2015 2016
 
LYRIC_Freeliner_HANDICAP_1_2012.pdf
LYRIC_Freeliner_HANDICAP_1_2012.pdfLYRIC_Freeliner_HANDICAP_1_2012.pdf
LYRIC_Freeliner_HANDICAP_1_2012.pdf
 
Problemas Ambientales
Problemas AmbientalesProblemas Ambientales
Problemas Ambientales
 

Similar to Building a Next Generation Mobile Browser using Web technologies

Keynote Client Connectivity And The Cloud
Keynote Client Connectivity And The CloudKeynote Client Connectivity And The Cloud
Keynote Client Connectivity And The Cloud
GoogleTecTalks
 
Ugly truths about html5 moosecon - robert virkus - 2013-03-07
Ugly truths about html5   moosecon - robert virkus - 2013-03-07Ugly truths about html5   moosecon - robert virkus - 2013-03-07
Ugly truths about html5 moosecon - robert virkus - 2013-03-07
Enough Software
 
A Study of SVG-based Application Development @ OSDC 2010
A Study of SVG-based Application Development @ OSDC 2010A Study of SVG-based Application Development @ OSDC 2010
A Study of SVG-based Application Development @ OSDC 2010
Rex Tsai
 

Similar to Building a Next Generation Mobile Browser using Web technologies (20)

BB10 Leading Mobile Web Platform W3C 2013
BB10 Leading Mobile Web Platform W3C 2013BB10 Leading Mobile Web Platform W3C 2013
BB10 Leading Mobile Web Platform W3C 2013
 
Web works presso
Web works pressoWeb works presso
Web works presso
 
"BlackBerry Webworks : Apps for The Smartphone and Tablet"
"BlackBerry Webworks : Apps for The Smartphone and Tablet""BlackBerry Webworks : Apps for The Smartphone and Tablet"
"BlackBerry Webworks : Apps for The Smartphone and Tablet"
 
WebWorks Development for BlackBerry PlayBook and Smartphones
WebWorks Development for BlackBerry PlayBook and SmartphonesWebWorks Development for BlackBerry PlayBook and Smartphones
WebWorks Development for BlackBerry PlayBook and Smartphones
 
HTML5 App Dev on BlackBerry 10
HTML5 App Dev on BlackBerry 10HTML5 App Dev on BlackBerry 10
HTML5 App Dev on BlackBerry 10
 
Keynote Client Connectivity And The Cloud
Keynote Client Connectivity And The CloudKeynote Client Connectivity And The Cloud
Keynote Client Connectivity And The Cloud
 
Building Mobile Websites with Joomla
Building Mobile Websites with JoomlaBuilding Mobile Websites with Joomla
Building Mobile Websites with Joomla
 
Siruna session at Drupalcon Paris 2009
Siruna session at Drupalcon Paris 2009Siruna session at Drupalcon Paris 2009
Siruna session at Drupalcon Paris 2009
 
Drupalcamp New York 2009
Drupalcamp New York 2009Drupalcamp New York 2009
Drupalcamp New York 2009
 
The Enterprise Dilemma: Native vs. Web
The Enterprise Dilemma: Native vs. WebThe Enterprise Dilemma: Native vs. Web
The Enterprise Dilemma: Native vs. Web
 
Developing for BlackBerry 10 – Tools and SDKs by Luca Filigheddu
 Developing for BlackBerry 10 – Tools and SDKs by Luca Filigheddu Developing for BlackBerry 10 – Tools and SDKs by Luca Filigheddu
Developing for BlackBerry 10 – Tools and SDKs by Luca Filigheddu
 
Getting Started with BB Development..
Getting Started with BB Development..Getting Started with BB Development..
Getting Started with BB Development..
 
Ugly truths about html5 moosecon - robert virkus - 2013-03-07
Ugly truths about html5   moosecon - robert virkus - 2013-03-07Ugly truths about html5   moosecon - robert virkus - 2013-03-07
Ugly truths about html5 moosecon - robert virkus - 2013-03-07
 
A Study of SVG-based Application Development @ OSDC 2010
A Study of SVG-based Application Development @ OSDC 2010A Study of SVG-based Application Development @ OSDC 2010
A Study of SVG-based Application Development @ OSDC 2010
 
Sencha Web Applications Come of Age
Sencha Web Applications Come of AgeSencha Web Applications Come of Age
Sencha Web Applications Come of Age
 
The Blackberry Opportunity (RIM) 160612
The Blackberry Opportunity (RIM) 160612The Blackberry Opportunity (RIM) 160612
The Blackberry Opportunity (RIM) 160612
 
Demystifying Native, Web, and Hybrid Mobile Development on BlackBerry 10 wit...
 Demystifying Native, Web, and Hybrid Mobile Development on BlackBerry 10 wit... Demystifying Native, Web, and Hybrid Mobile Development on BlackBerry 10 wit...
Demystifying Native, Web, and Hybrid Mobile Development on BlackBerry 10 wit...
 
Decoupled Architecture and WordPress
Decoupled Architecture and WordPressDecoupled Architecture and WordPress
Decoupled Architecture and WordPress
 
HTML5 WebWorks
HTML5 WebWorksHTML5 WebWorks
HTML5 WebWorks
 
Nokia Web-Runtime Presentation (Phong Vu)
Nokia Web-Runtime Presentation (Phong Vu)Nokia Web-Runtime Presentation (Phong Vu)
Nokia Web-Runtime Presentation (Phong Vu)
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

Building a Next Generation Mobile Browser using Web technologies

  • 1. Building a Next Generation Mobile Browser Adam Stanley @n_adam_stanley October 19, 2012 1
  • 2. Hello World  Adam Stanley  Team Lead, BlackBerry Developer Relations  Likes: ninjas, bacon, JavaScript  Dislikes: cilantro, Styrofoam, JavaScript  127.0.0.1 is Waterloo, Ontario, Canada 2
  • 3. The Cast  The new BlackBerry 10 browser  http://www.blackberry.com/html5 3
  • 4. Sneak peak Everything you see in the chrome is actually Web content! “Built for the Web, using the Web” 4
  • 6. Setting the stage  Building something awesome:  The BlackBerry 10 browser  Web platform  Natively Web  Inside the browser  Optimizations  Lessons learned  Development tools 6
  • 7. How does it look at 1024 feet? Browser Application WebKit engine Web platform Multi-processing OS
  • 9. In perfect harmony Bacon Happy Tomato Mayo 9
  • 10. A browser, in harmony Rich Content Awesome Fidelity High Great User Performance Experience 10
  • 11. The next generation mobile browser “The BlackBerry 10 browser combines powerful web rendering engine capabilities with multi-threaded web view objects to render both chrome and content.” 11
  • 12. Web Platform  Framework for Web applications  The Browser, WebWorks SDK, and QNXCar2 UI  BlackBerry 10 UI elements  Multi-process launcher  Management of concurrent WebViews  Native API access from JavaScript  e.g. PPS, sharing framework, invocation framework 12
  • 13. Why Web for a browser?  Why use Web instead of Native?  Leader in HTML5 development (feature coverage)  Leader in HTML5 implementation (performance)  Leader in HTML5 developer experience (community, tooling)  Push the boundaries of what can be done  Eat our own dog food  Stronger browser  Stronger platform 13
  • 14. Ingredient 1 : Fidelity  Support the web really well  Powered by WebKit  HTML5, CSS3  Flash  WebGL http://www.html5test.com  Driven by strong standards support 14
  • 15. Ingredient 2 : Performance  Hardware accelerated CSS3 transformations (GPU)  Touch Input events optimized for quick response times  Progressive page loading  WebKit engine optimized for kinetic scrolling (iScroll not needed!) 15
  • 16. Webviews 16
  • 17. WebView  Independent Web content containers  Similar to a browser “tab”, but layered on top of each other 17
  • 18. Two types of WebViews  “Chrome” WebViews are granted special privileges  WebView API access  Native API plugin  Relaxed Web runtime constraints (e.g. FileSystem sandbox)  “Content” WebViews are optimized for websites  Large backing store  Access to disk cache  Can scroll the webview without repainting page content 18
  • 19. Inside the Browser Application RPC Navigation Bar Weblauncher Chrome (Webview) (native) Create (Webview) index.html RPC Native API qnx.* App Menu JS/Native Binding (Webview) Chrome Process 19
  • 20. Inside the Browser Application Navigation Bar Weblauncher Chrome Webview Create (native) Webview Native API App Menu Webview Chrome Process Content Process (tabs) smh.com.au starbucks.com blackberry.com aircanada.com ... 20
  • 21. Ingredient 3 : Experience  Intuitive  You already know how to use it  Integrated & Contextual  It knows what you want to do next  Moments of charm  It’ s more than just drawing web pages 21
  • 22. Intuitive “Look and Feel”  BlackBerry 10 native UI guidelines  UI elements:  Action bar  Crosscut menus  Viewers/cards  Form controls  Sheets  Dialogs 22
  • 23. Native UI in the browser  Web versions of native BlackBerry 10 UI  Each UI element defined in its own web view  Uses HTML, CSS, JavaScript, SVG, images  CSS transitions  Hardware accelerated compositing  Smooth animations
  • 24. Contextual  It knows what you want to do next  Contextual menu  Keyboard 24
  • 25. Moments of charm  Native hardware integration  Camera  Disk cache  Sensors  Geolocation  Native software integration:  Invocation framework  Instant messaging http://people.opera.com/danield/html5/explode
  • 26. Developers  Remote Web Inspector  Debug web content running from a simulator or live device 26
  • 27. Developers  User Agent  Leaving the past behind  Reducing poor user experiences targeting LCD browsers Mozilla/5.0 (BB10; <Device Model>) AppleWebKit/<WebKit Version> (KHTML, like Gecko) Version/<BB Version #> Mobile Safari/<WebKit Version>  Desktop mode  Can emulate desktop Chrome user agent on demand Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/<WebKit Version> (KHTML, like Gecko) Chrome/21.0.1180.75 Safari/<WebKit Version>
  • 28. Lessons learned  Many interesting problems:  Disk access  Window animations  Localization  Web overlays  Access to screen 28
  • 29. Lessons learned  Rules are meant to be broken …  New CSS :  webkit-overflow-scrolling: -blackberry-touch  text-overflow: -blackberry-fade  data-blackberry-end-selection-on-touch=“on” 29
  • 30. Lessons learned  Some problems remain unsolved:  Animating block height  Efficient large data transfer  The web is still fundamentally single-threaded 30
  • 31. Lessons learned  Conclusion: “A browser built for the Web using the Web”  Yes, good performance is possible  Yes, rich and responsive UI is possible  Yes, highly interactive web apps are possible  Proof:  BlackBerry 10 31
  • 32. The Future  The bar has been raised:  We want everyone to develop Web applications as powerful as the new BlackBerry 10 Browser  The evolution continues:  The Web engine is constantly getting faster and more powerful  This technology will be coming to WebWorks  As the “Open Web Platform” evolves, more will be possible across platforms 32
  • 34.
  • 35. Thank you Adam Stanley @n_adam_stanley October 19, 2012