Closed Bug 1548265 Opened 5 years ago Closed 4 years ago

Ensure old django_language cookie for non-subdomain developer.mozilla.org is deleted (was: MDN always loads in Kabyle language (kab) in en-GB UA)

Categories

(developer.mozilla.org Graveyard :: Localization, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ato, Unassigned)

Details

When I load https://developer.mozilla.org/, it always redirects me
to https://developer.mozilla.org/kab/ for Kabyle (kab) language.

My browser’s regional preference is set to en-GB.

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

Name: Firefox
Version: 68.0a1
Build ID: 20190501042112
Update Channel: nightly
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
OS: Darwin 18.5.0
Multiprocess Windows: 2/2 Enabled by default
Remote Processes: 6
Enterprise Policies: Inactive
Google Location Service Key: Found
Google Safebrowsing Key: Found
Mozilla Location Service Key: Found
Safe Mode: false

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

Report ID: bp-d62feaf9-2f23-48ed-adbb-f181f0190501
Submitted: 14 hours ago

Report ID: bp-28e19fac-69b3-407c-a4cb-380050190430
Submitted: 17 hours ago

Nightly Features
----------------

Name: Firefox Monitor
Version: 3.0
ID: fxmonitor@mozilla.org

Name: Firefox Screenshots
Version: 37.1.0
ID: screenshots@mozilla.org

Name: Form Autofill
Version: 1.0
ID: formautofill@mozilla.org

Name: Web Compat
Version: 4.2.0
ID: webcompat@mozilla.org

Name: WebCompat Reporter
Version: 1.1.0
ID: webcompat-reporter@mozilla.org

Remote Processes
----------------

Type: Web Content
Count: 4 / 8

Type: Extension
Count: 1

Type: Privileged Content
Count: 1

Extensions
----------

Name: Amazon.co.uk
Version: 1.0
Enabled: true
ID: amazon@search.mozilla.org

Name: Awesome RSS
Version: 1.3.5
Enabled: true
ID: {97d566da-42c5-4ef4-a03b-5a2e5f7cbcb2}

Name: Bing
Version: 1.0
Enabled: true
ID: bing@search.mozilla.org

Name: Chambers (UK)
Version: 1.0
Enabled: true
ID: chambers-en-GB@search.mozilla.org

Name: DuckDuckGo
Version: 1.0
Enabled: true
ID: ddg@search.mozilla.org

Name: eBay
Version: 1.0
Enabled: true
ID: ebay@search.mozilla.org

Name: Google
Version: 1.0
Enabled: true
ID: google@search.mozilla.org

Name: MyQOnly
Version: 0.7.1
Enabled: true
ID: myqonly@mikeconley.ca

Name: Twitter
Version: 1.0
Enabled: true
ID: twitter@search.mozilla.org

Name: Wikipedia (en)
Version: 1.0
Enabled: true
ID: wikipedia@search.mozilla.org

Name: Enhancer for YouTube™
Version: 2.0.89
Enabled: false
ID: enhancerforyoutube@maximerf.addons.mozilla.org

Graphics
--------

Features
Compositing: WebRender
Asynchronous Pan/Zoom: wheel input enabled; scrollbar drag enabled; keyboard enabled; autoscroll enabled
WebGL 1 Driver WSI Info: CGL
WebGL 1 Driver Renderer: Intel Inc. -- Intel(R) Iris(TM) Plus Graphics 640
WebGL 1 Driver Version: 4.1 INTEL-12.8.38
WebGL 1 Driver Extensions: GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_sRGB_decode GL_APPLE_client_storage GL_APPLE_container_object_shareable GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_texture_range GL_ATI_texture_mirror_once GL_NV_texture_barrier
WebGL 1 Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_disjoint_timer_query EXT_float_blend EXT_frag_depth EXT_shader_texture_lod EXT_sRGB EXT_texture_compression_rgtc EXT_texture_filter_anisotropic OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context
WebGL 2 Driver WSI Info: CGL
WebGL 2 Driver Renderer: Intel Inc. -- Intel(R) Iris(TM) Plus Graphics 640
WebGL 2 Driver Version: 4.1 INTEL-12.8.38
WebGL 2 Driver Extensions: GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_sRGB_decode GL_APPLE_client_storage GL_APPLE_container_object_shareable GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_texture_range GL_ATI_texture_mirror_once GL_NV_texture_barrier
WebGL 2 Extensions: EXT_color_buffer_float EXT_disjoint_timer_query EXT_float_blend EXT_texture_compression_rgtc EXT_texture_filter_anisotropic OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context
Uses Tiling: true
Uses Tiling (Content): true
Off Main Thread Painting Enabled: true
Off Main Thread Painting Worker Count: 3
Target Frame Rate: 60
GPU #1
Active: Yes
Vendor ID: 0x8086
Device ID: 0x5926

Diagnostics
AzureCanvasBackend: skia
AzureContentBackend: skia
AzureFallbackCanvasBackend: none
Slow Frame #01: Frame 133(https://sny.no/a) CONTENT_FRAME_TIME 3824767 - Transaction start 0.000000, main-thread time 8.066448, full paint time 11.713884, Skipped composites 0, Composite start 14.438072, Resource upload time 0.000579, GPU cache upload time 0.030769, Render time 0.702971, Composite time 1.677748
Slow Frame #02: Frame 528(https://sny.no/2019/04/log) CONTENT_FRAME_TIME 3571031 - Transaction start 0.000000, main-thread time 1.282706, full paint time 2.742879, Skipped composites 0, Composite start 18.322296, Resource upload time 0.000385, GPU cache upload time 0.033566, Render time 1.000806, Composite time 2.053781
Slow Frame #03: Frame 526(https://sny.no/2019/04/log) CONTENT_FRAME_TIME 1464996 - Transaction start 0.000000, main-thread time 1.511142, full paint time 3.023205, Skipped composites 0, Composite start 13.957082, Resource upload time 0.000687, GPU cache upload time 0.054559, Render time 9.159064, Composite time 10.706900
Slow Frame #04: Frame 537(https://phabricator.services.mozilla.com/D27525) CONTENT_FRAME_TIME 1459396 - Transaction start 0.000000, main-thread time 2.417790, full paint time 5.904317, Skipped composites 0, Composite start 13.951053, Resource upload time 0.001573, GPU cache upload time 0.432268, Render time 16.701257, Composite time 27.102560
Slow Frame #05: Frame 81(https://phabricator.services.mozilla.com/D29413) CONTENT_FRAME_TIME 1453493 - Transaction start 0.000000, main-thread time 5.561711, full paint time 6.969685, Skipped composites 0, Composite start 17.080152, Resource upload time 0.001077, GPU cache upload time 0.146127, Render time 16.207305, Composite time 26.889890
Slow Frame #06: Frame 393(https://sny.no/2019/05/log) CONTENT_FRAME_TIME 1320631 - Transaction start 0.000000, main-thread time 1.775603, full paint time 3.139210, Skipped composites 0, Composite start 13.302428, Resource upload time 0.000490, GPU cache upload time 0.053375, Render time 1.281897, Composite time 3.487759
Slow Frame #07: Frame 309(https://sny.no/) CONTENT_FRAME_TIME 1240502 - Transaction start 0.000000, main-thread time 2.468591, full paint time 3.237202, Skipped composites 0, Composite start 10.920575, Resource upload time 0.000305, GPU cache upload time 0.041933, Render time 0.829152, Composite time 1.654627
Slow Frame #08: Frame 395(https://sny.no/2019/05/log) CONTENT_FRAME_TIME 648353 - Transaction start 0.000000, main-thread time 1.446445, full paint time 2.658664, Skipped composites 0, Composite start 2.756963, Resource upload time 0.000460, GPU cache upload time 0.035226, Render time 1.141939, Composite time 2.343731
Slow Frame #09: Frame 424(https://sny.no/2019/05/log) CONTENT_FRAME_TIME 515613 - Transaction start 0.000000, main-thread time 1.426716, full paint time 2.872183, Skipped composites 0, Composite start 14.177456, Resource upload time 0.127811, GPU cache upload time 0.025392, Render time 8.948066, Composite time 10.932940
Slow Frame #10: Frame 762(https://sny.no/ato) CONTENT_FRAME_TIME 465925 - Transaction start 0.000000, main-thread time 1.535237, full paint time 2.344979, Skipped composites 0, Composite start 5.420457, Resource upload time 0.000559, GPU cache upload time 0.038693, Render time 0.855211, Composite time 2.323329
TileHeight: 1024
TileWidth: 1024
Decision Log
WEBRENDER:
opt-in by default: WebRender is an opt-in feature
available by user: Force enabled by pref
WEBRENDER_QUALIFIED:
blocked by env: No qualified hardware




Media
-----

Audio Backend: audiounit
Max Channels: 2
Preferred Sample Rate: 44100
Output Devices
Name: Group
Internal Speakers: AppleHDAEngineOutput:1F,3,0,1,1:0
Input Devices
Name: Group
Internal Microphone: AppleHDAEngineInput:1F,3,0,1,0:1

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

accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.amount_written: 1688027
browser.cache.disk.capacity: 1048576
browser.cache.disk.filesystem_reported: 1
browser.cache.disk.hashstats_reported: 1
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.telemetry_report_ID: 2
browser.cache.frecency_experiment: 3
browser.places.smartBookmarksVersion: 8
browser.sessionstore.upgradeBackup.latestBuildID: 20190501042112
browser.startup.homepage: about:blank
browser.startup.homepage_override.buildID: 20190501042112
browser.startup.homepage_override.mstone: 68.0a1
browser.tabs.crashReporting.includeURL: true
browser.tabs.firstWindowRestore.numPinnedTabs: 0
browser.urlbar.matchBuckets: general:5,suggestion:Infinity
browser.urlbar.placeholderName: Google
browser.urlbar.searchSuggestionsChoice: true
browser.urlbar.timesBeforeHidingSuggestionsHint: 0
dom.forms.autocomplete.formautofill: true
dom.push.userAgentID: 3fd7ab10129645ff9a55cc6f67522ea2
dom.streams.enabled: true
dom.visualviewport.enabled: true
extensions.formautofill.creditCards.used: 3
extensions.formautofill.firstTimeUse: false
extensions.lastAppVersion: 68.0a1
font.internaluseonly.changed: false
gfx.color_management.enablev4: true
gfx.webrender.all: true
idle.lastDailyNotification: 1556651968
media.benchmark.vp9.fps: 127
media.benchmark.vp9.versioncheck: 5
media.gmp-gmpopenh264.abi: x86_64-gcc3
media.gmp-gmpopenh264.lastUpdate: 1552733679
media.gmp-gmpopenh264.version: 1.8.1
media.gmp-manager.buildID: 20190501042112
media.gmp-manager.lastCheck: 1556716639
media.gmp-widevinecdm.abi: x86_64-gcc3
media.gmp-widevinecdm.lastUpdate: 1542306336
media.gmp-widevinecdm.version: 4.10.1196.0
media.gmp.storage.version.observed: 1
media.gpu-process-decoder: true
media.mediasource.experimental.enabled: true
media.mediasource.webm.enabled: true
network.cookie.prefsMigrated: true
network.predictor.cleaned-up: true
places.database.lastMaintenance: 1556562770
places.history.expiration.transient_current_max_pages: 140184
plugin.disable_full_page_plugin_for_types: application/pdf
print.print_bgcolor: false
print.print_bgimages: false
print.print_duplex: -437918235
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_unit: 0
print.print_paper_width: 8.50
print.print_resolution: -437918235
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: 17
print.print_unwriteable_margin_left: 17
print.print_unwriteable_margin_right: 17
print.print_unwriteable_margin_top: 17
privacy.donottrackheader.enabled: true
privacy.sanitize.pending: [{"id":"newtab-container","itemsToClear":[],"options":{}}]
privacy.trackingprotection.enabled: true
privacy.trackingprotection.introCount: 20
privacy.userContext.enabled: false
security.remote_settings.intermediates.checked: 1556671369
security.sandbox.content.tempDirSuffix: {c9667327-573c-e94e-a0d7-11b1a92ee2ac}
security.sandbox.plugin.tempDirSuffix: 1c34c439-88c4-a34b-8565-ebf488463673
security.ssl.errorReporting.automatic: true
services.sync.declinedEngines:
services.sync.engine.addresses: true
services.sync.engine.addresses.available: true
services.sync.engine.bookmarks.validation.lastTime: 1556651578
services.sync.engine.creditcards: true
services.sync.engine.passwords.validation.lastTime: 1556651578
services.sync.engine.prefs.modified: false
services.sync.lastPing: 1556651572
services.sync.lastSync: Wed May 01 2019 15:23:08 GMT+0100 (British Summer Time)
signon.importedFromSqlite: true
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1555363443

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

Places Database
---------------

JavaScript
----------

Incremental GC: true

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

Activated: false
Prevent Accessibility: 0

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

NSPR
Expected minimum version: 4.21
Version in use: 4.21

NSS
Expected minimum version: 3.44 Beta
Version in use: 3.44 Beta

NSSSMIME
Expected minimum version: 3.44 Beta
Version in use: 3.44 Beta

NSSSSL
Expected minimum version: 3.44 Beta
Version in use: 3.44 Beta

NSSUTIL
Expected minimum version: 3.44 Beta
Version in use: 3.44 Beta

Sandbox
-------

Content Process Sandbox Level: 3
Effective Content Process Sandbox Level: 3

Internationalisation & Localisation
-----------------------------------

Application Settings
Requested Locales: ["en-GB"]
Available Locales: ["en-GB","en-US"]
App Locales: ["en-GB","en-US"]
Regional Preferences: ["en-GB"]
Default Locale: "en-GB"
Operating System
System Locales: ["en-GB"]
Regional Preferences: ["en-GB"]
Flags: needinfo?(rjohnson)

Andreas: Would you use developer tools to check for a cookie named "django.language" on developer.mozilla.org? If that cookie exists and is set to "kab", that would explain the behavior you are seeing.

(This cookie gets set if you use the translations menu in the upper-right of an MDN page to select a language and then click the "Yes" button to say you always want that language.)

Flags: needinfo?(ato)

There are two cookies set, in order:

  1. django_language for .developer.mozilla.org on path /,
    expiring Tue 28 Apr 2020, set to en-US

  2. django_language for developer.mozilla.org on path /,
    expiring Fri 23 Aug 2019, set to kab

The problem is that kab always returns after a while after selecting
a new default language. Is this problem related to two cookies
being set for different domains?

Added 17:25: I should add the second is HostOnly.

Flags: needinfo?(ato)

Thanks Andreas. I think if you delete the second cookie your problem will go away. But you've pointed a possibly serious problem that could affect other users.

Ryan: is the ".developer.mozilla.org" cookie be a recent change caused by the new beta domain?

I only have cookies with the '.' prefix. It doesn't look like there's a way to create plain "developer.mozilla.org" cookies anymore, which means that Andreas's out-of-date "kab" value isn't going to go away on its own. I wonder how many other users are in the same situation, and whether we need to add code somewhere to intentionally delete old cookies?

David Flanagan: I suspect you're right, that if the second cookie is deleted, the problem would go away. Yes, the first cookie, the one for ".developer.mozilla.org" is the newer one meant to be shared across sub-domains (although I think the preceding dot is no longer required for that). Hm, we may have to add code to explicitly delete the old cookies.

Flags: needinfo?(rjohnson)

Thanks for checking. I can confirm deleting the older cookie
resolves the immediate problem.

(In reply to Ryan Johnson (:rjohnson) from comment #4)

Hm, we may have to add code to explicitly delete the old cookies.

I’ll leave it up to you if this warrants fixing, but I’ve re-scoped
the bug title.

Summary: MDN always loads in Kabyle language (kab) in en-GB UA → Ensure old django_language cookie for non-subdomain developer.mozilla.org is deleted (was: MDN always loads in Kabyle language (kab) in en-GB UA)
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.