Commit Graph

4 Commits

Author SHA1 Message Date
Samy Dindane
f85212ef99 Bug 1142609 - Fix PEP 8 E128 warnings in dom/bindings's Python code. r=peterv 2015-08-10 18:26:29 +02:00
Gregory Szorc
b1f55466da Bug 979665 - Properly detect WebIDL type changes; r=froydnj
This patch fixes a bug in WebIDL code generation that could be triggered
if an input file changed locations but the original file remained on
disk. When computing the set of source .webidl files to perform code
generation on, we failed to prune files that were no longer part of the
active set of input files. References to files in old locations would
get pulled in to the regeneration set, leading to a cryptic KeyError
during code generation.
2014-03-05 23:21:02 -08:00
Gregory Szorc
85fb4f3b9e Bug 950370 - Capture WebIDL example interfaces in moz.build; r=glandium
Previously, the set of WebIDL example interfaces to build was hardcoded
in the mozwebidlcodegen Python package. Unfortunately, the example
interfaces in that set were dependent on test-only bindings files,
resulting in build failures when tests were disabled (because those
test-only bindings were defined in a test directory).

In this patch, we now declare example interfaces in moz.build files
so the set of example interfaces lives next to the set of defined
bindings files. The example interfaces are defined in a test moz.build
file - in the same file declaring the bindings files that contain the
interfaces - so the example interfaces only get picked up if the
corresponding bindings are defined.

We could probably switch WebIDL moz.build variables to use lists with
flags. That would be good followup fodder. For now, let's fix the build.
2013-12-15 11:43:47 -08:00
Gregory Szorc
e56a89ef58 Bug 928195 - Part 3: Consolidate all WebIDL Python logic into mozwebidl module; r=bz, froydnj 2013-11-18 13:02:11 -08:00