Closed
      
        Bug 1365767
      
      
        Opened 8 years ago
          Closed 8 years ago
      
        
    
  
Stop bootlegging TextEncoder and TextDecoder from osfile.jsm   
    Categories
(DevTools :: General, enhancement)
        DevTools
          
        
        
      
        
    
        General
          
        
        
      
        
    Tracking
(firefox55 fixed)
        RESOLVED
        FIXED
        
    
  
        
            Firefox 55
        
    
  
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed | 
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
Attachments
(1 file)
There are a few places in devtools that import TextEncoder and TextDecoder from osfile.jsm like this:
const {TextEncoder, OS} = Cu.import("resource://gre/modules/osfile.jsm", {});
osfile.jsm doesn't define either of them; they are just regular properties on the global. I think it would be better to add them to builtin-modules.js, akin to atob and btoa. In addition to being nicer, this will break if we start sharing globals for jsms (bug 1186409).
| Assignee | ||
| Comment 1•8 years ago
           | ||
| Comment hidden (mozreview-request) | 
| Comment 3•8 years ago
           | ||
| mozreview-review | ||
Comment on attachment 8869117 [details]
Bug 1365767 - Stop bootlegging TextEncoder and TextDecoder from osfile.jsm in devtools.
https://reviewboard.mozilla.org/r/140752/#review144190
Thanks, looks good to me. :)
        Attachment #8869117 -
        Flags: review?(jryans) → review+
Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/756d4609d486
Stop bootlegging TextEncoder and TextDecoder from osfile.jsm in devtools. r=jryans
| Comment 5•8 years ago
           | ||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
          status-firefox55:
          --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
| Updated•7 years ago
           | 
Product: Firefox → DevTools
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•