Closed
Bug 1513876
Opened 5 years ago
Closed 5 years ago
Implement a API to register a toplevel window global actor.
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Core
DOM: Core & HTML
Tracking
()
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: jdai, Assigned: jdai)
References
Details
Attachments
(1 file)
No description provided.
Updated•5 years ago
|
Priority: -- → P2
Assignee | ||
Comment 1•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=35628e1ae111c788b7997e001019f67e223e9f9a
Assignee | ||
Comment 2•5 years ago
|
||
This bug will provide registering a Window Actor and an Actor Descriptor Store which holds a mapping from string names to immutable actor configuration options. [ChromeOnly] partial namespace ChromeUtils { // Register a new toplevel window global actor. This method may only be // called in the parent process. |name| must be globally unique. [Throws] void registerWindowActor(DOMString name, WindowActorOptions options); }; dictionary WindowActorOptions { // These fields are used for configuring individual sides of the actor. required WindowActorSidedOptions parent; required WindowActorSidedOptions child; }; dictionary WindowActorSidedOptions { // The module path which should be loaded for the actor on this side. required DOMString module; };
Assignee | ||
Comment 3•5 years ago
|
||
|module| is a keyword of python, I'll change to |moduleURI| in the webidl file. (In reply to John Dai[:jdai] from comment #2) > dictionary WindowActorSidedOptions { > // The module path which should be loaded for the actor on this side. > required DOMString module; > }; 0:06.01 Traceback (most recent call last): 0:06.01 File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main 0:06.02 "__main__", fname, loader, pkg_name) 0:06.02 File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code 0:06.02 exec code in run_globals 0:06.02 File "/Users/jdai/src/gecko/python/mozbuild/mozbuild/action/webidl.py", line 19, in <module> 0:06.02 sys.exit(main(sys.argv[1:])) 0:06.02 File "/Users/jdai/src/gecko/python/mozbuild/mozbuild/action/webidl.py", line 15, in main 0:06.02 manager.generate_build_files() 0:06.02 File "/Users/jdai/src/gecko/dom/bindings/mozwebidlcodegen/__init__.py", line 247, in generate_build_files 0:06.02 self._parse_webidl() 0:06.02 File "/Users/jdai/src/gecko/dom/bindings/mozwebidlcodegen/__init__.py", line 332, in _parse_webidl 0:06.02 parser.parse(data, path) 0:06.02 File "/Users/jdai/src/gecko/dom/bindings/parser/WebIDL.py", line 7009, in parse 0:06.02 self._productions.extend(self.parser.parse(lexer=self.lexer, tracking=True)) 0:06.02 File "/Users/jdai/src/gecko/other-licenses/ply/ply/yacc.py", line 263, in parse 0:06.02 return self.parseopt(input,lexer,debug,tracking,tokenfunc) 0:06.02 File "/Users/jdai/src/gecko/other-licenses/ply/ply/yacc.py", line 792, in parseopt 0:06.02 tok = self.errorfunc(errtoken) 0:06.02 File "/Users/jdai/src/gecko/dom/bindings/parser/WebIDL.py", line 6948, in p_error 0:06.02 raise WebIDLError("invalid syntax", [Location(self.lexer, p.lineno, p.lexpos, self._filename)]) 0:06.02 WebIDL.WebIDLError: error: invalid syntax, /Users/jdai/src/gecko/obj-firefox/dom/bindings/ChromeUtils.webidl line 517:21 0:06.02 required DOMString module; 0:06.02 ^
Assignee | ||
Comment 4•5 years ago
|
||
Try looks good: https://treeherder.mozilla.org/#/jobs?repo=try&revision=84b5878fcbf166dccad0021e0f586b5f2ad3c81e
Assignee | ||
Comment 5•5 years ago
|
||
Implement register a toplevel window global actor.
Pushed by jdai@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3280e1de13ec Implement register a toplevel window global actor. r=nika
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd7d39e435d3 Add missing commas. r=eslint-fix
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3280e1de13ec https://hg.mozilla.org/mozilla-central/rev/fd7d39e435d3
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Updated•5 years ago
|
Fission Milestone: --- → M1
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•