Closed
Bug 908083
Opened 11 years ago
Closed 11 years ago
B2G STK: support "browser termination event" Envelope command
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.2 C3(Oct25)
People
(Reporter: gwang, Assigned: gwang)
References
Details
Attachments
(3 files, 13 obsolete files)
(deleted),
patch
|
allstars.chh
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
Per TS 102.223
If the browser termination event is part of the event list (as set up by the last SET UP EVENT LIST command, see
clause 6.4.16), then when the browser is terminated either by the user action or by an error, the terminal shall inform the
UICC that this has occurred, by using the ENVELOPE (EVENT DOWNLOAD - browser termination) command as
defined in clause 7.5.9.2.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #798746 -
Flags: review?(allstars.chh)
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Comment on attachment 798746 [details] [diff] [review]
B2G STK: support "browser termination event" Envelope command
Review of attachment 798746 [details] [diff] [review]:
-----------------------------------------------------------------
It seems you forgot updating IDL.
Please split your patches to
Part 1: IDL.
Part 2: implementation.
Part 3: tests.
::: dom/system/gonk/ril_worker.js
@@ +2635,5 @@
> + command.deviceId = {
> + sourceId: STK_DEVICE_ID_ME,
> + destinationId: STK_DEVICE_ID_SIM
> + };
> + command.terminationCause=command.event.terminationCause;
Where does terminationCause come from ?
Attachment #798746 -
Flags: review?(allstars.chh) → review-
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Yoshi Huang[:allstars.chh][:yoshi] from comment #2)
> Comment on attachment 798746 [details] [diff] [review]
> B2G STK: support "browser termination event" Envelope command
>
> Review of attachment 798746 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> It seems you forgot updating IDL.
>
> Please split your patches to
> Part 1: IDL.
> Part 2: implementation.
> Part 3: tests.
>
> ::: dom/system/gonk/ril_worker.js
> @@ +2635,5 @@
> > + command.deviceId = {
> > + sourceId: STK_DEVICE_ID_ME,
> > + destinationId: STK_DEVICE_ID_SIM
> > + };
> > + command.terminationCause=command.event.terminationCause;
>
> Where does terminationCause come from ?
Oh...yes I forget IDL part...
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #798746 -
Attachment is obsolete: true
Attachment #799310 -
Flags: review?(allstars.chh)
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #799312 -
Flags: review?(allstars.chh)
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #799314 -
Flags: review?(allstars.chh)
Assignee | ||
Comment 7•11 years ago
|
||
Try server result pass!
https://tbpl.mozilla.org/?tree=Try&rev=90b402b69db8
Comment on attachment 799310 [details] [diff] [review]
Part1: "Browser Termination" event IDL
Review of attachment 799310 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/icc/interfaces/SimToolKit.idl
@@ +634,5 @@
> + /**
> + * This object shall contain the browser termination cause.
> + * See TZ 102 223 8.51
> + */
> + unsigned short terminationCause;
Please add the constants for cause in nsIDOMIccManager.
Attachment #799310 -
Flags: review?(allstars.chh)
Comment on attachment 799312 [details] [diff] [review]
Part2: "Browser Termination" event implement in RIL
Review of attachment 799312 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/ril_worker.js
@@ +2635,5 @@
> + command.deviceId = {
> + sourceId: STK_DEVICE_ID_ME,
> + destinationId: STK_DEVICE_ID_SIM
> + };
> + command.terminationCause=command.event.terminationCause;
nit, space between operators.
Attachment #799312 -
Flags: review?(allstars.chh) → review+
Attachment #799314 -
Flags: review?(allstars.chh) → review+
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #799312 -
Attachment is obsolete: true
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #799310 -
Attachment is obsolete: true
Attachment #799328 -
Flags: review?(allstars.chh)
Assignee | ||
Comment 12•11 years ago
|
||
Attachment #799328 -
Attachment is obsolete: true
Attachment #799328 -
Flags: review?(allstars.chh)
Attachment #799334 -
Flags: review?(allstars.chh)
Comment on attachment 799334 [details] [diff] [review]
Part1: "Browser Termination" event IDL. v3
Review of attachment 799334 [details] [diff] [review]:
-----------------------------------------------------------------
Please update the comments for the terminationCause.
Ask for a sr? to Jonas.
::: dom/icc/interfaces/SimToolKit.idl
@@ +632,5 @@
> + unsigned short eventType;
> +
> + /**
> + * This object shall contain the browser termination cause.
> + * See TZ 102 223 8.51
The cause of this event,
one of nsIDOMIccManager.STK_BROWSER_TERMINATION_CAUSE_USER and ...
Attachment #799334 -
Flags: superreview?(jonas)
Attachment #799334 -
Flags: review?(allstars.chh)
Attachment #799334 -
Flags: review+
Assignee | ||
Comment 14•11 years ago
|
||
Attachment #799334 -
Attachment is obsolete: true
Attachment #799334 -
Flags: superreview?(jonas)
Attachment #799343 -
Flags: superreview?(jonas)
Assignee | ||
Comment 15•11 years ago
|
||
Attachment #799325 -
Attachment is obsolete: true
Assignee | ||
Comment 16•11 years ago
|
||
Attachment #799314 -
Attachment is obsolete: true
Comment on attachment 799343 [details] [diff] [review]
Part1: "Browser Termination" event IDL. v4
Review of attachment 799343 [details] [diff] [review]:
-----------------------------------------------------------------
Over to Hsin-Yi
Attachment #799343 -
Flags: superreview?(jonas) → review?(htsai)
Comment 18•11 years ago
|
||
Comment on attachment 799343 [details] [diff] [review]
Part1: "Browser Termination" event IDL. v4
Review of attachment 799343 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with comments addressed. Thank you.
::: dom/icc/interfaces/SimToolKit.idl
@@ +632,5 @@
> + unsigned short eventType;
> +
> + /**
> + * This object shall contain the browser termination cause.
> + * See TZ 102 223 8.51, It shall be one of following:
nit: See TZ 102 223 8.51. <-- period here ;)
::: dom/icc/interfaces/nsIDOMIccManager.idl
@@ +229,5 @@
> * @param command
> * Command received from ICC. See MozStkCommand.
> * @param response
> * The response that will be sent to ICC.
> * @see MozStkResponse for the detail of response.
As a new MozStkBrowserTerminationEvent is created, we need to modify the comments "@param event" for sendStkEventDownload(), right?
Attachment #799343 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 19•11 years ago
|
||
According to reviewer's suggestion, modify comment in SimToolKit.idl and nsIDOMIccManager.idl
Attachment #799343 -
Attachment is obsolete: true
Assignee | ||
Comment 20•11 years ago
|
||
Attachment #816921 -
Attachment is obsolete: true
Component: DOM: Device Interfaces → RIL
Product: Core → Boot2Gecko
Version: Trunk → unspecified
Please add r=me and run the try-server before landing these patches.
Assignee | ||
Comment 22•11 years ago
|
||
I do a little modification in Part3 since the change of ReadUint32()->ReadInt32().
Latest try-server result in below link:
https://tbpl.mozilla.org/?tree=Try&rev=c9a8b5b21a48
Assignee | ||
Comment 23•11 years ago
|
||
I try to apply patch on current codebase and find we need to use "ReadInt32" instead of "ReadUint32" now. So here's the new patch with this change :)
Attachment #805827 -
Attachment is obsolete: true
Attachment #817116 -
Flags: review?(allstars.chh)
Attachment #817116 -
Flags: review?(allstars.chh) → review+
Assignee | ||
Comment 24•11 years ago
|
||
Add reviewer = Yoshi into patch title.
Attachment #816935 -
Attachment is obsolete: true
Please rebase your patches, I got conflict when trying pushing them.
Assignee | ||
Comment 26•11 years ago
|
||
Rebase conflict file.
Attachment #819660 -
Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/c44d0a4ab944
https://hg.mozilla.org/mozilla-central/rev/f5dbf24ff1f2
https://hg.mozilla.org/mozilla-central/rev/dcab3b214724
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.2 C3(Oct25)
CC Anshul here.
You need to log in
before you can comment on or make changes to this bug.
Description
•