Closed
Bug 1037128
Opened 10 years ago
Closed 10 years ago
Regression: Contact API usage is being prompt on webpages
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(blocking-b2g:2.0+, firefox31 unaffected, firefox32+ verified, firefox33 verified, b2g-v2.0 fixed, b2g-v2.1 fixed, fennec32+)
People
(Reporter: aaronmt, Assigned: fabrice)
References
Details
(Keywords: regression, reproducible)
Attachments
(2 files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
Trunk Nightly (07/10) and Aurora (07/10) (according to esawin) have contacts API enabled (accidentally?)
I can confirm getting blasted with prompts on e.g, drudgereport
Comment 1•10 years ago
|
||
Could be related to bug 1024513, which landed on Nightly and Aurora
Flags: needinfo?(fabrice)
Comment 2•10 years ago
|
||
Example
Assignee | ||
Comment 3•10 years ago
|
||
Hm, my patch changed the permission handling, but I didn't enable the api itself...
Flags: needinfo?(fabrice)
Reporter | ||
Updated•10 years ago
|
tracking-fennec: --- → ?
Comment 5•10 years ago
|
||
I tried using a patch in bug 1037030 (https://bug1037030.bugzilla.mozilla.org/attachment.cgi?id=8454268) but it did not fix the issue.
I tried a suggestion from Brad Lassey:
> if (permValue == Ci.nsIPermissionManager.ALLOW_ACTION) {
> aAllowCallback();
> return;
> } else if (permValue == Ci.nsIPermissionManager.DENY_ACTION) {
> aCancelCallback();
>+ return;
> }
Which might be needed regardless, but it did not fix the issue.
Comment 6•10 years ago
|
||
I think I found the issue. The old PermissionPromptHelper.jsm file used this check:
if (permValue == Ci.nsIPermissionManager.DENY_ACTION ||
permValue == Ci.nsIPermissionManager.UNKNOWN_ACTION) {
aCallbacks.cancel();
return;
}
The UNKNOWN_ACTION was dropped in the refactor. Adding it back fixes the Contacts API prompt issue:
if (permValue == Ci.nsIPermissionManager.ALLOW_ACTION) {
aAllowCallback();
return;
- } else if (permValue == Ci.nsIPermissionManager.DENY_ACTION) {
+ } else if (permValue == Ci.nsIPermissionManager.DENY_ACTION ||
+ permValue == Ci.nsIPermissionManager.UNKNOWN_ACTION) {
aCancelCallback();
+ return;
}
Updated•10 years ago
|
Severity: normal → critical
Summary: Contact API (accidentally?) enabled → Contact API (accidentally?) enabled for Webpages
Comment 7•10 years ago
|
||
Just a note: I do not know if my proposed change in comment 6 is the "correct" thing to do. I was just noting that it did fix the issue.
I need Fabrice to weigh in on this.
Severity: critical → normal
Flags: needinfo?(fabrice)
Summary: Contact API (accidentally?) enabled for Webpages → Contact API (accidentally?) enabled
Updated•10 years ago
|
Severity: normal → critical
Summary: Contact API (accidentally?) enabled → Contact API (accidentally?) enabled for Webpages
Reporter | ||
Updated•10 years ago
|
status-firefox31:
--- → unaffected
status-firefox32:
--- → affected
status-firefox33:
--- → affected
tracking-firefox32:
--- → ?
Assignee | ||
Comment 8•10 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #7)
> Just a note: I do not know if my proposed change in comment 6 is the
> "correct" thing to do. I was just noting that it did fix the issue.
>
> I need Fabrice to weigh in on this.
Comment 6 is correct, I messed up the refactoring :(
Flags: needinfo?(fabrice)
Reporter | ||
Updated•10 years ago
|
Keywords: regression,
reproducible
Summary: Contact API (accidentally?) enabled for Webpages → Regression: Contact API usage is being prompt on webpages
Reporter | ||
Comment 9•10 years ago
|
||
This needs to be fixed before beta.
Comment 10•10 years ago
|
||
I was hoping someone else would be able to get to this, but Aaron is right. This needs to be fixed ASAP.
Fabrice - Is this fix good enough?
Assignee: nobody → mark.finkle
Attachment #8455344 -
Flags: review?(fabrice)
Assignee | ||
Updated•10 years ago
|
Attachment #8455344 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 11•10 years ago
|
||
blocking-b2g: --- → 2.0+
Comment 12•10 years ago
|
||
Backed out for mochitest failures.
https://hg.mozilla.org/integration/b2g-inbound/rev/ae4192ba2824
https://tbpl.mozilla.org/php/getParsedLog.php?id=43760187&tree=B2g-Inbound
Assignee | ||
Comment 13•10 years ago
|
||
(In reply to Wes Kocher (:KWierso) from comment #14)
> Backed out for Gu failures:
> https://tbpl.mozilla.org/php/getParsedLog.php?id=43773875&tree=B2g-Inbound
>
> https://hg.mozilla.org/integration/b2g-inbound/rev/510ce894eaca
There was also this mochitest failure: https://tbpl.mozilla.org/php/getParsedLog.php?id=43777201&tree=B2g-Inbound
Assignee | ||
Comment 17•10 years ago
|
||
(In reply to Aaron Train [:aaronmt] from comment #16)
> Any update here?
Yes, I need to fix the last M8 orange in debug emulators: https://tbpl.mozilla.org/?tree=Try&rev=8c37148c0215
Updated•10 years ago
|
Assignee | ||
Comment 18•10 years ago
|
||
And of course I can't reproduce locally :(
Comment 19•10 years ago
|
||
This bug needs to be fixed before we can ship a beta for Fx32. That means we need to backout the original patches that caused the regression, or we land Fabrice's fix and live with the M8 orange in debug emulators.
I vote for the latter.
Updated•10 years ago
|
tracking-fennec: ? → 32+
Assignee | ||
Comment 20•10 years ago
|
||
It seems that debug contact tests are flaky anyway, so I disabled the offending ones. Green try at
https://tbpl.mozilla.org/?tree=Try&rev=c190d6dec7d3
landed: https://hg.mozilla.org/integration/b2g-inbound/rev/0144a56aef70
Updated•10 years ago
|
Assignee: mark.finkle → fabrice
Comment 21•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 33
Comment 22•10 years ago
|
||
status-b2g-v2.0:
--- → fixed
status-b2g-v2.1:
--- → fixed
Reporter | ||
Updated•10 years ago
|
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•