Closed
Bug 813828
Opened 12 years ago
Closed 12 years ago
Allow chrome code to launch Web Activities
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: fabrice, Assigned: fabrice)
References
Details
Attachments
(1 file, 1 obsolete file)
1.21 KB,
patch
|
mounir
:
review+
|
Details | Diff | Splinter Review |
Since bug 794407 we restrict web activities to be only launchable by user input. This breaks all use of web activities from chrome code such as protocol and content handlers.
Attachment #683840 -
Flags: review?(mounir)
Assignee | ||
Updated•12 years ago
|
blocking-basecamp: --- → ?
Assignee | ||
Comment 1•12 years ago
|
||
Simpler patch using nsContentUtils::IsChromeDoc
Assignee: nobody → fabrice
Attachment #683840 -
Attachment is obsolete: true
Attachment #683840 -
Flags: review?(mounir)
Attachment #683854 -
Flags: review?(mounir)
Comment 2•12 years ago
|
||
Comment on attachment 683854 [details] [diff] [review] patch v2 Review of attachment 683854 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the printf_stderr removed. ::: dom/activities/src/Activity.cpp @@ +55,5 @@ > + nsCOMPtr<nsIDocument> document = do_QueryInterface(window->GetExtantDocument()); > + > + if (!nsEventStateManager::IsHandlingUserInput() && > + !nsContentUtils::IsChromeDoc(document)) { > + printf_stderr("!! Can start activity from non user input or chrome code."); Could you remove this printf_stderr, please? :) Feel free to write another patch to show something in the console, though. I think that would be handy for developers :)
Attachment #683854 -
Flags: review?(mounir) → review+
Updated•12 years ago
|
blocking-basecamp: ? → +
Assignee | ||
Comment 3•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7ae5ff606cf2
Comment 4•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7ae5ff606cf2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Comment 5•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/871f22673ad8 https://hg.mozilla.org/releases/mozilla-beta/rev/bc5914b106a4
Comment 6•12 years ago
|
||
Comment on attachment 683854 [details] [diff] [review] patch v2 Review of attachment 683854 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/activities/src/Activity.cpp @@ +51,5 @@ > NS_ENSURE_TRUE(window, NS_ERROR_UNEXPECTED); > > Init(window); > > + nsCOMPtr<nsIDocument> document = do_QueryInterface(window->GetExtantDocument()); window->GetExtantDoc() @@ +55,5 @@ > + nsCOMPtr<nsIDocument> document = do_QueryInterface(window->GetExtantDocument()); > + > + if (!nsEventStateManager::IsHandlingUserInput() && > + !nsContentUtils::IsChromeDoc(document)) { > + printf_stderr("!! Can start activity from non user input or chrome code."); NS_NAMED_LITERAL_STRING
Updated•11 years ago
|
Component: DOM: Mozilla Extensions → DOM
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
•