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

Side by Side Diff: run.py

Issue 29338442: Issue 3815 - Fix TabAllocator. Now it returns tab with initialized outerWindowID (Closed)
Patch Set: address comment about comment Created Sept. 15, 2016, 3:04 p.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 | « lib/crawler.js ('k') | 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 os.close(handle) 132 os.close(handle)
133 cleanup.append(abpxpi) 133 cleanup.append(abpxpi)
134 packager.createBuild(parameters.abpdir, outFile=abpxpi, releaseBuild =True) 134 packager.createBuild(parameters.abpdir, outFile=abpxpi, releaseBuild =True)
135 135
136 profile = FirefoxProfile( 136 profile = FirefoxProfile(
137 addons=[ 137 addons=[
138 crawlerxpi, 138 crawlerxpi,
139 abpxpi, 139 abpxpi,
140 ], 140 ],
141 preferences={ 141 preferences={
142 'browser.startup.homepage': 'about:blank',
142 'browser.tabs.warnOnCloseOtherTabs': False, 143 'browser.tabs.warnOnCloseOtherTabs': False,
143 'browser.uitour.enabled': False, 144 'browser.uitour.enabled': False,
144 'prompts.tab_modal.enabled': False, 145 'prompts.tab_modal.enabled': False,
146 'startup.homepage_welcome_url': 'about:blank',
147 'startup.homepage_welcome_url.additional': 'about:blank',
145 'xpinstall.signatures.required': False, 148 'xpinstall.signatures.required': False,
146 } 149 }
147 ) 150 )
148 151
149 abpsettings = os.path.join(profile.profile, 'adblockplus') 152 abpsettings = os.path.join(profile.profile, 'adblockplus')
150 os.makedirs(abpsettings) 153 os.makedirs(abpsettings)
151 with open(os.path.join(abpsettings, 'patterns.ini'), 'w') as handle: 154 with open(os.path.join(abpsettings, 'patterns.ini'), 'w') as handle:
152 print >>handle, '# Adblock Plus preferences' 155 print >>handle, '# Adblock Plus preferences'
153 print >>handle, 'version=4' 156 print >>handle, 'version=4'
154 for url in parameters.filters: 157 for url in parameters.filters:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) 197 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
195 DEPENDENCY_SCRIPT = os.path.join(BASE_DIR, "ensure_dependencies.py") 198 DEPENDENCY_SCRIPT = os.path.join(BASE_DIR, "ensure_dependencies.py")
196 199
197 try: 200 try:
198 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT, BASE_DIR]) 201 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT, BASE_DIR])
199 except subprocess.CalledProcessError as e: 202 except subprocess.CalledProcessError as e:
200 print >>sys.stderr, e 203 print >>sys.stderr, e
201 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!" 204 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!"
202 205
203 run() 206 run()
OLDNEW
« no previous file with comments | « lib/crawler.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld