Open
Bug 1508757
Opened 7 years ago
Updated 3 years ago
Make NOT_REMOTE a real remote type
Categories
(Core :: DOM: Content Processes, enhancement, P3)
Core
DOM: Content Processes
Tracking
()
NEW
People
(Reporter: nika, Unassigned)
Details
Currently remoteType values are recorded as one of a series of string values. These are only set for remote browsers, so code which needs to handle the nonremote case handles it as 'E10SUtils.NOT_REMOTE', which is 'null'.
Unfortunately this makes it too easy to accidentally confuse unset/not-passed and set, but not remote when passing around remoteType. It'd probably be a good idea to make E10SUtils.NOT_REMOTE be 'notremote' or similar to avoid this case.
| Reporter | ||
Comment 1•7 years ago
|
||
:bobowen, IIRC you implemented this originally - so ni? for feedback on this idea.
Flags: needinfo?(bobowencode)
Comment 2•7 years ago
|
||
(In reply to :Nika Layzell from comment #1)
> :bobowen, IIRC you implemented this originally - so ni? for feedback on this
> idea.
Yeah, I'm fine with that.
I originally tried to make it some sort of enum, but I found getting that to work well between JavaScript and c++ was not easy.
I also had the problem of different kinds of web content process, for which (as you know) I came up with the crude but simple hack of them starting with "web".
Again maybe some sort of flag system would suit that better, but at least at the time strings seemed to be the only thing that were easy to pass around, not sure if that has changed.
By the way I hated the name remoteType, but "remote" was already used so heavily as an alias for content process, that anything else seemed more confusing.
Flags: needinfo?(bobowencode)
Updated•6 years ago
|
Priority: -- → P3
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•