forked from mirrors/gecko-dev
		
	 630b1a8f1f
			
		
	
	
		630b1a8f1f
		
	
	
	
	
		
			
			This introduces `mainview-with-header` attribute for panels that their mainview should have a header (no matter where they appear); and `has-custom-header` for panels that their panelview (not necessarily a mainview) has a custom design for a header, one that headerText setter can't anticipate in advance (due to UX needs that may arise). If one of these attributes are set on the panel, this signals headerText that the panelview's header should NOT be removed and that the markup should be respected. Differential Revision: https://phabricator.services.mozilla.com/D196671
		
			
				
	
	
		
			55 lines
		
	
	
	
		
			2.8 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
	
		
			2.8 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!-- This Source Code Form is subject to the terms of the Mozilla Public
 | |
|    - License, v. 2.0. If a copy of the MPL was not distributed with this
 | |
|    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 | |
| 
 | |
| <html:template id="template-permission-popup">
 | |
| <panel id="permission-popup"
 | |
|        class="panel-no-padding"
 | |
|        type="arrow"
 | |
|        role="alertdialog"
 | |
|        noautofocus="true"
 | |
|        aria-labelledby="permission-popup-mainView-panel-header-span"
 | |
|        onpopupshown="gPermissionPanel.onPopupShown(event);"
 | |
|        onpopuphidden="gPermissionPanel.onPopupHidden(event);"
 | |
|        orient="vertical">
 | |
|   <panelmultiview id="permission-popup-multiView"
 | |
|                   mainViewId="permission-popup-mainView">
 | |
|     <panelview id="permission-popup-mainView"
 | |
|                role="document"
 | |
|                mainview-with-header="true">
 | |
|       <!-- The panel header text value changes dynamically by browser-sitePermissionPanel.js,
 | |
|          - that's why the panel header box needs to remain hardcoded in the markup.
 | |
|          - instead of being handled by PanelMultiView.sys.mjs. -->
 | |
|       <box id="permission-popup-mainView-panel-header" class="panel-header">
 | |
|         <html:h1>
 | |
|           <html:span id="permission-popup-mainView-panel-header-span"/>
 | |
|         </html:h1>
 | |
|       </box>
 | |
|       <toolbarseparator></toolbarseparator>
 | |
|       <hbox class="permission-popup-section">
 | |
|         <vbox id="permission-popup-permissions-content" flex="1" role="group">
 | |
|           <vbox id="permission-popup-permission-list">
 | |
|             <vbox id="permission-popup-permission-list-default-anchor" class="permission-popup-permission-list-anchor"/>
 | |
|             <vbox class="permission-popup-permission-list-anchor" anchorfor="3rdPartyStorage">
 | |
|               <vbox id="permission-popup-storage-access-permission-list-header">
 | |
|                 <hbox align="center" role="group">
 | |
|                   <image class="permission-popup-permission-icon storage-access-icon"/>
 | |
|                   <label data-l10n-id="identity-permissions-storage-access-header" class="permission-popup-permission-header-label"/>
 | |
|                 </hbox>
 | |
|                 <description id="permission-popup-storage-access-permission-list-hint" data-l10n-id="identity-permissions-storage-access-hint"></description>
 | |
|                 <hbox>
 | |
|                   <html:a is="moz-support-link"
 | |
|                           id="permission-popup-storage-access-permission-learn-more"
 | |
|                           data-l10n-id="identity-permissions-storage-access-learn-more"
 | |
|                           support-page="site-information-third-party-access" />
 | |
|                 </hbox>
 | |
|               </vbox>
 | |
|             </vbox>
 | |
|           </vbox>
 | |
|           <description id="permission-popup-permission-reload-hint" data-l10n-id="identity-permissions-reload-hint"></description>
 | |
|         </vbox>
 | |
|       </hbox>
 | |
|     </panelview>
 | |
|   </panelmultiview>
 | |
| </panel>
 | |
| </html:template>
 |