Closed Bug 1285311 Opened 8 years ago Closed 8 years ago

Mark PushSubscriptionOptions.applicationServerKey as SameObject

Categories

(Core :: DOM: Push Subscriptions, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: lina, Assigned: lina)

Details

(Whiteboard: btpp-active)

Attachments

(1 file, 1 obsolete file)

Comment on attachment 8768867 [details] [diff] [review]
appServerKeySameObject.patch

Review of attachment 8768867 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/push/PushSubscriptionOptions.cpp
@@ +23,3 @@
>  }
>  
> +PushSubscriptionOptions::~PushSubscriptionOptions() {

{ in a new line

::: dom/push/test/test_register.html
@@ +66,5 @@
>    var pushSubscription;
>    add_task(function* subscribe() {
>      pushSubscription = yield registration.pushManager.subscribe();
> +    is(pushSubscription.options.applicationServerKey, null,
> +      "Subscription should not have an app server key");

here too

::: dom/push/test/test_register_key.html
@@ +111,5 @@
>      });
>      is(pushSubscription.endpoint, "https://example.com/push/1",
>        "Wrong endpoint for subscription with key");
> +    is(pushSubscription.options.applicationServerKey,
> +      pushSubscription.options.applicationServerKey,

identation
Attachment #8768867 - Flags: review?(amarchesini) → review+
Fixed style issues, carrying r+.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=b1b10b75f3fc
Attachment #8768867 - Attachment is obsolete: true
Attachment #8769194 - Flags: review+
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/99ccc77aa6fc
Mark `PushSubscriptionOptions.applicationServerKey` as `[SameObject]`. r=baku
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/99ccc77aa6fc
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: