diff --git a/chromium/third_party/WebKit/Source/bindings/scripts/aggregate_generated_bindings.py b/chromium/third_party/WebKit/Source/bindings/scripts/aggregate_generated_bindings.py
index 264e069eccd6d3cc109b60f6456a616bb7d1efdb..73dbb31116e042b8d77df984082926aa7e727282 100755
--- a/chromium/third_party/WebKit/Source/bindings/scripts/aggregate_generated_bindings.py
+++ b/chromium/third_party/WebKit/Source/bindings/scripts/aggregate_generated_bindings.py
@@ -222,7 +222,7 @@ def main(args):
                 if hash(meta_data['name']) % total_partitions == partition]
         file_contents = generate_content(component_dir,
                                          files_meta_data_this_partition)
-        write_content(file_contents, file_name)
+        write_content(file_contents, abs(file_name))
 
 
 if __name__ == '__main__':
diff --git a/chromium/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py b/chromium/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py
index 778a87ec79b9d11b1959bd6d4f80820616e90b29..021017ac09998f3a154b12282212fa204d15f8da 100644
--- a/chromium/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py
+++ b/chromium/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py
@@ -77,6 +77,7 @@ from v8_globals import includes, interfaces
 import v8_interface
 import v8_types
 from v8_utilities import capitalize, cpp_name, conditional_string, v8_class_name
+from utilities import abs
 
 
 class CodeGeneratorV8(object):
@@ -197,7 +198,7 @@ def runtime_enabled_if(code, runtime_enabled_function_name):
 def main(argv):
     # If file itself executed, cache templates
     try:
-        cache_dir = argv[1]
+        cache_dir = abs(argv[1])
         dummy_filename = argv[2]
     except IndexError as err:
         print 'Usage: %s CACHE_DIR DUMMY_FILENAME' % argv[0]
diff --git a/chromium/third_party/WebKit/Source/bindings/scripts/idl_compiler.py b/chromium/third_party/WebKit/Source/bindings/scripts/idl_compiler.py
index 6728aff45c10cadb38a7d536c0c5c8e7dd531e08..e1555546ec81a9906894dc16f02bac08c3271a97 100755
--- a/chromium/third_party/WebKit/Source/bindings/scripts/idl_compiler.py
+++ b/chromium/third_party/WebKit/Source/bindings/scripts/idl_compiler.py
@@ -40,7 +40,7 @@ import sys
 
 from code_generator_v8 import CodeGeneratorV8
 from idl_reader import IdlReader
-from utilities import write_file
+from utilities import write_file, abs
 
 
 def parse_options():
@@ -132,9 +132,9 @@ class IdlCompilerV8(IdlCompiler):
 def main():
     options, idl_filename = parse_options()
     idl_compiler = IdlCompilerV8(
-        options.output_directory,
-        cache_directory=options.cache_directory,
-        interfaces_info_filename=options.interfaces_info_file,
+        abs(options.output_directory),
+        cache_directory=abs(options.cache_directory),
+        interfaces_info_filename=abs(options.interfaces_info_file),
         only_if_changed=options.write_file_only_if_changed)
     idl_compiler.compile_file(idl_filename)