Open Bug 1913112 Opened 3 months ago Updated 27 days ago

docs.google.com - Pasting from markdown option is unavailable

Categories

(Web Compatibility :: Site Reports, defect, P1)

Desktop
All

Tracking

(firefox129 affected, firefox130 affected, firefox131 affected)

Tracking Status
firefox129 --- affected
firefox130 --- affected
firefox131 --- affected

People

(Reporter: rbucata, Unassigned)

References

()

Details

(Keywords: webcompat:contact-ready, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs])

User Story

platform:windows,mac,linux,android
impact:feature-broken
configuration:general
affects:all
branch:release
diagnosis-team:webcompat

Attachments

(2 files)

Environment:
Operating system: Mac OS X 10.15
Firefox version: Firefox 129.0

Preconditions:
Markdown enabled

Steps to reproduce:

  1. Navigate to: https://docs.google.com/
  2. Perform account login and open any doc
  3. Type "# This is a markdown" inside the doc then copy the newly text inserted
  4. Using any pasting option, select "Paste from markdown" and observe

Expected Behavior:
Text is pasted

Actual Behavior:
Paste from Markdown is not available in Firefox

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in Firefox Nightly, and Firefox Release
  • Does not reproduce in Chrome

Created from https://github.com/webcompat/web-bugs/issues/140397

Attached video 20240814_131717.mp4
OS: macOS → All
Severity: -- → S2
User Story: (updated)
Flags: needinfo?(dschubert)
Priority: -- → P1

There is if (chrome) {} else {openDialog()} which controls this popup.

https://docs.google.com/static/document/client/js/3683200486-client_js_prod_kix_tertiary.js
Line 186518 (pretty printed)

        function () {
          np.CHROME ? (e.Ma.setValue(!0), e.D.va(OFa).xb()) : e.fb.openDialog(NUp, {
          })
        }

Pausing in this function and faking chrome by evaluating Object.defineProperty(np, "CHROME", {value: true}) in the console would still hit another popup (which I think is already covered in webcompat?).

That second popup is shown because of that other check:
https://docs.google.com/static/document/client/js/1621481524-client_js_prod_kix_app.js
Line 20331 (pretty printed)

function iXg(a) {
  if (a.H) a = !1;
   else {
    a: {
      if (!a.F.Ga('docs-erpep')) {
        var c = a.F.Ga('docs-ececs') &&  // Ga methods checks if an attribute exists on `window._docs_flag_initialData`, here window._docs_flag_initialData["docs-ececs"] is false on Firefox and c = false
        mhb(),
        d = Ko(Kia) >= 13;  // Kia == "safari" and d = false
        if (!c && !d) {
          a = !1; /// We return false here and show the popup based on this boolean
          break a
        }
      }
      a = a.D.ld().queryCommandSupported(Pha)
    }
    a = !!(a || np.n0 || np.CHROME && np.bv(52) && Jwc(Nve, !1))
  }
  return a
}
Flags: needinfo?(dschubert)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: