PrivateBrowsing¶
What is PrivateBrowsing?¶
Messages shown inside about:privatebrowsing
(incognito) content page. This messaging surface allows experimentation on content shown (promotion and info section) when new private window or tab is opened.
Example of a PrivateBrowsing window¶
Testing PrivateBrowsing¶
Via the dev tools:¶
In the search tab go to
about:config
, setbrowser.newtabpage.activity-stream.asrouter.devtoolsEnabled
totrue
Open a new tab, in the search tab go to
about:asrouter
On the left navigation, click on
Private Browsing
This shows all example messages developed for
about:privatebrowsing
messaging surfaceYou can directly modify the message in the text area with your changes or by pasting your custom message JSON. Ensure that all required properties are covered according to the Private Browsing Schema
To view message in private browsing window, click the circle to select respective message. Then hit the blue
Open a Private Browsing Window
at the top of the screen. This opens new private window with promotion and info section updated with custom message.
To reset the chosen PrivateBrowsing window and choose another, click
Reset Message State
at the top of the screen
Via Experiments:¶
You can test any privatebrowsing
custom message UI by creating an experiment. Messaging Journey captures creating experiments via Nimbus.
Example of messaging in privatebrowsing window¶
{
"id": "TEST_PBM_PROMO",
"template": "pb_newtab",
"content": {
"promoEnabled": true,
"promoType": "VPN",
"infoEnabled": true,
"infoBody": "Nightly clears your search and browsing history",
"infoLinkText": "Click Here to Learn More",
"infoTitleEnabled": false,
"promoLinkType": "button",
"promoLinkText": "fluent:about-private-browsing-prominent-cta",
"promoSectionStyle": "below-search",
"promoHeader": "Get privacy protections",
"promoTitle": "Hide browsing activity and location with Mozilla VPN. One click creates a secure connection",
"promoTitleEnabled": true,
"promoImageLarge": "chrome://browser/content/assets/moz-vpn.svg",
"promoButton": {
"action": {
"type": "OPEN_URL",
"data": {
"args": "https://vpn.mozilla.org/"
}
}
}
},
"targeting": "firefoxVersion >= 89",
"frequency": {
"lifetime": 3
}
}