Closed
Bug 1265279
Opened 9 years ago
Closed 9 years ago
Web Manifest: Implement window.oninstall
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: marcosc, Assigned: marcosc)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-complete, Whiteboard: btpp-active)
Attachments
(1 file, 3 obsolete files)
11.36 KB,
patch
|
Details | Diff | Splinter Review |
Implement the window.oninstall event handler attribute.
Assignee | ||
Updated•9 years ago
|
Blocks: webmanifest
Updated•9 years ago
|
Whiteboard: btpp-fixlater
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → mcaceres
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 1•9 years ago
|
||
Baku, does this look ok? The event is supposed to be fired by the user agent when a "progressive web app" is successfully installed somewhere (e.g., user's homescreen on a mobile device).
Attachment #8753751 -
Flags: feedback?(amarchesini)
Comment 2•9 years ago
|
||
Comment on attachment 8753751 [details] [diff] [review]
0001-Bug-1265279-Web-Manifest-Implement-window.oninstall.patch
Review of attachment 8753751 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/ipc/manifestMessages.js
@@ +69,5 @@
> + const ev = new Event("install");
> + const response = makeMsgResponse(id);
> + if (!content || content.top !== content) {
> + let msg = "Can only dispatch install event on top-level browsing contexts.";
> + response.result = serializeError(new Error(msg));
should we localize this error message?
Attachment #8753751 -
Flags: feedback?(bugs)
Attachment #8753751 -
Flags: feedback?(amarchesini)
Attachment #8753751 -
Flags: feedback+
Updated•9 years ago
|
Attachment #8753751 -
Flags: feedback?(bugs) → feedback+
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Andrea Marchesini (:baku) from comment #2)
> Comment on attachment 8753751 [details] [diff] [review]
> 0001-Bug-1265279-Web-Manifest-Implement-window.oninstall.patch
>
> Review of attachment 8753751 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: dom/ipc/manifestMessages.js
> @@ +69,5 @@
> > + const ev = new Event("install");
> > + const response = makeMsgResponse(id);
> > + if (!content || content.top !== content) {
> > + let msg = "Can only dispatch install event on top-level browsing contexts.";
> > + response.result = serializeError(new Error(msg));
>
> should we localize this error message?
Right now, the error would only be used internally so I don't think it's necessary.
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8753751 -
Attachment is obsolete: true
Attachment #8755314 -
Flags: review?(amarchesini)
Assignee | ||
Comment 5•9 years ago
|
||
Assignee | ||
Comment 6•9 years ago
|
||
Assignee | ||
Comment 7•9 years ago
|
||
... no idea why it worked for me locally... mochitests are gross.
Attachment #8755314 -
Attachment is obsolete: true
Attachment #8755314 -
Flags: review?(amarchesini)
Attachment #8755683 -
Flags: review?(amarchesini)
Assignee | ||
Comment 8•9 years ago
|
||
Updated•9 years ago
|
Whiteboard: btpp-fixlater → btpp-active
Updated•9 years ago
|
Attachment #8755683 -
Flags: review?(amarchesini) → review+
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8755683 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 10•9 years ago
|
||
Keywords: checkin-needed
Comment 11•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Updated•9 years ago
|
Keywords: dev-doc-needed
Updated•9 years ago
|
Comment 12•9 years ago
|
||
Added an entry in:
https://developer.mozilla.org/en-US/docs/Web/API/Window#Event_handlers
Created:
https://developer.mozilla.org/en-US/docs/Web/API/Window/oninstall
https://developer.mozilla.org/en-US/docs/Web/Events/install
Updated:
https://developer.mozilla.org/en-US/Firefox/Releases/49#Others
Keywords: dev-doc-needed → dev-doc-complete
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•