Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: run.py

Issue 29339735: Issue 3935 - Force wmode to transparent to enable more flash screenshots
Patch Set: Created April 15, 2016, 11 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # coding: utf-8 2 # coding: utf-8
3 3
4 import argparse 4 import argparse
5 import datetime 5 import datetime
6 import errno 6 import errno
7 import hashlib 7 import hashlib
8 import io 8 import io
9 import json 9 import json
10 import os 10 import os
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 profile = FirefoxProfile( 133 profile = FirefoxProfile(
134 addons=[ 134 addons=[
135 crawlerxpi, 135 crawlerxpi,
136 abpxpi, 136 abpxpi,
137 ], 137 ],
138 preferences={ 138 preferences={
139 'browser.tabs.warnOnCloseOtherTabs': False, 139 'browser.tabs.warnOnCloseOtherTabs': False,
140 'browser.uitour.enabled': False, 140 'browser.uitour.enabled': False,
141 'prompts.tab_modal.enabled': False, 141 'prompts.tab_modal.enabled': False,
142 'xpinstall.signatures.required': False, 142 'xpinstall.signatures.required': False,
143 'plugins.force.wmode': 'transparent',
143 } 144 }
144 ) 145 )
145 146
146 abpsettings = os.path.join(profile.profile, 'adblockplus') 147 abpsettings = os.path.join(profile.profile, 'adblockplus')
147 os.makedirs(abpsettings) 148 os.makedirs(abpsettings)
148 with open(os.path.join(abpsettings, 'patterns.ini'), 'w') as handle: 149 with open(os.path.join(abpsettings, 'patterns.ini'), 'w') as handle:
149 print >>handle, '# Adblock Plus preferences' 150 print >>handle, '# Adblock Plus preferences'
150 print >>handle, 'version=4' 151 print >>handle, 'version=4'
151 for url in parameters.filters: 152 for url in parameters.filters:
152 if '=' in url: 153 if '=' in url:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) 192 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
192 DEPENDENCY_SCRIPT = os.path.join(BASE_DIR, "ensure_dependencies.py") 193 DEPENDENCY_SCRIPT = os.path.join(BASE_DIR, "ensure_dependencies.py")
193 194
194 try: 195 try:
195 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT, BASE_DIR]) 196 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT, BASE_DIR])
196 except subprocess.CalledProcessError as e: 197 except subprocess.CalledProcessError as e:
197 print >>sys.stderr, e 198 print >>sys.stderr, e
198 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!" 199 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!"
199 200
200 run() 201 run()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld