Closed Bug 1147276 Opened 9 years ago Closed 9 years ago

e10s breaks Google Calendar event's "Add Guest" name autocompletion and saving event

Categories

(Core :: General, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
e10s m8+ ---
firefox43 --- affected

People

(Reporter: cpeterson, Assigned: mrbkap)

References

Details

Attachments

(2 files)

STR:
1. Try to create a new event on Google Calendar.
2. In the new event page, enter someone's LDAP username in the "Add: Guests".

RESULT:
Nothing happens when e10s is enabled, but the text field autocompletes LDAP email addresses with e10s is disabled. I can still reproduce the problem in a non-e10s window when e10s is enabled.

If I try to save the new event, Google Calendar will report "saving failed".

This bug sounds similar to bug 1112604.


I see the following errors in the browser console, but I don't know if they are related:

NS_ERROR_XPC_CANT_PASS_CPOW_TO_NATIVE: It's illegal to pass a CPOW to native code arg 1 [nsIMessageListenerManager.addMessageListener] RemoteAddonsChild.jsm:395:0
[object CPOW [Exception... "It's illegal to pass a CPOW to native code arg 1 [nsIMessageListenerManager.addMessageListener]"  nsresult: "0x80570036 (NS_ERROR_XPC_CANT_PASS_CPOW_TO_NATIVE)"  location: "JS frame :: resource://gre/modules/RemoteAddonsChild.jsm :: ObserverChild.observe :: line 395"  data: no]] RemoteAddonsParent.jsm:345:0
OS: Mac OS X → All
Any addons installed when you got this?
Flags: needinfo?(cpeterson)
I disabled all my add-ons and I can still repro this bug in an e10s window (and not in a non-e10s window). I can't reproduce it in a clean profile. Here is my about:support info:

Application Basics
------------------

Name: Firefox
Version: 39.0a1
Build ID: 20150326030212
Update Channel: nightly
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:39.0) Gecko/20100101 Firefox/39.0
Multiprocess Windows: 1/2 (default: false)

Crash Reports for the Last 3 Days
---------------------------------

Report ID: bp-b86b2066-094a-48fc-a96a-b4cd12150323
Submitted: 3 days ago

All Crash Reports

Extensions
----------

Name: Adblock Plus
Version: 2.6.8.3917
Enabled: false
ID: {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}

Name: Bugzilla Tweaks
Version: 1.12.1.1
Enabled: false
ID: jid0-qBnIpLfDFa4LpdrjhAC6vBqN20Q@jetpack

Name: BugzillaJS
Version: 3.3.1
Enabled: false
ID: jid0-NgMDcEu2B88AbzZ6ulHodW9sJzA@jetpack

Name: Cloud To Butt
Version: 1.1
Enabled: false
ID: cloud-to-butt-mozilla@github.com

Name: FindBar Tweak
Version: 1.4.18
Enabled: false
ID: fbt@quicksaver

Name: Firefox Interest Dashboard
Version: 0.9.1
Enabled: false
ID: firefox.interest.dashboard@up.mozilla

Name: Flip or Rotate Image
Version: 0.9
Enabled: false
ID: jid0-AGJXXzyS0rT1UudxcYiNRjbGttc@jetpack

Name: HTTPS-Everywhere
Version: 5.0development.2
Enabled: false
ID: https-everywhere@eff.org

Name: is.gd Creator (fork)
Version: 0.3
Enabled: false
ID: isgdcreator@mrkschan.at.gmail.com

Name: JSONView
Version: 0.9
Enabled: false
ID: jsonview@brh.numbera.com

Name: Lightbeam
Version: 1.2.1
Enabled: false
ID: jid1-F9UJ2thwoAm5gQ@jetpack

Name: Mass Password Reset
Version: 1.05
Enabled: false
ID: masspasswordreset@johnathan.nightingale

Name: Modify Headers
Version: 0.7.1.1
Enabled: false
ID: {b749fc7c-e949-447f-926c-3f4eed6accfe}

Name: Privacy Badger Firefox
Version: 0.1.4
Enabled: false
ID: jid1-MnnxcxisBPnSXQ@jetpack

Name: Quora Share
Version: 0.1
Enabled: false
ID: jid1-roegsJ40q6CsFg@jetpack

Name: Reader
Version: 36.0
Enabled: false
ID: {20068ab2-1901-4140-9f3c-81207d4dacc4}

Name: Shumway
Version: 0.10.304
Enabled: false
ID: shumway@research.mozilla.org

Name: SPDY indicator
Version: 2.2
Enabled: false
ID: spdyindicator@chengsun.github.com

Name: Test Pilot
Version: 1.2.3
Enabled: false
ID: testpilot@labs.mozilla.com

Name: User Agent Switcher
Version: 0.7.3
Enabled: false
ID: {e968fc70-8f95-4ab9-9e79-304de2a71ee1}

Name: Video DownloadHelper
Version: 5.0.1
Enabled: false
ID: {b9db16a4-6edc-47ec-a1f4-b86292ed211d}

Name: YouTube Video and Audio Downloader
Version: 0.4.3
Enabled: false
ID: feca4b87-3be4-43da-a1b1-137c24220968@jetpack

Name: µBlock
Version: 0.8.6.0
Enabled: false
ID: {2b10c1c8-a11f-4bad-fe9c-1c11e82cac42}

Graphics
--------

Asynchronous Pan/Zoom: none
Device ID: 0x a2e
GPU Accelerated Windows: 2/2 OpenGL (OMTC)
Vendor ID: 0x8086
WebGL Renderer: Intel Inc. -- Intel Iris OpenGL Engine
windowLayerManagerRemote: true
AzureCanvasBackend: quartz
AzureContentBackend: quartz
AzureFallbackCanvasBackend: none
AzureSkiaAccelerated: 0

Important Modified Preferences
------------------------------

accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.capacity: 358400
browser.cache.disk.filesystem_reported: 1
browser.cache.disk.smart_size_cached_value: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.cache.frecency_experiment: 2
browser.download.importedFromSqlite: true
browser.places.smartBookmarksVersion: 7
browser.search.useDBForOrder: true
browser.sessionstore.upgradeBackup.latestBuildID: 20150326030212
browser.startup.homepage: about:blank
browser.startup.homepage_override.buildID: 20150326030212
browser.startup.homepage_override.mstone: 39.0a1
browser.tabs.drawInTitlebar: false
browser.tabs.remote.autostart.1: false
dom.disable_open_during_load: false
dom.ipc.plugins.asyncInit: true
dom.max_script_run_time: 0
dom.mozApps.used: true
extensions.lastAppVersion: 39.0a1
font.name.monospace.x-western: Consolas
font.name.sans-serif.x-western: Helvetica Neue
media.gmp-gmpopenh264.lastUpdate: 1423073740
media.gmp-gmpopenh264.path: /Users/cpeterson/Library/Application Support/Firefox/Profiles/2nkuvwt6.default-1409031607722/gmp-gmpopenh264
media.gmp-gmpopenh264.version: 1.3
media.gmp-manager.buildID: 20150326030212
media.gmp-manager.lastCheck: 1427389294
mousewheel.with_alt.action: 1
mousewheel.with_meta.action: 1
network.cookie.prefsMigrated: true
network.predictor.cleaned-up: true
places.database.lastMaintenance: 1427319419
places.history.expiration.transient_current_max_pages: 104858
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
plugin.state.adobepdfviewernpapi: 0
plugin.state.default browser: 0
plugin.state.gcplugin: 0
plugin.state.googletalkbrowserplugin: 0
plugin.state.npvidyoweb: 0
plugin.state.o1dbrowserplugin: 0
plugin.state.rbjninstallplugin: 0
plugin.state.rbjnplugin: 0
plugin.state.unity web player: 1
plugin.state.wacomtabletplugin: 0
print.print_bgcolor: false
print.print_bgimages: false
print.print_colorspace:
print.print_command:
print.print_downloadfonts: false
print.print_duplex: 1515870810
print.print_evenpages: true
print.print_in_color: true
print.print_margin_bottom: 0.5
print.print_margin_left: 0.5
print.print_margin_right: 0.5
print.print_margin_top: 0.5
print.print_oddpages: true
print.print_orientation: 0
print.print_page_delay: 50
print.print_paper_data: 0
print.print_paper_height: 11.00
print.print_paper_name:
print.print_paper_size_type: 1
print.print_paper_size_unit: 0
print.print_paper_width: 8.50
print.print_plex_name:
print.print_resolution: 1515870810
print.print_resolution_name:
print.print_reversed: false
print.print_scaling: 1.00
print.print_shrink_to_fit: true
print.print_to_file: false
print.print_unwriteable_margin_bottom: 56
print.print_unwriteable_margin_left: 25
print.print_unwriteable_margin_right: 25
print.print_unwriteable_margin_top: 25
privacy.donottrackheader.enabled: true
privacy.sanitize.migrateFx3Prefs: true
privacy.trackingprotection.enabled: true
security.ssl.errorReporting.automatic: true
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1425703124

Important Locked Preferences
----------------------------

JavaScript
----------

Incremental GC: true

Accessibility
-------------

Activated: false
Prevent Accessibility: 0

Library Versions
----------------

NSPR
Expected minimum version: 4.10.8
Version in use: 4.10.8

NSS
Expected minimum version: 3.18 Basic ECC
Version in use: 3.18 Basic ECC

NSSSMIME
Expected minimum version: 3.18 Basic ECC
Version in use: 3.18 Basic ECC

NSSSSL
Expected minimum version: 3.18 Basic ECC
Version in use: 3.18 Basic ECC

NSSUTIL
Expected minimum version: 3.18
Version in use: 3.18

Experimental Features
---------------------

Name: Invisible test of the experiment branching system.
ID: experiment-branch-test-nightly@experiments.mozilla.org
Description: An experiment using branches just to test whether branches get saved correctly.
Active: false
End Date: 1409032623434
Homepage:
Flags: needinfo?(cpeterson)
Chris, it's most likely due to one of your add-ons since you can't reproduce in fresh profile.  Thing to do now is disable them one by one to determine which one is incompatible with G-cal in e10s.
Flags: needinfo?(cpeterson)
(In reply to [:tracy] Tracy Walker - QA Mentor from comment #3)
> Chris, it's most likely due to one of your add-ons since you can't reproduce
> in fresh profile.  Thing to do now is disable them one by one to determine
> which one is incompatible with G-cal in e10s.

I can still reproduce the bug with all my add-ons disabled. I reverted some of my prefs that had non-default values (in about:support), but I could not find a pref that had any effect.

A clue! I see suspicious "HTTP 401 Unauthorized" XHR errors when entering text into the guest name field, but only in an e10s window. You may need to enable XHR logging in the Dev Tools console's "Network" log filter.

POST 
XHR 
https://content.googleapis.com/plusi/v2/ozInternal/contactstorequery [HTTP/2.0 401 Unauthorized 56ms]

Using Charles Proxy, I was able to view the HTTPS response:

HTTP/1.1 401 Unauthorized
Vary: Origin
Vary: X-Origin
WWW-Authenticate: Bearer realm="https://accounts.google.com/"
Content-Type: application/json; charset=UTF-8
Content-Encoding: gzip
Date: Tue, 31 Mar 2015 22:41:20 GMT
Expires: Tue, 31 Mar 2015 22:41:20 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alternate-Protocol: 443:quic,p=0.5
Transfer-Encoding: chunked

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "required",
    "message": "Login Required",
    "locationType": "header",
    "location": "Authorization"
   }
  ],
  "code": 401,
  "message": "Login Required"
 }
}
Flags: needinfo?(cpeterson)
Chris, the majority opinion in triage is that this is HTTPSEverywhere not disabling well. Could you try reproducing in with a clean profile?
Flags: needinfo?(cpeterson)
I can't reproduce this problem in a clean profile when HTTPS Everywhere is enabled, disabled, or removed.

I can still reproduce the problem in my dirty profile when HTTPS Everywhere is enabled, disabled, or removed. I will need to debug more.
Flags: needinfo?(cpeterson)
Flags: needinfo?(cpeterson)
Kicking back to triage to ask what the last needInfo of Chris was for.
Flags: needinfo?(cpeterson)
NI to jim to investigate
Flags: needinfo?(jmathies)
I tried to narrow down my add-ons, but I was not able isolate the problem.
I tried:

1) disabling all addons manually - still reproduces
2) disabling tracking protection - still reproduces
3) safe mode - does not reproduce
Flags: needinfo?(jmathies)
Flags: needinfo?(jmathies)
I've only hit this issue in the last week or so.  For me the only workaround is to use a Non-E10s window, which didn't work for Chris in the original description.

To fix this machine I've tried deleting all cookies, disabling all addons, clear cache which none of them worked.

Doing a full Refresh from the support page did however resolve it.  (I reverted to the backup because I don't actually want to do that right now)
Preferences -> Privacy -> Use Custom Settings for History -> Accept third party cookies | Set to Never.   Now it works.

Set it to Always and it no longer works.
(In reply to Bryan Quigley from comment #14)
> Preferences -> Privacy -> Use Custom Settings for History -> Accept third
> party cookies | Set to Never.   Now it works.
> 
> Set it to Always and it no longer works.

Thanks! Moving back into e10s triage.
Flags: needinfo?(jmathies)
Assignee: nobody → mrbkap
This might be a dupe of bug 1171215 but I haven't check to make sure that gcal is using web sockets yet.
Google Calendar name autocompletion seems to work correctly in today's Nightly 42 build 2015-07-23. I was never able to isolate the problem in my profile configuration or add-ons, so don't know if this bug has been fixed or if my profile has changed.
I can still reproduce this easily by toggling Accept Third Party cookies from Never to Always.
Whiteboard: ame autocompletion seems to work correctly in today's Nightly 42 build 2015-07-23. I was never able to isolate the problem in my profile configuration or add-ons, so don't know if this bug has been fixed or if my profile has changed.
I can still reproduce this easily by toggling Accept Third Party cookies from Never to Always on build from 2015-07-24.
Whiteboard: ame autocompletion seems to work correctly in today's Nightly 42 build 2015-07-23. I was never able to isolate the problem in my profile configuration or add-ons, so don't know if this bug has been fixed or if my profile has changed.
I tried to reproduce this the other day and wasn't able to. Bryan, what do your STR look like? I tried:

* Start with default settings (i.e. allow 3rd party cookies).
* Log in to Google.
* Disable 3rd party cookies.
* Create new calendar event.
=> Autocomplete worked properly.

I also tried with 3rd party cookies disabled before I logged without any difference.
Flags: needinfo?(gQuigs+bugs)
1. Have Google Calendar open with Accept Third Part Cookies - Never
2. I can make events and in events I can use Add Guest auto-completion.
3. Change Accept Third Part Cookies  to Always
4. I can no longer make events but Add Guest auto-completion works on existing events.  It also now works on New events (but I still can't finish the save).
5. Change Accept Third Party Cookies to "From Visited".
6. It works fine now.  (From Visited used to not work IIRC)

So the behavior does appear to have changed since the 24th.
Flags: needinfo?(gQuigs+bugs)
I can still reproduce this bug in Nightly 43, even though I have "Accept Third Party Cookies" = Always.
Add Guest auto-completion is working for me just now. I restarted Nightly 44 and it stopped working again. For every keystroke in the guest field, the console reported an HTTP error:

POST XHR https://clients6.google.com/plusi/v2/ozInternal/contactstorequery [HTTP/2.0 401 Unauthorized 76ms]
POST XHR https://clients6.google.com/plusi/v2/ozInternal/contactstorequery [HTTP/2.0 401 Unauthorized 76ms]
POST XHR https://clients6.google.com/plusi/v2/ozInternal/contactstorequery [HTTP/2.0 401 Unauthorized 84ms]

I had add-ons installed but none enabled. When I restarted Nightly again, the problem went away. Add Guest auto-completion continues to work whether I allow or disallow third-party cookies.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: